blob: f1bfd46bcce9753468314776a5de0c12da7de250 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
cristy3ed852e2009-09-05 21:47:34 +0000687windows_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000688ghostscript_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000690apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000691PrintDelegate
692ZipDelegate
693XPSDelegate
694WWWDecodeDelegate
695WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000696WebPEncodeDelegate
697WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000698UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000700SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000701SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000702RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000703RMDelegate
704RLEEncodeDelegate
705PSDelegate
706POVDelegate
707PGPDecodeDelegate
708PCLDelegate
709MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000710MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000711MPEGEncodeDelegate
712MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000713MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714MANDelegate
715LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716LPRDelegate
717LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000718JXREncodeDelegate
719JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720ILBMEncodeDelegate
721ILBMDecodeDelegate
722HTMLDecodeDelegate
723HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000724GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000728DisplayDelegate
729ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000730DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000731DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732DNGDecodeDelegate
733CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy16b412d2014-12-15 11:09:48 +0000737BGPEncodeDelegate
738BGPDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000739AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000740SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000741SHAREARCH_RELATIVE_PATH
742SHAREARCH_DIRNAME
743SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000746INSTALL_DOC_FALSE
747INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000748DOCUMENTATION_PATH
749FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000750FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000751CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000752CODER_DIRNAME
753MODULES_PATH
754MODULES_RELATIVE_PATH
755MODULES_DIRNAME
756MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000757LIB_BIN_DIR_PATH
758LIB_BIN_DIR_RELATIVE_PATH
759LIB_BIN_DIR
760LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000761LIBRARY_PATH
762EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000763INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000764INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000765PERLMAINCC
766XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767XML_DELEGATE_FALSE
768XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000769xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000770WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000771WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000772WMF_DELEGATE_FALSE
773WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000774WEBP_LIBS
775WEBP_DELEGATE_FALSE
776WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778TIFF_DELEGATE_FALSE
779TIFF_DELEGATE_TRUE
780CAIRO_DELEGATE_FALSE
781CAIRO_DELEGATE_TRUE
782RSVG_DELEGATE_FALSE
783RSVG_DELEGATE_TRUE
784CAIRO_SVG_LIBS
785CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000786RSVG_LIBS
787RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000788PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000789PNG_DELEGATE_FALSE
790PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000791PANGOCAIRO_DELEGATE_FALSE
792PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000793PANGO_DELEGATE_FALSE
794PANGO_DELEGATE_TRUE
795PANGO_LIBS
796PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000797OPENEXR_DELEGATE_FALSE
798OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799OPENEXR_LIBS
800OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000803LZMA_LIBS
804LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807LQR_LIBS
808LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000809LIBOPENJP2_DELEGATE_FALSE
810LIBOPENJP2_DELEGATE_TRUE
811LIBOPENJP2_LIBS
812LIBOPENJP2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000813LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814LCMS_DELEGATE_FALSE
815LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000816JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817JPEG_DELEGATE_FALSE
818JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000820JBIG_DELEGATE_FALSE
821JBIG_DELEGATE_TRUE
822GVC_DELEGATE_FALSE
823GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824GVC_LIBS
825GVC_CFLAGS
826GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827GS_DELEGATE_FALSE
828GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000829FREETYPE_DELEGATE_FALSE
830FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000831FREETYPE_LIBS
832FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000833FONTCONFIG_DELEGATE_FALSE
834FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000835FONTCONFIG_LIBS
836FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000837DJVU_LIBS
838DJVU_DELEGATE_FALSE
839DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841FPX_DELEGATE_FALSE
842FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000844FFTW_DELEGATE_FALSE
845FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000846DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000847DPS_DELEGATE_FALSE
848DPS_DELEGATE_TRUE
849AUTOTRACE_DELEGATE_FALSE
850AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000851AUTOTRACE_LIBS
852AUTOTRACE_CFLAGS
853LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000854WITH_LTDL_FALSE
855WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857ZLIB_DELEGATE_FALSE
858ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859XEXT_LIBS
860X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861X11_DELEGATE_FALSE
862X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863X_EXTRA_LIBS
864X_LIBS
865X_PRE_LIBS
866X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000867XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000868BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000869BZLIB_DELEGATE_FALSE
870BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000871CCMALLOCDelegate
872UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000873HasUMEM_FALSE
874HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000875JEMALLOC_LIBS
876HasJEMALLOC_FALSE
877HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000878GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000879WITH_MAGICK_PLUS_PLUS_FALSE
880WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000881OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000882MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000883POW_LIB
884LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000885UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000886UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000887UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000888UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000889UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000890UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000891INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000892INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000893UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000894UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000895INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000896INT32_T
897UINT16_T
898INT16_T
899UINT8_T
900INT8_T
901LIBRARY_EXTRA_CPPFLAGS
902MODULE_EXTRA_CPPFLAGS
903LIBSTDCLDFLAGS
904PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000905MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000906MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000907QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000908LEGACY_SUPPORT_FALSE
909LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000910MAINT
911MAINTAINER_MODE_FALSE
912MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000913MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000914WITH_MODULES_FALSE
915WITH_MODULES_TRUE
916WITH_SHARED_LIBS_FALSE
917WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000919CXXCPP
920OTOOL64
921OTOOL
922LIPO
923NMEDIT
924DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000925MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000926RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000927NM
928ac_ct_DUMPBIN
929DUMPBIN
930LIBTOOL
931OBJDUMP
932DLLTOOL
933AS
cristy3ed852e2009-09-05 21:47:34 +0000934LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000935CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000936CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000937OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000938THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000939PTHREAD_CFLAGS
940PTHREAD_LIBS
941PTHREAD_CC
942ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000943pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000944SHAREARCH_DIR
945INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000946WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000947USING_CL_FALSE
948USING_CL_TRUE
949CYGWIN_BUILD_FALSE
950CYGWIN_BUILD_TRUE
951WIN32_NATIVE_BUILD_FALSE
952WIN32_NATIVE_BUILD_TRUE
953WINGDI32_DELEGATE_FALSE
954WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000955GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000956HAVE_LD_VERSION_SCRIPT_FALSE
957HAVE_LD_VERSION_SCRIPT_TRUE
cristy146497a2015-05-17 22:46:16 +0000958PKG_CONFIG_LIBDIR
959PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000960PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000961PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000962LN_S
cristy3ed852e2009-09-05 21:47:34 +0000963LD
cristy73bd4a52010-10-05 11:24:23 +0000964FGREP
965SED
966am__fastdepCXX_FALSE
967am__fastdepCXX_TRUE
968CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000969ac_ct_CXX
970CXXFLAGS
971CXX
cristy9e007fe2015-01-03 16:05:07 +0000972ac_ct_AR
973AR
cristya0b81c32010-01-22 02:54:33 +0000974EGREP
975GREP
976CPP
cristy73bd4a52010-10-05 11:24:23 +0000977am__fastdepCC_FALSE
978am__fastdepCC_TRUE
979CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000980am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000981AMDEPBACKSLASH
982AMDEP_FALSE
983AMDEP_TRUE
984am__quote
985am__include
986DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000987OBJEXT
988EXEEXT
989ac_ct_CC
990CPPFLAGS
991LDFLAGS
992CFLAGS
993CC
994DIRSEP
995MAGICK_FILTER_MODULE_PATH
996MAGICK_CONFIGURE_BUILD_PATH
997MAGICK_CONFIGURE_SRC_PATH
998MAGICK_CODER_MODULE_PATH
999MAN_DIR
1000INFO_DIR
1001PERSISTINCLUDE_DIR
1002INCLUDE_DIR
1003LIB_DIR
1004LOCALSTATE_DIR
1005SHAREDSTATE_DIR
1006SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001007DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001008DATA_DIR
1009LIBEXEC_DIR
1010SBIN_DIR
1011BIN_DIR
1012EXEC_PREFIX_DIR
1013PREFIX_DIR
1014CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001015MAGICKPP_LIB_VERSION_TEXT
1016MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001017MAGICK_LIB_VERSION_NUMBER
1018MAGICK_LIB_VERSION_TEXT
1019MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001020PACKAGE_VERSION_ADDENDUM
1021PACKAGE_RELEASE_DATE
1022PACKAGE_LIB_VERSION_NUMBER
1023PACKAGE_LIB_VERSION
1024PACKAGE_CHANGE_DATE
1025PACKAGE_RELEASE
1026PACKAGE_PERL_VERSION
1027MAGICKPP_LIBRARY_VERSION_INFO
1028MAGICKPP_LIBRARY_CURRENT_MIN
1029MAGICKPP_LIBRARY_AGE
1030MAGICKPP_LIBRARY_REVISION
1031MAGICKPP_LIBRARY_CURRENT
1032MAGICK_LIBRARY_VERSION_INFO
1033MAGICK_LIBRARY_CURRENT_MIN
1034MAGICK_LIBRARY_AGE
1035MAGICK_LIBRARY_REVISION
1036MAGICK_LIBRARY_CURRENT
1037MAGICK_SVN_REVISION
1038MAGICK_VERSION
1039MAGICK_PATCHLEVEL_VERSION
1040MAGICK_MICRO_VERSION
1041MAGICK_MINOR_VERSION
1042MAGICK_MAJOR_VERSION
1043MAGICK_TARGET_OS
1044MAGICK_TARGET_VENDOR
1045MAGICK_TARGET_CPU
1046CONFIGURE_ARGS
1047DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001048AM_BACKSLASH
1049AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001050AM_DEFAULT_V
1051AM_V
cristy73bd4a52010-10-05 11:24:23 +00001052am__untar
1053am__tar
1054AMTAR
1055am__leading_dot
1056SET_MAKE
1057AWK
1058mkdir_p
1059MKDIR_P
1060INSTALL_STRIP_PROGRAM
1061STRIP
1062install_sh
1063MAKEINFO
1064AUTOHEADER
1065AUTOMAKE
1066AUTOCONF
1067ACLOCAL
1068VERSION
1069PACKAGE
1070CYGPATH_W
1071am__isrc
1072INSTALL_DATA
1073INSTALL_SCRIPT
1074INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001075target_os
1076target_vendor
1077target_cpu
1078target
1079host_os
1080host_vendor
1081host_cpu
1082host
1083build_os
1084build_vendor
1085build_cpu
1086build
cristy3ed852e2009-09-05 21:47:34 +00001087target_alias
1088host_alias
1089build_alias
1090LIBS
1091ECHO_T
1092ECHO_N
1093ECHO_C
1094DEFS
1095mandir
1096localedir
1097libdir
1098psdir
1099pdfdir
1100dvidir
1101htmldir
1102infodir
1103docdir
1104oldincludedir
1105includedir
1106localstatedir
1107sharedstatedir
1108sysconfdir
1109datadir
1110datarootdir
1111libexecdir
1112sbindir
1113bindir
1114program_transform_name
1115prefix
1116exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001117PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001118PACKAGE_BUGREPORT
1119PACKAGE_STRING
1120PACKAGE_VERSION
1121PACKAGE_TARNAME
1122PACKAGE_NAME
1123PATH_SEPARATOR
1124SHELL'
1125ac_subst_files=''
1126ac_user_opts='
1127enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001128enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001129enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001130enable_dependency_tracking
1131with_gnu_ld
1132with_dmalloc
cristya0459972013-11-03 18:09:35 +00001133with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001134enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001135enable_bounds_checking
1136enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001137with_includearch_dir
1138with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001139with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001140with_threads
1141enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001142enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001143enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001144enable_shared
1145enable_static
1146with_pic
1147enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001148with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001149enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001150with_modules
1151enable_delegate_build
1152enable_deprecated
1153enable_installed
1154enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001155enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001156enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001157enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001158enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001159enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001160enable_ccmalloc
1161enable_efence
1162enable_prof
1163enable_gprof
1164enable_gcov
1165with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001166enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001167with_quantum_depth
1168with_cache
1169with_frozenpaths
1170with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001171with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001172with_perl
1173with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001174with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001175with_umem
1176with_libstdc
1177with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001178with_x
cristy3ed852e2009-09-05 21:47:34 +00001179with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001180with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001181with_autotrace
1182with_dps
cristy430a7312010-01-21 20:44:04 +00001183with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001184with_fftw
1185with_fpx
cristy853d9902014-08-21 18:50:43 +00001186with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001187with_fontconfig
1188with_freetype
1189with_gslib
1190with_fontpath
1191with_gs_font_dir
1192with_gvc
1193with_jbig
1194with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001195with_lcms
cristy71203402010-06-18 13:12:03 +00001196with_lcms2
cristy99db3872014-01-01 15:11:34 +00001197with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001198with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001199with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001200with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001201with_pango
cristy3ed852e2009-09-05 21:47:34 +00001202with_png
1203with_rsvg
1204with_tiff
cristyb1860752011-03-14 00:27:46 +00001205with_webp
cristy3ed852e2009-09-05 21:47:34 +00001206with_windows_font_dir
1207with_wmf
1208with_xml
cristydd17feb2014-03-05 02:06:32 +00001209enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001210'
1211 ac_precious_vars='build_alias
1212host_alias
1213target_alias
1214CC
1215CFLAGS
1216LDFLAGS
1217LIBS
1218CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001219CPP
cristy3ed852e2009-09-05 21:47:34 +00001220CXX
1221CXXFLAGS
1222CCC
cristy73bd4a52010-10-05 11:24:23 +00001223PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001224PKG_CONFIG_PATH
1225PKG_CONFIG_LIBDIR
cristy73bd4a52010-10-05 11:24:23 +00001226CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001227XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001228AUTOTRACE_CFLAGS
1229AUTOTRACE_LIBS
1230FONTCONFIG_CFLAGS
1231FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001232FREETYPE_CFLAGS
1233FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001234GVC_CFLAGS
1235GVC_LIBS
cristy99db3872014-01-01 15:11:34 +00001236LIBOPENJP2_CFLAGS
1237LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001238LQR_CFLAGS
1239LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001240LZMA_CFLAGS
1241LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001242OPENEXR_CFLAGS
1243OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001244PANGO_CFLAGS
1245PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001246RSVG_CFLAGS
1247RSVG_LIBS
1248CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001249CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001250
1251
1252# Initialize some variables set by options.
1253ac_init_help=
1254ac_init_version=false
1255ac_unrecognized_opts=
1256ac_unrecognized_sep=
1257# The variables have the same names as the options, with
1258# dashes changed to underlines.
1259cache_file=/dev/null
1260exec_prefix=NONE
1261no_create=
1262no_recursion=
1263prefix=NONE
1264program_prefix=NONE
1265program_suffix=NONE
1266program_transform_name=s,x,x,
1267silent=
1268site=
1269srcdir=
1270verbose=
1271x_includes=NONE
1272x_libraries=NONE
1273
1274# Installation directory options.
1275# These are left unexpanded so users can "make install exec_prefix=/foo"
1276# and all the variables that are supposed to be based on exec_prefix
1277# by default will actually change.
1278# Use braces instead of parens because sh, perl, etc. also accept them.
1279# (The list follows the same order as the GNU Coding Standards.)
1280bindir='${exec_prefix}/bin'
1281sbindir='${exec_prefix}/sbin'
1282libexecdir='${exec_prefix}/libexec'
1283datarootdir='${prefix}/share'
1284datadir='${datarootdir}'
1285sysconfdir='${prefix}/etc'
1286sharedstatedir='${prefix}/com'
1287localstatedir='${prefix}/var'
1288includedir='${prefix}/include'
1289oldincludedir='/usr/include'
1290docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1291infodir='${datarootdir}/info'
1292htmldir='${docdir}'
1293dvidir='${docdir}'
1294pdfdir='${docdir}'
1295psdir='${docdir}'
1296libdir='${exec_prefix}/lib'
1297localedir='${datarootdir}/locale'
1298mandir='${datarootdir}/man'
1299
1300ac_prev=
1301ac_dashdash=
1302for ac_option
1303do
1304 # If the previous option needs an argument, assign it.
1305 if test -n "$ac_prev"; then
1306 eval $ac_prev=\$ac_option
1307 ac_prev=
1308 continue
1309 fi
1310
1311 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001312 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1313 *=) ac_optarg= ;;
1314 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001315 esac
1316
1317 # Accept the important Cygnus configure options, so we can diagnose typos.
1318
1319 case $ac_dashdash$ac_option in
1320 --)
1321 ac_dashdash=yes ;;
1322
1323 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1324 ac_prev=bindir ;;
1325 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1326 bindir=$ac_optarg ;;
1327
1328 -build | --build | --buil | --bui | --bu)
1329 ac_prev=build_alias ;;
1330 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1331 build_alias=$ac_optarg ;;
1332
1333 -cache-file | --cache-file | --cache-fil | --cache-fi \
1334 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1335 ac_prev=cache_file ;;
1336 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1337 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1338 cache_file=$ac_optarg ;;
1339
1340 --config-cache | -C)
1341 cache_file=config.cache ;;
1342
1343 -datadir | --datadir | --datadi | --datad)
1344 ac_prev=datadir ;;
1345 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1346 datadir=$ac_optarg ;;
1347
1348 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1349 | --dataroo | --dataro | --datar)
1350 ac_prev=datarootdir ;;
1351 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1352 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1353 datarootdir=$ac_optarg ;;
1354
1355 -disable-* | --disable-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001359 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364"enable_$ac_useropt"
1365"*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval enable_$ac_useropt=no ;;
1370
1371 -docdir | --docdir | --docdi | --doc | --do)
1372 ac_prev=docdir ;;
1373 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1374 docdir=$ac_optarg ;;
1375
1376 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1377 ac_prev=dvidir ;;
1378 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1379 dvidir=$ac_optarg ;;
1380
1381 -enable-* | --enable-*)
1382 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1383 # Reject names that are not valid shell variable names.
1384 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001385 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001386 ac_useropt_orig=$ac_useropt
1387 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388 case $ac_user_opts in
1389 *"
1390"enable_$ac_useropt"
1391"*) ;;
1392 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1393 ac_unrecognized_sep=', ';;
1394 esac
1395 eval enable_$ac_useropt=\$ac_optarg ;;
1396
1397 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1398 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1399 | --exec | --exe | --ex)
1400 ac_prev=exec_prefix ;;
1401 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1402 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1403 | --exec=* | --exe=* | --ex=*)
1404 exec_prefix=$ac_optarg ;;
1405
1406 -gas | --gas | --ga | --g)
1407 # Obsolete; use --with-gas.
1408 with_gas=yes ;;
1409
1410 -help | --help | --hel | --he | -h)
1411 ac_init_help=long ;;
1412 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1413 ac_init_help=recursive ;;
1414 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1415 ac_init_help=short ;;
1416
1417 -host | --host | --hos | --ho)
1418 ac_prev=host_alias ;;
1419 -host=* | --host=* | --hos=* | --ho=*)
1420 host_alias=$ac_optarg ;;
1421
1422 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1423 ac_prev=htmldir ;;
1424 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1425 | --ht=*)
1426 htmldir=$ac_optarg ;;
1427
1428 -includedir | --includedir | --includedi | --included | --include \
1429 | --includ | --inclu | --incl | --inc)
1430 ac_prev=includedir ;;
1431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1432 | --includ=* | --inclu=* | --incl=* | --inc=*)
1433 includedir=$ac_optarg ;;
1434
1435 -infodir | --infodir | --infodi | --infod | --info | --inf)
1436 ac_prev=infodir ;;
1437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1438 infodir=$ac_optarg ;;
1439
1440 -libdir | --libdir | --libdi | --libd)
1441 ac_prev=libdir ;;
1442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1443 libdir=$ac_optarg ;;
1444
1445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1446 | --libexe | --libex | --libe)
1447 ac_prev=libexecdir ;;
1448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1449 | --libexe=* | --libex=* | --libe=*)
1450 libexecdir=$ac_optarg ;;
1451
1452 -localedir | --localedir | --localedi | --localed | --locale)
1453 ac_prev=localedir ;;
1454 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1455 localedir=$ac_optarg ;;
1456
1457 -localstatedir | --localstatedir | --localstatedi | --localstated \
1458 | --localstate | --localstat | --localsta | --localst | --locals)
1459 ac_prev=localstatedir ;;
1460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1461 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1462 localstatedir=$ac_optarg ;;
1463
1464 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1465 ac_prev=mandir ;;
1466 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1467 mandir=$ac_optarg ;;
1468
1469 -nfp | --nfp | --nf)
1470 # Obsolete; use --without-fp.
1471 with_fp=no ;;
1472
1473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1474 | --no-cr | --no-c | -n)
1475 no_create=yes ;;
1476
1477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1479 no_recursion=yes ;;
1480
1481 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1482 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1483 | --oldin | --oldi | --old | --ol | --o)
1484 ac_prev=oldincludedir ;;
1485 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1486 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1487 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1488 oldincludedir=$ac_optarg ;;
1489
1490 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1491 ac_prev=prefix ;;
1492 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1493 prefix=$ac_optarg ;;
1494
1495 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1496 | --program-pre | --program-pr | --program-p)
1497 ac_prev=program_prefix ;;
1498 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1499 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1500 program_prefix=$ac_optarg ;;
1501
1502 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1503 | --program-suf | --program-su | --program-s)
1504 ac_prev=program_suffix ;;
1505 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1506 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1507 program_suffix=$ac_optarg ;;
1508
1509 -program-transform-name | --program-transform-name \
1510 | --program-transform-nam | --program-transform-na \
1511 | --program-transform-n | --program-transform- \
1512 | --program-transform | --program-transfor \
1513 | --program-transfo | --program-transf \
1514 | --program-trans | --program-tran \
1515 | --progr-tra | --program-tr | --program-t)
1516 ac_prev=program_transform_name ;;
1517 -program-transform-name=* | --program-transform-name=* \
1518 | --program-transform-nam=* | --program-transform-na=* \
1519 | --program-transform-n=* | --program-transform-=* \
1520 | --program-transform=* | --program-transfor=* \
1521 | --program-transfo=* | --program-transf=* \
1522 | --program-trans=* | --program-tran=* \
1523 | --progr-tra=* | --program-tr=* | --program-t=*)
1524 program_transform_name=$ac_optarg ;;
1525
1526 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1527 ac_prev=pdfdir ;;
1528 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1529 pdfdir=$ac_optarg ;;
1530
1531 -psdir | --psdir | --psdi | --psd | --ps)
1532 ac_prev=psdir ;;
1533 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1534 psdir=$ac_optarg ;;
1535
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1538 silent=yes ;;
1539
1540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1541 ac_prev=sbindir ;;
1542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1543 | --sbi=* | --sb=*)
1544 sbindir=$ac_optarg ;;
1545
1546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1548 | --sharedst | --shareds | --shared | --share | --shar \
1549 | --sha | --sh)
1550 ac_prev=sharedstatedir ;;
1551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1554 | --sha=* | --sh=*)
1555 sharedstatedir=$ac_optarg ;;
1556
1557 -site | --site | --sit)
1558 ac_prev=site ;;
1559 -site=* | --site=* | --sit=*)
1560 site=$ac_optarg ;;
1561
1562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1563 ac_prev=srcdir ;;
1564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1565 srcdir=$ac_optarg ;;
1566
1567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1568 | --syscon | --sysco | --sysc | --sys | --sy)
1569 ac_prev=sysconfdir ;;
1570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1572 sysconfdir=$ac_optarg ;;
1573
1574 -target | --target | --targe | --targ | --tar | --ta | --t)
1575 ac_prev=target_alias ;;
1576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1577 target_alias=$ac_optarg ;;
1578
1579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1580 verbose=yes ;;
1581
1582 -version | --version | --versio | --versi | --vers | -V)
1583 ac_init_version=: ;;
1584
1585 -with-* | --with-*)
1586 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1587 # Reject names that are not valid shell variable names.
1588 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001590 ac_useropt_orig=$ac_useropt
1591 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1592 case $ac_user_opts in
1593 *"
1594"with_$ac_useropt"
1595"*) ;;
1596 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1597 ac_unrecognized_sep=', ';;
1598 esac
1599 eval with_$ac_useropt=\$ac_optarg ;;
1600
1601 -without-* | --without-*)
1602 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1603 # Reject names that are not valid shell variable names.
1604 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001605 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001606 ac_useropt_orig=$ac_useropt
1607 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1608 case $ac_user_opts in
1609 *"
1610"with_$ac_useropt"
1611"*) ;;
1612 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1613 ac_unrecognized_sep=', ';;
1614 esac
1615 eval with_$ac_useropt=no ;;
1616
1617 --x)
1618 # Obsolete; use --with-x.
1619 with_x=yes ;;
1620
1621 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1622 | --x-incl | --x-inc | --x-in | --x-i)
1623 ac_prev=x_includes ;;
1624 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1625 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1626 x_includes=$ac_optarg ;;
1627
1628 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1629 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1630 ac_prev=x_libraries ;;
1631 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1632 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1633 x_libraries=$ac_optarg ;;
1634
cristy98dddb52010-11-04 00:30:15 +00001635 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1636Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001637 ;;
1638
1639 *=*)
1640 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1641 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001642 case $ac_envvar in #(
1643 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001644 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001645 esac
cristy3ed852e2009-09-05 21:47:34 +00001646 eval $ac_envvar=\$ac_optarg
1647 export $ac_envvar ;;
1648
1649 *)
1650 # FIXME: should be removed in autoconf 3.0.
1651 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1652 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1653 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001654 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001655 ;;
1656
1657 esac
1658done
1659
1660if test -n "$ac_prev"; then
1661 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001662 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001663fi
1664
1665if test -n "$ac_unrecognized_opts"; then
1666 case $enable_option_checking in
1667 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001668 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001669 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1670 esac
1671fi
1672
1673# Check all directory arguments for consistency.
1674for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1675 datadir sysconfdir sharedstatedir localstatedir includedir \
1676 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1677 libdir localedir mandir
1678do
1679 eval ac_val=\$$ac_var
1680 # Remove trailing slashes.
1681 case $ac_val in
1682 */ )
1683 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1684 eval $ac_var=\$ac_val;;
1685 esac
1686 # Be sure to have absolute directory names.
1687 case $ac_val in
1688 [\\/$]* | ?:[\\/]* ) continue;;
1689 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1690 esac
cristy98dddb52010-11-04 00:30:15 +00001691 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001692done
1693
1694# There might be people who depend on the old broken behavior: `$host'
1695# used to hold the argument of --host etc.
1696# FIXME: To remove some day.
1697build=$build_alias
1698host=$host_alias
1699target=$target_alias
1700
1701# FIXME: To remove some day.
1702if test "x$host_alias" != x; then
1703 if test "x$build_alias" = x; then
1704 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001705 elif test "x$build_alias" != "x$host_alias"; then
1706 cross_compiling=yes
1707 fi
1708fi
1709
1710ac_tool_prefix=
1711test -n "$host_alias" && ac_tool_prefix=$host_alias-
1712
1713test "$silent" = yes && exec 6>/dev/null
1714
1715
1716ac_pwd=`pwd` && test -n "$ac_pwd" &&
1717ac_ls_di=`ls -di .` &&
1718ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001719 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001720test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001721 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001722
1723
1724# Find the source files, if location was not specified.
1725if test -z "$srcdir"; then
1726 ac_srcdir_defaulted=yes
1727 # Try the directory containing this script, then the parent directory.
1728 ac_confdir=`$as_dirname -- "$as_myself" ||
1729$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1730 X"$as_myself" : 'X\(//\)[^/]' \| \
1731 X"$as_myself" : 'X\(//\)$' \| \
1732 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1733$as_echo X"$as_myself" |
1734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1735 s//\1/
1736 q
1737 }
1738 /^X\(\/\/\)[^/].*/{
1739 s//\1/
1740 q
1741 }
1742 /^X\(\/\/\)$/{
1743 s//\1/
1744 q
1745 }
1746 /^X\(\/\).*/{
1747 s//\1/
1748 q
1749 }
1750 s/.*/./; q'`
1751 srcdir=$ac_confdir
1752 if test ! -r "$srcdir/$ac_unique_file"; then
1753 srcdir=..
1754 fi
1755else
1756 ac_srcdir_defaulted=no
1757fi
1758if test ! -r "$srcdir/$ac_unique_file"; then
1759 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001760 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001761fi
1762ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1763ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001764 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001765 pwd)`
1766# When building in place, set srcdir=.
1767if test "$ac_abs_confdir" = "$ac_pwd"; then
1768 srcdir=.
1769fi
1770# Remove unnecessary trailing slashes from srcdir.
1771# Double slashes in file names in object file debugging info
1772# mess up M-x gdb in Emacs.
1773case $srcdir in
1774*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1775esac
1776for ac_var in $ac_precious_vars; do
1777 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1778 eval ac_env_${ac_var}_value=\$${ac_var}
1779 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1780 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1781done
1782
1783#
1784# Report the --help message.
1785#
1786if test "$ac_init_help" = "long"; then
1787 # Omit some internal or obsolete options to make the list less imposing.
1788 # This message is too long to be a string in the A/UX 3.1 sh.
1789 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001790\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001791
1792Usage: $0 [OPTION]... [VAR=VALUE]...
1793
1794To assign environment variables (e.g., CC, CFLAGS...), specify them as
1795VAR=VALUE. See below for descriptions of some of the useful variables.
1796
1797Defaults for the options are specified in brackets.
1798
1799Configuration:
1800 -h, --help display this help and exit
1801 --help=short display options specific to this package
1802 --help=recursive display the short help of all the included packages
1803 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001804 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001805 --cache-file=FILE cache test results in FILE [disabled]
1806 -C, --config-cache alias for \`--cache-file=config.cache'
1807 -n, --no-create do not create output files
1808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1809
1810Installation directories:
1811 --prefix=PREFIX install architecture-independent files in PREFIX
1812 [$ac_default_prefix]
1813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1814 [PREFIX]
1815
1816By default, \`make install' will install all the files in
1817\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1818an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1819for instance \`--prefix=\$HOME'.
1820
1821For better control, use the options below.
1822
1823Fine tuning of the installation directories:
1824 --bindir=DIR user executables [EPREFIX/bin]
1825 --sbindir=DIR system admin executables [EPREFIX/sbin]
1826 --libexecdir=DIR program executables [EPREFIX/libexec]
1827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1830 --libdir=DIR object code libraries [EPREFIX/lib]
1831 --includedir=DIR C header files [PREFIX/include]
1832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1833 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1834 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1835 --infodir=DIR info documentation [DATAROOTDIR/info]
1836 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1837 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001838 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001839 --htmldir=DIR html documentation [DOCDIR]
1840 --dvidir=DIR dvi documentation [DOCDIR]
1841 --pdfdir=DIR pdf documentation [DOCDIR]
1842 --psdir=DIR ps documentation [DOCDIR]
1843_ACEOF
1844
1845 cat <<\_ACEOF
1846
cristy73bd4a52010-10-05 11:24:23 +00001847Program names:
1848 --program-prefix=PREFIX prepend PREFIX to installed program names
1849 --program-suffix=SUFFIX append SUFFIX to installed program names
1850 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1851
cristy3ed852e2009-09-05 21:47:34 +00001852X features:
1853 --x-includes=DIR X include files are in DIR
1854 --x-libraries=DIR X library files are in DIR
1855
1856System types:
1857 --build=BUILD configure for building on BUILD [guessed]
1858 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1859 --target=TARGET configure for building compilers for TARGET [HOST]
1860_ACEOF
1861fi
1862
1863if test -n "$ac_init_help"; then
1864 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001865 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001866 esac
1867 cat <<\_ACEOF
1868
1869Optional Features:
1870 --disable-option-checking ignore unrecognized --enable/--with options
1871 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1872 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001873 --enable-silent-rules less verbose build output (undo: "make V=1")
1874 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001875 --enable-reproducible-build
1876 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001877 --enable-dependency-tracking
1878 do not reject slow dependency extractors
1879 --disable-dependency-tracking
1880 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001881 --enable-ld-version-script
1882 enable linker version script (default is enabled
1883 when possible)
cristya3824692012-03-30 17:22:07 +00001884 --enable-bounds-checking
1885 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001886 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001887 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001888 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001889 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001890 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001891 --enable-shared[=PKGS] build shared libraries [default=yes]
1892 --enable-static[=PKGS] build static libraries [default=yes]
1893 --enable-fast-install[=PKGS]
1894 optimize for fast installation [default=yes]
1895 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001896 --enable-delegate-build look for delegate libraries in build directory
1897 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001898 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001899 --disable-installed Formally install ImageMagick under PREFIX
1900 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001901 --enable-zero-configuration
1902 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001903 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001904 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001905 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001906 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001907 --enable-maintainer-mode
1908 enable make rules and dependencies not useful (and
1909 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001910 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001911 --enable-ccmalloc enable 'ccmalloc' memory debug support
1912 --enable-efence enable 'efence' memory debug support
1913 --enable-prof enable 'prof' profiling support
1914 --enable-gprof enable 'gprof' profiling support
1915 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001916 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001917 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001918 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001919
1920Optional Packages:
1921 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1922 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001923 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001924 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001925 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1926 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001927 --includearch-dir=DIR ARCH specific include directory
1928 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001929 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001930 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001931 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001932 both]
cristyda16f162011-02-19 23:52:17 +00001933 --with-sysroot=DIR Search for dependent libraries within DIR
1934 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001935 --with-modules enable building dynamically loadable modules
1936 --with-method-prefix=PREFIX
1937 prefix MagickCore API methods
1938 --with-quantum-depth=DEPTH
1939 number of bits in a pixel quantum (default 16)
1940 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1941 memory)
1942 --with-frozenpaths freeze delegate paths
1943 --without-magick-plus-plus
1944 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001945 --with-package-release-name=NAME
1946 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001947 --with-perl enable build/install of PerlMagick
1948 --with-perl-options=OPTIONS
1949 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001950 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001951 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-umem enable umem memory allocation library support
1953 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1954 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001955 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001957 --with-apple-font-dir=DIR
1958 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001959 --with-autotrace enable autotrace support
1960 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001961 --with-dejavu-font-dir=DIR
1962 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001963 --without-fftw disable FFTW support
1964 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001965 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001966 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001967 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001968 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001969 --with-fontpath=DIR prepend to default font search path
1970 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001971 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001972 --without-jbig disable JBIG support
1973 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00001974 --without-lcms disable lcms (v1.1X) support
1975 --without-lcms2 disable lcms (v2.X) support
cristy99db3872014-01-01 15:11:34 +00001976 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00001977 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001978 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001979 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001980 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001981 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00001982 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001983 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001984 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001985 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00001986 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00001987 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001988 --without-xml disable XML support
1989
1990Some influential environment variables:
1991 CC C compiler command
1992 CFLAGS C compiler flags
1993 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1994 nonstandard directory <lib dir>
1995 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001996 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001997 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001998 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001999 CXX C++ compiler command
2000 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002001 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002002 PKG_CONFIG_PATH
2003 directories to add to pkg-config's search path
2004 PKG_CONFIG_LIBDIR
2005 path overriding pkg-config's built-in search path
nicolas6237c462010-10-05 06:11:49 +00002006 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002007 XMKMF Path to xmkmf, Makefile generator for X Window System
2008 AUTOTRACE_CFLAGS
2009 C compiler flags for AUTOTRACE, overriding pkg-config
2010 AUTOTRACE_LIBS
2011 linker flags for AUTOTRACE, overriding pkg-config
2012 FONTCONFIG_CFLAGS
2013 C compiler flags for FONTCONFIG, overriding pkg-config
2014 FONTCONFIG_LIBS
2015 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002016 FREETYPE_CFLAGS
2017 C compiler flags for FREETYPE, overriding pkg-config
2018 FREETYPE_LIBS
2019 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002020 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2021 GVC_LIBS linker flags for GVC, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002022 LIBOPENJP2_CFLAGS
2023 C compiler flags for LIBOPENJP2, overriding pkg-config
2024 LIBOPENJP2_LIBS
2025 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002026 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2027 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002028 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2029 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002030 OPENEXR_CFLAGS
2031 C compiler flags for OPENEXR, overriding pkg-config
2032 OPENEXR_LIBS
2033 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002034 PANGO_CFLAGS
2035 C compiler flags for PANGO, overriding pkg-config
2036 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002037 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2038 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2039 CAIRO_SVG_CFLAGS
2040 C compiler flags for CAIRO_SVG, overriding pkg-config
2041 CAIRO_SVG_LIBS
2042 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002043
2044Use these variables to override the choices made by `configure' or to help
2045it to find libraries and programs with nonstandard names/locations.
2046
2047Report bugs to <http://www.imagemagick.org>.
2048_ACEOF
2049ac_status=$?
2050fi
2051
2052if test "$ac_init_help" = "recursive"; then
2053 # If there are subdirs, report their specific --help.
2054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055 test -d "$ac_dir" ||
2056 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2057 continue
2058 ac_builddir=.
2059
2060case "$ac_dir" in
2061.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2062*)
2063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2064 # A ".." for each directory in $ac_dir_suffix.
2065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2066 case $ac_top_builddir_sub in
2067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2069 esac ;;
2070esac
2071ac_abs_top_builddir=$ac_pwd
2072ac_abs_builddir=$ac_pwd$ac_dir_suffix
2073# for backward compatibility:
2074ac_top_builddir=$ac_top_build_prefix
2075
2076case $srcdir in
2077 .) # We are building in place.
2078 ac_srcdir=.
2079 ac_top_srcdir=$ac_top_builddir_sub
2080 ac_abs_top_srcdir=$ac_pwd ;;
2081 [\\/]* | ?:[\\/]* ) # Absolute name.
2082 ac_srcdir=$srcdir$ac_dir_suffix;
2083 ac_top_srcdir=$srcdir
2084 ac_abs_top_srcdir=$srcdir ;;
2085 *) # Relative name.
2086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2087 ac_top_srcdir=$ac_top_build_prefix$srcdir
2088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2089esac
2090ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2091
2092 cd "$ac_dir" || { ac_status=$?; continue; }
2093 # Check for guested configure.
2094 if test -f "$ac_srcdir/configure.gnu"; then
2095 echo &&
2096 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2097 elif test -f "$ac_srcdir/configure"; then
2098 echo &&
2099 $SHELL "$ac_srcdir/configure" --help=recursive
2100 else
2101 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2102 fi || ac_status=$?
2103 cd "$ac_pwd" || { ac_status=$?; break; }
2104 done
2105fi
2106
2107test -n "$ac_init_help" && exit $ac_status
2108if $ac_init_version; then
2109 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002110ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002111generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002112
cristy14fefe52012-05-21 00:59:18 +00002113Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002114This configure script is free software; the Free Software Foundation
2115gives unlimited permission to copy, distribute and modify it.
2116_ACEOF
2117 exit
2118fi
cristy8b350f62009-11-15 23:12:43 +00002119
2120## ------------------------ ##
2121## Autoconf initialization. ##
2122## ------------------------ ##
2123
2124# ac_fn_c_try_compile LINENO
2125# --------------------------
2126# Try to compile conftest.$ac_ext, and return whether this succeeded.
2127ac_fn_c_try_compile ()
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 rm -f conftest.$ac_objext
2131 if { { ac_try="$ac_compile"
2132case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135esac
2136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137$as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_compile") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2144 fi
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } && {
2147 test -z "$ac_c_werror_flag" ||
2148 test ! -s conftest.err
2149 } && test -s conftest.$ac_objext; then :
2150 ac_retval=0
2151else
2152 $as_echo "$as_me: failed program was:" >&5
2153sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=1
2156fi
cristyda16f162011-02-19 23:52:17 +00002157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002158 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002159
2160} # ac_fn_c_try_compile
2161
cristy95646052009-11-28 23:05:30 +00002162# ac_fn_c_try_cpp LINENO
2163# ----------------------
2164# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165ac_fn_c_try_cpp ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { { ac_try="$ac_cpp conftest.$ac_ext"
2169case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172esac
2173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174$as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2176 ac_status=$?
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2181 fi
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002183 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2186 }; then :
2187 ac_retval=0
2188else
2189 $as_echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 ac_retval=1
2193fi
cristyda16f162011-02-19 23:52:17 +00002194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002195 as_fn_set_status $ac_retval
2196
2197} # ac_fn_c_try_cpp
2198
cristy8b350f62009-11-15 23:12:43 +00002199# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200# -------------------------------------------------------
2201# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202# the include files in INCLUDES and setting the cache variable VAR
2203# accordingly.
2204ac_fn_c_check_header_mongrel ()
2205{
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002207 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002210if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002211 $as_echo_n "(cached) " >&6
2212fi
2213eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215$as_echo "$ac_res" >&6; }
2216else
2217 # Is the header compilable?
2218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219$as_echo_n "checking $2 usability... " >&6; }
2220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221/* end confdefs.h. */
2222$4
2223#include <$2>
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_header_compiler=yes
2227else
2228 ac_header_compiler=no
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232$as_echo "$ac_header_compiler" >&6; }
2233
2234# Is the header present?
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236$as_echo_n "checking $2 presence... " >&6; }
2237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239#include <$2>
2240_ACEOF
2241if ac_fn_c_try_cpp "$LINENO"; then :
2242 ac_header_preproc=yes
2243else
2244 ac_header_preproc=no
2245fi
cristyda16f162011-02-19 23:52:17 +00002246rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248$as_echo "$ac_header_preproc" >&6; }
2249
2250# So? What about this header?
2251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2252 yes:no: )
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2257 ;;
2258 no:yes:* )
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2262$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2266$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002269( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002270## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002271## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002272 ) | sed "s/^/$as_me: WARNING: /" >&2
2273 ;;
2274esac
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002277if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002278 $as_echo_n "(cached) " >&6
2279else
2280 eval "$3=\$ac_header_compiler"
2281fi
2282eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284$as_echo "$ac_res" >&6; }
2285fi
cristyda16f162011-02-19 23:52:17 +00002286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002287
2288} # ac_fn_c_check_header_mongrel
2289
2290# ac_fn_c_try_run LINENO
2291# ----------------------
2292# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2293# that executables *can* be run.
2294ac_fn_c_try_run ()
2295{
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 if { { ac_try="$ac_link"
2298case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301esac
2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_link") 2>&5
2305 ac_status=$?
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2308 { { case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311esac
2312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313$as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_try") 2>&5
2315 ac_status=$?
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; }; }; then :
2318 ac_retval=0
2319else
2320 $as_echo "$as_me: program exited with status $ac_status" >&5
2321 $as_echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 ac_retval=$ac_status
2325fi
2326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002328 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002329
2330} # ac_fn_c_try_run
2331
2332# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2333# -------------------------------------------------------
2334# Tests whether HEADER exists and can be compiled using the include files in
2335# INCLUDES, setting the cache variable VAR accordingly.
2336ac_fn_c_check_header_compile ()
2337{
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002341if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002342 $as_echo_n "(cached) " >&6
2343else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347#include <$2>
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=yes"
2351else
2352 eval "$3=no"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002360
2361} # ac_fn_c_check_header_compile
2362
cristya0b81c32010-01-22 02:54:33 +00002363# ac_fn_cxx_try_compile LINENO
2364# ----------------------------
2365# Try to compile conftest.$ac_ext, and return whether this succeeded.
2366ac_fn_cxx_try_compile ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext
2370 if { { ac_try="$ac_compile"
2371case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374esac
2375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376$as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_compile") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2383 fi
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_cxx_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then :
2389 ac_retval=0
2390else
2391 $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_retval=1
2395fi
cristyda16f162011-02-19 23:52:17 +00002396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002397 as_fn_set_status $ac_retval
2398
2399} # ac_fn_cxx_try_compile
2400
cristyd95b7a52013-10-23 13:12:53 +00002401# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2402# --------------------------------------------
2403# Tries to find the compile-time value of EXPR in a program that includes
2404# INCLUDES, setting VAR accordingly. Returns whether the value could be
2405# computed
2406ac_fn_c_compute_int ()
2407{
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 if test "$cross_compiling" = yes; then
2410 # Depending upon the size, compute the lo and hi bounds.
2411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h. */
2413$4
2414int
2415main ()
2416{
2417static int test_array [1 - 2 * !(($2) >= 0)];
2418test_array [0] = 0;
2419return test_array [0];
2420
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425if ac_fn_c_try_compile "$LINENO"; then :
2426 ac_lo=0 ac_mid=0
2427 while :; do
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429/* end confdefs.h. */
2430$4
2431int
2432main ()
2433{
2434static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2435test_array [0] = 0;
2436return test_array [0];
2437
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442if ac_fn_c_try_compile "$LINENO"; then :
2443 ac_hi=$ac_mid; break
2444else
2445 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2446 if test $ac_lo -le $ac_mid; then
2447 ac_lo= ac_hi=
2448 break
2449 fi
2450 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2451fi
2452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 done
2454else
2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456/* end confdefs.h. */
2457$4
2458int
2459main ()
2460{
2461static int test_array [1 - 2 * !(($2) < 0)];
2462test_array [0] = 0;
2463return test_array [0];
2464
2465 ;
2466 return 0;
2467}
2468_ACEOF
2469if ac_fn_c_try_compile "$LINENO"; then :
2470 ac_hi=-1 ac_mid=-1
2471 while :; do
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473/* end confdefs.h. */
2474$4
2475int
2476main ()
2477{
2478static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2479test_array [0] = 0;
2480return test_array [0];
2481
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486if ac_fn_c_try_compile "$LINENO"; then :
2487 ac_lo=$ac_mid; break
2488else
2489 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2490 if test $ac_mid -le $ac_hi; then
2491 ac_lo= ac_hi=
2492 break
2493 fi
2494 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2495fi
2496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 done
2498else
2499 ac_lo= ac_hi=
2500fi
2501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502fi
2503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2504# Binary search between lo and hi bounds.
2505while test "x$ac_lo" != "x$ac_hi"; do
2506 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int
2511main ()
2512{
2513static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2514test_array [0] = 0;
2515return test_array [0];
2516
2517 ;
2518 return 0;
2519}
2520_ACEOF
2521if ac_fn_c_try_compile "$LINENO"; then :
2522 ac_hi=$ac_mid
2523else
2524 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2525fi
2526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527done
2528case $ac_lo in #((
2529?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2530'') ac_retval=1 ;;
2531esac
2532 else
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534/* end confdefs.h. */
2535$4
2536static long int longval () { return $2; }
2537static unsigned long int ulongval () { return $2; }
2538#include <stdio.h>
2539#include <stdlib.h>
2540int
2541main ()
2542{
2543
2544 FILE *f = fopen ("conftest.val", "w");
2545 if (! f)
2546 return 1;
2547 if (($2) < 0)
2548 {
2549 long int i = longval ();
2550 if (i != ($2))
2551 return 1;
2552 fprintf (f, "%ld", i);
2553 }
2554 else
2555 {
2556 unsigned long int i = ulongval ();
2557 if (i != ($2))
2558 return 1;
2559 fprintf (f, "%lu", i);
2560 }
2561 /* Do not output a trailing newline, as this causes \r\n confusion
2562 on some platforms. */
2563 return ferror (f) || fclose (f) != 0;
2564
2565 ;
2566 return 0;
2567}
2568_ACEOF
2569if ac_fn_c_try_run "$LINENO"; then :
2570 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2571else
2572 ac_retval=1
2573fi
2574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2575 conftest.$ac_objext conftest.beam conftest.$ac_ext
2576rm -f conftest.val
2577
2578 fi
2579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2580 as_fn_set_status $ac_retval
2581
2582} # ac_fn_c_compute_int
2583
cristy8b350f62009-11-15 23:12:43 +00002584# ac_fn_c_try_link LINENO
2585# -----------------------
2586# Try to link conftest.$ac_ext, and return whether this succeeded.
2587ac_fn_c_try_link ()
2588{
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 rm -f conftest.$ac_objext conftest$ac_exeext
2591 if { { ac_try="$ac_link"
2592case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595esac
2596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2597$as_echo "$ac_try_echo"; } >&5
2598 (eval "$ac_link") 2>conftest.err
2599 ac_status=$?
2600 if test -s conftest.err; then
2601 grep -v '^ *+' conftest.err >conftest.er1
2602 cat conftest.er1 >&5
2603 mv -f conftest.er1 conftest.err
2604 fi
2605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2606 test $ac_status = 0; } && {
2607 test -z "$ac_c_werror_flag" ||
2608 test ! -s conftest.err
2609 } && test -s conftest$ac_exeext && {
2610 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002611 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002612 }; then :
2613 ac_retval=0
2614else
2615 $as_echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 ac_retval=1
2619fi
2620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2622 # interfere with the next link command; also delete a directory that is
2623 # left behind by Apple's compiler. We do this before executing the actions.
2624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002626 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002627
2628} # ac_fn_c_try_link
2629
cristy73bd4a52010-10-05 11:24:23 +00002630# ac_fn_c_check_func LINENO FUNC VAR
2631# ----------------------------------
2632# Tests whether FUNC exists, setting the cache variable VAR accordingly
2633ac_fn_c_check_func ()
2634{
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2637$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002638if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002639 $as_echo_n "(cached) " >&6
2640else
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642/* end confdefs.h. */
2643/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2645#define $2 innocuous_$2
2646
2647/* System header to define __stub macros and hopefully few prototypes,
2648 which can conflict with char $2 (); below.
2649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2650 <limits.h> exists even on freestanding compilers. */
2651
2652#ifdef __STDC__
2653# include <limits.h>
2654#else
2655# include <assert.h>
2656#endif
2657
2658#undef $2
2659
2660/* Override any GCC internal prototype to avoid an error.
2661 Use char because int might match the return type of a GCC
2662 builtin and then its argument prototype would still apply. */
2663#ifdef __cplusplus
2664extern "C"
2665#endif
2666char $2 ();
2667/* The GNU C library defines this for functions which it implements
2668 to always fail with ENOSYS. Some functions are actually named
2669 something starting with __ and the normal name is an alias. */
2670#if defined __stub_$2 || defined __stub___$2
2671choke me
2672#endif
2673
2674int
2675main ()
2676{
2677return $2 ();
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_link "$LINENO"; then :
2683 eval "$3=yes"
2684else
2685 eval "$3=no"
2686fi
2687rm -f core conftest.err conftest.$ac_objext \
2688 conftest$ac_exeext conftest.$ac_ext
2689fi
2690eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002694
2695} # ac_fn_c_check_func
2696
2697# ac_fn_cxx_try_cpp LINENO
2698# ------------------------
2699# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2700ac_fn_cxx_try_cpp ()
2701{
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 if { { ac_try="$ac_cpp conftest.$ac_ext"
2704case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707esac
2708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709$as_echo "$ac_try_echo"; } >&5
2710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2711 ac_status=$?
2712 if test -s conftest.err; then
2713 grep -v '^ *+' conftest.err >conftest.er1
2714 cat conftest.er1 >&5
2715 mv -f conftest.er1 conftest.err
2716 fi
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002718 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002719 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2720 test ! -s conftest.err
2721 }; then :
2722 ac_retval=0
2723else
2724 $as_echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 ac_retval=1
2728fi
cristyda16f162011-02-19 23:52:17 +00002729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002730 as_fn_set_status $ac_retval
2731
2732} # ac_fn_cxx_try_cpp
2733
2734# ac_fn_cxx_try_link LINENO
2735# -------------------------
2736# Try to link conftest.$ac_ext, and return whether this succeeded.
2737ac_fn_cxx_try_link ()
2738{
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 rm -f conftest.$ac_objext conftest$ac_exeext
2741 if { { ac_try="$ac_link"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747$as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_link") 2>conftest.err
2749 ac_status=$?
2750 if test -s conftest.err; then
2751 grep -v '^ *+' conftest.err >conftest.er1
2752 cat conftest.er1 >&5
2753 mv -f conftest.er1 conftest.err
2754 fi
2755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756 test $ac_status = 0; } && {
2757 test -z "$ac_cxx_werror_flag" ||
2758 test ! -s conftest.err
2759 } && test -s conftest$ac_exeext && {
2760 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002761 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002762 }; then :
2763 ac_retval=0
2764else
2765 $as_echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 ac_retval=1
2769fi
2770 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2771 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2772 # interfere with the next link command; also delete a directory that is
2773 # left behind by Apple's compiler. We do this before executing the actions.
2774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002776 as_fn_set_status $ac_retval
2777
2778} # ac_fn_cxx_try_link
2779
cristy8b350f62009-11-15 23:12:43 +00002780# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2781# -------------------------------------------
2782# Tests whether TYPE exists after having included INCLUDES, setting cache
2783# variable VAR accordingly.
2784ac_fn_c_check_type ()
2785{
2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002789if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002790 $as_echo_n "(cached) " >&6
2791else
2792 eval "$3=no"
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794/* end confdefs.h. */
2795$4
2796int
2797main ()
2798{
2799if (sizeof ($2))
2800 return 0;
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_compile "$LINENO"; then :
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
2808$4
2809int
2810main ()
2811{
2812if (sizeof (($2)))
2813 return 0;
2814 ;
2815 return 0;
2816}
2817_ACEOF
2818if ac_fn_c_try_compile "$LINENO"; then :
2819
2820else
2821 eval "$3=yes"
2822fi
2823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826fi
2827eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002831
2832} # ac_fn_c_check_type
2833
cristy92703d82010-04-26 00:18:18 +00002834# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2835# ----------------------------------------------------
2836# Tries to find if the field MEMBER exists in type AGGR, after including
2837# INCLUDES, setting cache variable VAR accordingly.
2838ac_fn_c_check_member ()
2839{
2840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2842$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002843if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002844 $as_echo_n "(cached) " >&6
2845else
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847/* end confdefs.h. */
2848$5
2849int
2850main ()
2851{
2852static $2 ac_aggr;
2853if (ac_aggr.$3)
2854return 0;
2855 ;
2856 return 0;
2857}
2858_ACEOF
2859if ac_fn_c_try_compile "$LINENO"; then :
2860 eval "$4=yes"
2861else
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h. */
2864$5
2865int
2866main ()
2867{
2868static $2 ac_aggr;
2869if (sizeof ac_aggr.$3)
2870return 0;
2871 ;
2872 return 0;
2873}
2874_ACEOF
2875if ac_fn_c_try_compile "$LINENO"; then :
2876 eval "$4=yes"
2877else
2878 eval "$4=no"
2879fi
2880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881fi
2882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883fi
2884eval ac_res=\$$4
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2886$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002888
2889} # ac_fn_c_check_member
2890
cristy5eef09f2012-10-16 12:08:28 +00002891# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2892# ---------------------------------------------
2893# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2894# accordingly.
2895ac_fn_c_check_decl ()
2896{
2897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2898 as_decl_name=`echo $2|sed 's/ *(.*//'`
2899 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2901$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2902if eval \${$3+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904else
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h. */
2907$4
2908int
2909main ()
2910{
2911#ifndef $as_decl_name
2912#ifdef __cplusplus
2913 (void) $as_decl_use;
2914#else
2915 (void) $as_decl_name;
2916#endif
2917#endif
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923if ac_fn_c_try_compile "$LINENO"; then :
2924 eval "$3=yes"
2925else
2926 eval "$3=no"
2927fi
2928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929fi
2930eval ac_res=\$$3
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2932$as_echo "$ac_res" >&6; }
2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934
2935} # ac_fn_c_check_decl
2936
cristy501c8042011-05-26 17:46:28 +00002937# ac_fn_c_find_intX_t LINENO BITS VAR
2938# -----------------------------------
2939# Finds a signed integer type with width BITS, setting cache variable VAR
2940# accordingly.
2941ac_fn_c_find_intX_t ()
2942{
2943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2945$as_echo_n "checking for int$2_t... " >&6; }
2946if eval \${$3+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948else
2949 eval "$3=no"
2950 # Order is important - never check a type that is potentially smaller
2951 # than half of the expected target width.
2952 for ac_type in int$2_t 'int' 'long int' \
2953 'long long int' 'short int' 'signed char'; do
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955/* end confdefs.h. */
2956$ac_includes_default
2957 enum { N = $2 / 2 - 1 };
2958int
2959main ()
2960{
2961static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002962test_array [0] = 0;
2963return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971/* end confdefs.h. */
2972$ac_includes_default
2973 enum { N = $2 / 2 - 1 };
2974int
2975main ()
2976{
2977static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2978 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002979test_array [0] = 0;
2980return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002981
2982 ;
2983 return 0;
2984}
2985_ACEOF
2986if ac_fn_c_try_compile "$LINENO"; then :
2987
2988else
2989 case $ac_type in #(
2990 int$2_t) :
2991 eval "$3=yes" ;; #(
2992 *) :
2993 eval "$3=\$ac_type" ;;
2994esac
2995fi
2996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997fi
2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 if eval test \"x\$"$3"\" = x"no"; then :
3000
3001else
3002 break
3003fi
3004 done
3005fi
3006eval ac_res=\$$3
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3008$as_echo "$ac_res" >&6; }
3009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3010
3011} # ac_fn_c_find_intX_t
3012
3013# ac_fn_c_find_uintX_t LINENO BITS VAR
3014# ------------------------------------
3015# Finds an unsigned integer type with width BITS, setting cache variable VAR
3016# accordingly.
3017ac_fn_c_find_uintX_t ()
3018{
3019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3021$as_echo_n "checking for uint$2_t... " >&6; }
3022if eval \${$3+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024else
3025 eval "$3=no"
3026 # Order is important - never check a type that is potentially smaller
3027 # than half of the expected target width.
3028 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3029 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h. */
3032$ac_includes_default
3033int
3034main ()
3035{
3036static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003037test_array [0] = 0;
3038return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044if ac_fn_c_try_compile "$LINENO"; then :
3045 case $ac_type in #(
3046 uint$2_t) :
3047 eval "$3=yes" ;; #(
3048 *) :
3049 eval "$3=\$ac_type" ;;
3050esac
3051fi
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 if eval test \"x\$"$3"\" = x"no"; then :
3054
3055else
3056 break
3057fi
3058 done
3059fi
3060eval ac_res=\$$3
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3062$as_echo "$ac_res" >&6; }
3063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3064
3065} # ac_fn_c_find_uintX_t
3066
cristy8b350f62009-11-15 23:12:43 +00003067# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3068# ---------------------------------------------------------
3069# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3070# the include files in INCLUDES and setting the cache variable VAR
3071# accordingly.
3072ac_fn_cxx_check_header_mongrel ()
3073{
3074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003075 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3077$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003078if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003079 $as_echo_n "(cached) " >&6
3080fi
3081eval ac_res=\$$3
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3083$as_echo "$ac_res" >&6; }
3084else
3085 # Is the header compilable?
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3087$as_echo_n "checking $2 usability... " >&6; }
3088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h. */
3090$4
3091#include <$2>
3092_ACEOF
3093if ac_fn_cxx_try_compile "$LINENO"; then :
3094 ac_header_compiler=yes
3095else
3096 ac_header_compiler=no
3097fi
3098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3100$as_echo "$ac_header_compiler" >&6; }
3101
3102# Is the header present?
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3104$as_echo_n "checking $2 presence... " >&6; }
3105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h. */
3107#include <$2>
3108_ACEOF
3109if ac_fn_cxx_try_cpp "$LINENO"; then :
3110 ac_header_preproc=yes
3111else
3112 ac_header_preproc=no
3113fi
cristyda16f162011-02-19 23:52:17 +00003114rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3116$as_echo "$ac_header_preproc" >&6; }
3117
3118# So? What about this header?
3119case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3120 yes:no: )
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3122$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3124$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3125 ;;
3126 no:yes:* )
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3128$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3130$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3132$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3134$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3136$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003137( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003138## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003139## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003140 ) | sed "s/^/$as_me: WARNING: /" >&2
3141 ;;
3142esac
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3144$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003145if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003146 $as_echo_n "(cached) " >&6
3147else
3148 eval "$3=\$ac_header_compiler"
3149fi
3150eval ac_res=\$$3
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3152$as_echo "$ac_res" >&6; }
3153fi
cristyda16f162011-02-19 23:52:17 +00003154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003155
3156} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003157cat >config.log <<_ACEOF
3158This file contains any messages produced by compilers while
3159running configure, to aid debugging if configure makes a mistake.
3160
cristy29eb34e2011-10-16 00:46:08 +00003161It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003162generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003163
3164 $ $0 $@
3165
3166_ACEOF
3167exec 5>>config.log
3168{
3169cat <<_ASUNAME
3170## --------- ##
3171## Platform. ##
3172## --------- ##
3173
3174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3175uname -m = `(uname -m) 2>/dev/null || echo unknown`
3176uname -r = `(uname -r) 2>/dev/null || echo unknown`
3177uname -s = `(uname -s) 2>/dev/null || echo unknown`
3178uname -v = `(uname -v) 2>/dev/null || echo unknown`
3179
3180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3181/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3182
3183/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3184/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3186/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3187/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3188/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3189/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3190
3191_ASUNAME
3192
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003198 $as_echo "PATH: $as_dir"
3199 done
cristy3ed852e2009-09-05 21:47:34 +00003200IFS=$as_save_IFS
3201
3202} >&5
3203
3204cat >&5 <<_ACEOF
3205
3206
3207## ----------- ##
3208## Core tests. ##
3209## ----------- ##
3210
3211_ACEOF
3212
3213
3214# Keep a trace of the command line.
3215# Strip out --no-create and --no-recursion so they do not pile up.
3216# Strip out --silent because we don't want to record it for future runs.
3217# Also quote any args containing shell meta-characters.
3218# Make two passes to allow for proper duplicate-argument suppression.
3219ac_configure_args=
3220ac_configure_args0=
3221ac_configure_args1=
3222ac_must_keep_next=false
3223for ac_pass in 1 2
3224do
3225 for ac_arg
3226 do
3227 case $ac_arg in
3228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3230 | -silent | --silent | --silen | --sile | --sil)
3231 continue ;;
3232 *\'*)
3233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3234 esac
3235 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003237 2)
cristy8b350f62009-11-15 23:12:43 +00003238 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003239 if test $ac_must_keep_next = true; then
3240 ac_must_keep_next=false # Got value, back to normal.
3241 else
3242 case $ac_arg in
3243 *=* | --config-cache | -C | -disable-* | --disable-* \
3244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3246 | -with-* | --with-* | -without-* | --without-* | --x)
3247 case "$ac_configure_args0 " in
3248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3249 esac
3250 ;;
3251 -* ) ac_must_keep_next=true ;;
3252 esac
3253 fi
cristy8b350f62009-11-15 23:12:43 +00003254 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003255 ;;
3256 esac
3257 done
3258done
cristy8b350f62009-11-15 23:12:43 +00003259{ ac_configure_args0=; unset ac_configure_args0;}
3260{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003261
3262# When interrupted or exit'd, cleanup temporary files, and complete
3263# config.log. We remove comments because anyway the quotes in there
3264# would cause problems or look ugly.
3265# WARNING: Use '\'' to represent an apostrophe within the trap.
3266# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3267trap 'exit_status=$?
3268 # Save into config.log some information that might help in debugging.
3269 {
3270 echo
3271
cristy98dddb52010-11-04 00:30:15 +00003272 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003273## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003274## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003275 echo
3276 # The following way of writing the cache mishandles newlines in values,
3277(
3278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3279 eval ac_val=\$$ac_var
3280 case $ac_val in #(
3281 *${as_nl}*)
3282 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003284$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3285 esac
3286 case $ac_var in #(
3287 _ | IFS | as_nl) ;; #(
3288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003289 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003290 esac ;;
3291 esac
3292 done
3293 (set) 2>&1 |
3294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3295 *${as_nl}ac_space=\ *)
3296 sed -n \
3297 "s/'\''/'\''\\\\'\'''\''/g;
3298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3299 ;; #(
3300 *)
3301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3302 ;;
3303 esac |
3304 sort
3305)
3306 echo
3307
cristy98dddb52010-11-04 00:30:15 +00003308 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003309## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003310## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003311 echo
3312 for ac_var in $ac_subst_vars
3313 do
3314 eval ac_val=\$$ac_var
3315 case $ac_val in
3316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3317 esac
3318 $as_echo "$ac_var='\''$ac_val'\''"
3319 done | sort
3320 echo
3321
3322 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003323 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003324## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003325## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003326 echo
3327 for ac_var in $ac_subst_files
3328 do
3329 eval ac_val=\$$ac_var
3330 case $ac_val in
3331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3332 esac
3333 $as_echo "$ac_var='\''$ac_val'\''"
3334 done | sort
3335 echo
3336 fi
3337
3338 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003339 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003340## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003341## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003342 echo
3343 cat confdefs.h
3344 echo
3345 fi
3346 test "$ac_signal" != 0 &&
3347 $as_echo "$as_me: caught signal $ac_signal"
3348 $as_echo "$as_me: exit $exit_status"
3349 } >&5
3350 rm -f core *.core core.conftest.* &&
3351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3352 exit $exit_status
3353' 0
3354for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003356done
3357ac_signal=0
3358
3359# confdefs.h avoids OS command line length limits that DEFS can exceed.
3360rm -f -r conftest* confdefs.h
3361
cristy8b350f62009-11-15 23:12:43 +00003362$as_echo "/* confdefs.h */" > confdefs.h
3363
cristy3ed852e2009-09-05 21:47:34 +00003364# Predefined preprocessor variables.
3365
3366cat >>confdefs.h <<_ACEOF
3367#define PACKAGE_NAME "$PACKAGE_NAME"
3368_ACEOF
3369
cristy3ed852e2009-09-05 21:47:34 +00003370cat >>confdefs.h <<_ACEOF
3371#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3372_ACEOF
3373
cristy3ed852e2009-09-05 21:47:34 +00003374cat >>confdefs.h <<_ACEOF
3375#define PACKAGE_VERSION "$PACKAGE_VERSION"
3376_ACEOF
3377
cristy3ed852e2009-09-05 21:47:34 +00003378cat >>confdefs.h <<_ACEOF
3379#define PACKAGE_STRING "$PACKAGE_STRING"
3380_ACEOF
3381
cristy3ed852e2009-09-05 21:47:34 +00003382cat >>confdefs.h <<_ACEOF
3383#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3384_ACEOF
3385
cristy8b350f62009-11-15 23:12:43 +00003386cat >>confdefs.h <<_ACEOF
3387#define PACKAGE_URL "$PACKAGE_URL"
3388_ACEOF
3389
cristy3ed852e2009-09-05 21:47:34 +00003390
3391# Let the site file select an alternate cache file if it wants to.
3392# Prefer an explicitly selected file to automatically selected ones.
3393ac_site_file1=NONE
3394ac_site_file2=NONE
3395if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003396 # We do not want a PATH search for config.site.
3397 case $CONFIG_SITE in #((
3398 -*) ac_site_file1=./$CONFIG_SITE;;
3399 */*) ac_site_file1=$CONFIG_SITE;;
3400 *) ac_site_file1=./$CONFIG_SITE;;
3401 esac
cristy3ed852e2009-09-05 21:47:34 +00003402elif test "x$prefix" != xNONE; then
3403 ac_site_file1=$prefix/share/config.site
3404 ac_site_file2=$prefix/etc/config.site
3405else
3406 ac_site_file1=$ac_default_prefix/share/config.site
3407 ac_site_file2=$ac_default_prefix/etc/config.site
3408fi
3409for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3410do
3411 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003412 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3415 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003416 . "$ac_site_file" \
3417 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419as_fn_error $? "failed to load site script $ac_site_file
3420See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003421 fi
3422done
3423
3424if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003425 # Some versions of bash will fail to source /dev/null (special files
3426 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3427 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo "$as_me: loading cache $cache_file" >&6;}
3430 case $cache_file in
3431 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3432 *) . "./$cache_file";;
3433 esac
3434 fi
3435else
cristy8b350f62009-11-15 23:12:43 +00003436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003437$as_echo "$as_me: creating cache $cache_file" >&6;}
3438 >$cache_file
3439fi
3440
cristycd4c5312009-11-22 01:19:08 +00003441as_fn_append ac_header_list " stdlib.h"
3442as_fn_append ac_header_list " unistd.h"
3443as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003444# Check that the precious variables saved in the cache have kept the same
3445# value.
3446ac_cache_corrupted=false
3447for ac_var in $ac_precious_vars; do
3448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3449 eval ac_new_set=\$ac_env_${ac_var}_set
3450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3451 eval ac_new_val=\$ac_env_${ac_var}_value
3452 case $ac_old_set,$ac_new_set in
3453 set,)
cristy8b350f62009-11-15 23:12:43 +00003454 { $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 +00003455$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3456 ac_cache_corrupted=: ;;
3457 ,set)
cristy8b350f62009-11-15 23:12:43 +00003458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003459$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3460 ac_cache_corrupted=: ;;
3461 ,);;
3462 *)
3463 if test "x$ac_old_val" != "x$ac_new_val"; then
3464 # differences in whitespace do not lead to failure.
3465 ac_old_val_w=`echo x $ac_old_val`
3466 ac_new_val_w=`echo x $ac_new_val`
3467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003469$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3470 ac_cache_corrupted=:
3471 else
cristy8b350f62009-11-15 23:12:43 +00003472 { $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 +00003473$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3474 eval $ac_var=\$ac_old_val
3475 fi
cristy8b350f62009-11-15 23:12:43 +00003476 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003477$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003478 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003479$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3480 fi;;
3481 esac
3482 # Pass precious variables to config.status.
3483 if test "$ac_new_set" = set; then
3484 case $ac_new_val in
3485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3486 *) ac_arg=$ac_var=$ac_new_val ;;
3487 esac
3488 case " $ac_configure_args " in
3489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003491 esac
3492 fi
3493done
3494if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003498$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003499 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003500fi
cristy8b350f62009-11-15 23:12:43 +00003501## -------------------- ##
3502## Main body of script. ##
3503## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003504
3505ac_ext=c
3506ac_cpp='$CPP $CPPFLAGS'
3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510
3511
3512
3513ac_aux_dir=
3514for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003515 if test -f "$ac_dir/install-sh"; then
3516 ac_aux_dir=$ac_dir
3517 ac_install_sh="$ac_aux_dir/install-sh -c"
3518 break
3519 elif test -f "$ac_dir/install.sh"; then
3520 ac_aux_dir=$ac_dir
3521 ac_install_sh="$ac_aux_dir/install.sh -c"
3522 break
3523 elif test -f "$ac_dir/shtool"; then
3524 ac_aux_dir=$ac_dir
3525 ac_install_sh="$ac_aux_dir/shtool install -c"
3526 break
3527 fi
cristy3ed852e2009-09-05 21:47:34 +00003528done
3529if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003530 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003531fi
3532
3533# These three variables are undocumented and unsupported,
3534# and are intended to be withdrawn in a future Autoconf release.
3535# They can cause serious problems if a builder's source tree is in a directory
3536# whose full name contains unusual characters.
3537ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3538ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3539ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3540
3541
3542
3543
3544ac_config_headers="$ac_config_headers config/config.h"
3545
cristy24fc1fe2010-10-23 21:13:01 +00003546
cristy01ff9f32012-12-01 18:15:29 +00003547ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003548
cristy3ed852e2009-09-05 21:47:34 +00003549# Make sure we can run config.sub.
3550$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003551 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003552
cristy8b350f62009-11-15 23:12:43 +00003553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003554$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003555if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003556 $as_echo_n "(cached) " >&6
3557else
3558 ac_build_alias=$build_alias
3559test "x$ac_build_alias" = x &&
3560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003562 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003565
3566fi
cristy8b350f62009-11-15 23:12:43 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003568$as_echo "$ac_cv_build" >&6; }
3569case $ac_cv_build in
3570*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003571*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003572esac
3573build=$ac_cv_build
3574ac_save_IFS=$IFS; IFS='-'
3575set x $ac_cv_build
3576shift
3577build_cpu=$1
3578build_vendor=$2
3579shift; shift
3580# Remember, the first character of IFS is used to create $*,
3581# except with old shells:
3582build_os=$*
3583IFS=$ac_save_IFS
3584case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3585
3586
cristy8b350f62009-11-15 23:12:43 +00003587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003588$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003589if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003590 $as_echo_n "(cached) " >&6
3591else
3592 if test "x$host_alias" = x; then
3593 ac_cv_host=$ac_cv_build
3594else
3595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003597fi
3598
3599fi
cristy8b350f62009-11-15 23:12:43 +00003600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003601$as_echo "$ac_cv_host" >&6; }
3602case $ac_cv_host in
3603*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003604*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003605esac
3606host=$ac_cv_host
3607ac_save_IFS=$IFS; IFS='-'
3608set x $ac_cv_host
3609shift
3610host_cpu=$1
3611host_vendor=$2
3612shift; shift
3613# Remember, the first character of IFS is used to create $*,
3614# except with old shells:
3615host_os=$*
3616IFS=$ac_save_IFS
3617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3618
3619
cristy8b350f62009-11-15 23:12:43 +00003620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003621$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003622if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003623 $as_echo_n "(cached) " >&6
3624else
3625 if test "x$target_alias" = x; then
3626 ac_cv_target=$ac_cv_host
3627else
3628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003629 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003630fi
3631
3632fi
cristy8b350f62009-11-15 23:12:43 +00003633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003634$as_echo "$ac_cv_target" >&6; }
3635case $ac_cv_target in
3636*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003637*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003638esac
3639target=$ac_cv_target
3640ac_save_IFS=$IFS; IFS='-'
3641set x $ac_cv_target
3642shift
3643target_cpu=$1
3644target_vendor=$2
3645shift; shift
3646# Remember, the first character of IFS is used to create $*,
3647# except with old shells:
3648target_os=$*
3649IFS=$ac_save_IFS
3650case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3651
3652
3653# The aliases save the names the user supplied, while $host etc.
3654# will get canonicalized.
3655test -n "$target_alias" &&
3656 test "$program_prefix$program_suffix$program_transform_name" = \
3657 NONENONEs,x,x, &&
3658 program_prefix=${target_alias}-
3659
cristy837d6dc2010-02-27 01:16:57 +00003660
cristya5bda012013-11-03 18:05:38 +00003661am__api_version='1.14'
cristy73bd4a52010-10-05 11:24:23 +00003662
3663# Find a good install program. We prefer a C program (faster),
3664# so one script is as good as another. But avoid the broken or
3665# incompatible versions:
3666# SysV /etc/install, /usr/sbin/install
3667# SunOS /usr/etc/install
3668# IRIX /sbin/install
3669# AIX /bin/install
3670# AmigaOS /C/install, which installs bootblocks on floppy discs
3671# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3672# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3673# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3674# OS/2's system install, which has a completely different semantic
3675# ./install, which can be erroneously created by make from ./install.sh.
3676# Reject install programs that cannot install multiple files.
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3678$as_echo_n "checking for a BSD-compatible install... " >&6; }
3679if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003680if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003681 $as_echo_n "(cached) " >&6
3682else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 # Account for people who put trailing slashes in PATH elements.
3689case $as_dir/ in #((
3690 ./ | .// | /[cC]/* | \
3691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3692 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3693 /usr/ucb/* ) ;;
3694 *)
3695 # OSF1 and SCO ODT 3.0 have their own names for install.
3696 # Don't use installbsd from OSF since it installs stuff as root
3697 # by default.
3698 for ac_prog in ginstall scoinst install; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003700 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003701 if test $ac_prog = install &&
3702 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3703 # AIX install. It has an incompatible calling convention.
3704 :
3705 elif test $ac_prog = install &&
3706 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3707 # program-specific install script used by HP pwplus--don't use.
3708 :
3709 else
3710 rm -rf conftest.one conftest.two conftest.dir
3711 echo one > conftest.one
3712 echo two > conftest.two
3713 mkdir conftest.dir
3714 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3715 test -s conftest.one && test -s conftest.two &&
3716 test -s conftest.dir/conftest.one &&
3717 test -s conftest.dir/conftest.two
3718 then
3719 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3720 break 3
3721 fi
3722 fi
3723 fi
3724 done
3725 done
3726 ;;
3727esac
3728
3729 done
3730IFS=$as_save_IFS
3731
3732rm -rf conftest.one conftest.two conftest.dir
3733
3734fi
3735 if test "${ac_cv_path_install+set}" = set; then
3736 INSTALL=$ac_cv_path_install
3737 else
3738 # As a last resort, use the slow shell script. Don't cache a
3739 # value for INSTALL within a source directory, because that will
3740 # break other packages using the cache if that directory is
3741 # removed, or if the value is a relative name.
3742 INSTALL=$ac_install_sh
3743 fi
3744fi
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3746$as_echo "$INSTALL" >&6; }
3747
3748# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3749# It thinks the first close brace ends the variable substitution.
3750test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3751
3752test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3753
3754test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3755
cristy9af1cbf2014-12-28 22:03:09 +00003756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3757$as_echo_n "checking whether build environment is sane... " >&6; }
3758# Reject unsafe characters in $srcdir or the absolute working directory
3759# name. Accept space and tab only in the latter.
3760am_lf='
3761'
3762case `pwd` in
3763 *[\\\"\#\$\&\'\`$am_lf]*)
3764 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3765esac
3766case $srcdir in
3767 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3768 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3769esac
3770
3771# Do 'set' in a subshell so we don't clobber the current shell's
3772# arguments. Must try -L first in case configure is actually a
3773# symlink; some systems play weird games with the mod time of symlinks
3774# (eg FreeBSD returns the mod time of the symlink's containing
3775# directory).
3776if (
3777 am_has_slept=no
3778 for am_try in 1 2; do
3779 echo "timestamp, slept: $am_has_slept" > conftest.file
3780 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3781 if test "$*" = "X"; then
3782 # -L didn't work.
3783 set X `ls -t "$srcdir/configure" conftest.file`
3784 fi
3785 if test "$*" != "X $srcdir/configure conftest.file" \
3786 && test "$*" != "X conftest.file $srcdir/configure"; then
3787
3788 # If neither matched, then we have a broken ls. This can happen
3789 # if, for instance, CONFIG_SHELL is bash and it inherits a
3790 # broken ls alias from the environment. This has actually
3791 # happened. Such a system could not be considered "sane".
3792 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3793 alias in your environment" "$LINENO" 5
3794 fi
3795 if test "$2" = conftest.file || test $am_try -eq 2; then
3796 break
3797 fi
3798 # Just in case.
3799 sleep 1
3800 am_has_slept=yes
3801 done
3802 test "$2" = conftest.file
3803 )
3804then
3805 # Ok.
3806 :
3807else
3808 as_fn_error $? "newly created file is older than distributed files!
3809Check your system clock" "$LINENO" 5
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812$as_echo "yes" >&6; }
3813# If we didn't sleep, we still need to ensure time stamps of config.status and
3814# generated files are strictly newer.
3815am_sleep_pid=
3816if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3817 ( sleep 1 ) &
3818 am_sleep_pid=$!
3819fi
3820
3821rm -f conftest.file
3822
cristy73bd4a52010-10-05 11:24:23 +00003823test "$program_prefix" != NONE &&
3824 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3825# Use a double $ so make ignores it.
3826test "$program_suffix" != NONE &&
3827 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3828# Double any \ or $.
3829# By default was `s,x,x', remove it if useless.
3830ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3831program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3832
3833# expand $ac_aux_dir to an absolute path
3834am_aux_dir=`cd $ac_aux_dir && pwd`
3835
3836if test x"${MISSING+set}" != xset; then
3837 case $am_aux_dir in
3838 *\ * | *\ *)
3839 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3840 *)
3841 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3842 esac
3843fi
3844# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003845if eval "$MISSING --is-lightweight"; then
3846 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003847else
3848 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3850$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003851fi
3852
3853if test x"${install_sh}" != xset; then
3854 case $am_aux_dir in
3855 *\ * | *\ *)
3856 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3857 *)
3858 install_sh="\${SHELL} $am_aux_dir/install-sh"
3859 esac
3860fi
3861
cristyc0890a62012-07-19 00:18:20 +00003862# Installed binaries are usually stripped using 'strip' when the user
3863# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003864# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003865# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003866if test "$cross_compiling" != no; then
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3869set dummy ${ac_tool_prefix}strip; ac_word=$2
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003872if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003873 $as_echo_n "(cached) " >&6
3874else
3875 if test -n "$STRIP"; then
3876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003885 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889done
3890 done
3891IFS=$as_save_IFS
3892
3893fi
3894fi
3895STRIP=$ac_cv_prog_STRIP
3896if test -n "$STRIP"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3898$as_echo "$STRIP" >&6; }
3899else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901$as_echo "no" >&6; }
3902fi
3903
3904
3905fi
3906if test -z "$ac_cv_prog_STRIP"; then
3907 ac_ct_STRIP=$STRIP
3908 # Extract the first word of "strip", so it can be a program name with args.
3909set dummy strip; ac_word=$2
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003912if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003913 $as_echo_n "(cached) " >&6
3914else
3915 if test -n "$ac_ct_STRIP"; then
3916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003925 ac_cv_prog_ac_ct_STRIP="strip"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929done
3930 done
3931IFS=$as_save_IFS
3932
3933fi
3934fi
3935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3936if test -n "$ac_ct_STRIP"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3938$as_echo "$ac_ct_STRIP" >&6; }
3939else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942fi
3943
3944 if test "x$ac_ct_STRIP" = x; then
3945 STRIP=":"
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948yes:)
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951ac_tool_warned=yes ;;
3952esac
3953 STRIP=$ac_ct_STRIP
3954 fi
3955else
3956 STRIP="$ac_cv_prog_STRIP"
3957fi
3958
3959fi
3960INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3961
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3963$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3964if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003965 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003966 $as_echo_n "(cached) " >&6
3967else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in mkdir gmkdir; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003975 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003976 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3977 'mkdir (GNU coreutils) '* | \
3978 'mkdir (coreutils) '* | \
3979 'mkdir (fileutils) '4.1*)
3980 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3981 break 3;;
3982 esac
3983 done
3984 done
3985 done
3986IFS=$as_save_IFS
3987
3988fi
3989
3990 test -d ./--version && rmdir ./--version
3991 if test "${ac_cv_path_mkdir+set}" = set; then
3992 MKDIR_P="$ac_cv_path_mkdir -p"
3993 else
3994 # As a last resort, use the slow shell script. Don't cache a
3995 # value for MKDIR_P within a source directory, because that will
3996 # break other packages using the cache if that directory is
3997 # removed, or if the value is a relative name.
3998 MKDIR_P="$ac_install_sh -d"
3999 fi
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4002$as_echo "$MKDIR_P" >&6; }
4003
cristy73bd4a52010-10-05 11:24:23 +00004004for ac_prog in gawk mawk nawk awk
4005do
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007set dummy $ac_prog; ac_word=$2
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004010if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 if test -n "$AWK"; then
4014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4015else
4016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004023 ac_cv_prog_AWK="$ac_prog"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027done
4028 done
4029IFS=$as_save_IFS
4030
4031fi
4032fi
4033AWK=$ac_cv_prog_AWK
4034if test -n "$AWK"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4036$as_echo "$AWK" >&6; }
4037else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039$as_echo "no" >&6; }
4040fi
4041
4042
4043 test -n "$AWK" && break
4044done
4045
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4047$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4048set x ${MAKE-make}
4049ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004050if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004051 $as_echo_n "(cached) " >&6
4052else
4053 cat >conftest.make <<\_ACEOF
4054SHELL = /bin/sh
4055all:
4056 @echo '@@@%%%=$(MAKE)=@@@%%%'
4057_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004058# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004059case `${MAKE-make} -f conftest.make 2>/dev/null` in
4060 *@@@%%%=?*=@@@%%%*)
4061 eval ac_cv_prog_make_${ac_make}_set=yes;;
4062 *)
4063 eval ac_cv_prog_make_${ac_make}_set=no;;
4064esac
4065rm -f conftest.make
4066fi
4067if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4069$as_echo "yes" >&6; }
4070 SET_MAKE=
4071else
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073$as_echo "no" >&6; }
4074 SET_MAKE="MAKE=${MAKE-make}"
4075fi
4076
4077rm -rf .tst 2>/dev/null
4078mkdir .tst 2>/dev/null
4079if test -d .tst; then
4080 am__leading_dot=.
4081else
4082 am__leading_dot=_
4083fi
4084rmdir .tst 2>/dev/null
4085
cristya448bd22011-10-14 12:38:13 +00004086# Check whether --enable-silent-rules was given.
4087if test "${enable_silent_rules+set}" = set; then :
4088 enableval=$enable_silent_rules;
4089fi
4090
cristyc0890a62012-07-19 00:18:20 +00004091case $enable_silent_rules in # (((
4092 yes) AM_DEFAULT_VERBOSITY=0;;
4093 no) AM_DEFAULT_VERBOSITY=1;;
4094 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004095esac
cristyc3fb77b2012-02-06 01:49:41 +00004096am_make=${MAKE-make}
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4098$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4099if ${am_cv_make_support_nested_variables+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101else
4102 if $as_echo 'TRUE=$(BAR$(V))
4103BAR0=false
4104BAR1=true
4105V=1
4106am__doit:
4107 @$(TRUE)
4108.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4109 am_cv_make_support_nested_variables=yes
4110else
4111 am_cv_make_support_nested_variables=no
4112fi
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4115$as_echo "$am_cv_make_support_nested_variables" >&6; }
4116if test $am_cv_make_support_nested_variables = yes; then
4117 AM_V='$(V)'
4118 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4119else
4120 AM_V=$AM_DEFAULT_VERBOSITY
4121 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4122fi
cristya448bd22011-10-14 12:38:13 +00004123AM_BACKSLASH='\'
4124
cristy73bd4a52010-10-05 11:24:23 +00004125if test "`cd $srcdir && pwd`" != "`pwd`"; then
4126 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4127 # is not polluted with repeated "-I."
4128 am__isrc=' -I$(srcdir)'
4129 # test to see if srcdir already configured
4130 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004131 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004132 fi
4133fi
4134
4135# test whether we have cygpath
4136if test -z "$CYGPATH_W"; then
4137 if (cygpath --version) >/dev/null 2>/dev/null; then
4138 CYGPATH_W='cygpath -w'
4139 else
4140 CYGPATH_W=echo
4141 fi
4142fi
4143
4144
4145# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004146 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004147 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004148
4149
cristya448bd22011-10-14 12:38:13 +00004150cat >>confdefs.h <<_ACEOF
4151#define PACKAGE "$PACKAGE"
4152_ACEOF
4153
4154
4155cat >>confdefs.h <<_ACEOF
4156#define VERSION "$VERSION"
4157_ACEOF
4158
cristy73bd4a52010-10-05 11:24:23 +00004159# Some tools Automake needs.
4160
4161ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4162
4163
4164AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4165
4166
4167AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4168
4169
4170AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4171
4172
4173MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4174
cristyc0890a62012-07-19 00:18:20 +00004175# For better backward compatibility. To be removed once Automake 1.9.x
4176# dies out for good. For more background, see:
4177# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4178# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4179mkdir_p='$(MKDIR_P)'
4180
cristy73bd4a52010-10-05 11:24:23 +00004181# We need awk for the "check" target. The system "awk" is bad on
4182# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004183# Always define AMTAR for backward compatibility. Yes, it's still used
4184# in the wild :-( We should find a proper way to deprecate it ...
4185AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004186
cristye69bdbe2013-05-03 21:40:44 +00004187
4188# We'll loop over all known methods to create a tar archive until one works.
4189_am_tools='gnutar pax cpio none'
4190
cristyc3fb77b2012-02-06 01:49:41 +00004191am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004192
4193
4194
4195
4196
cristy3ed852e2009-09-05 21:47:34 +00004197
cristya5bda012013-11-03 18:05:38 +00004198# POSIX will say in a future version that running "rm -f" with no argument
4199# is OK; and we want to be able to make that assumption in our Makefile
4200# recipes. So use an aggressive probe to check that the usage we want is
4201# actually supported "in the wild" to an acceptable degree.
4202# See automake bug#10828.
4203# To make any issue more visible, cause the running configure to be aborted
4204# by default if the 'rm' program in use doesn't match our expectations; the
4205# user can still override this though.
4206if rm -f && rm -fr && rm -rf; then : OK; else
4207 cat >&2 <<'END'
4208Oops!
4209
4210Your 'rm' program seems unable to run without file operands specified
4211on the command line, even when the '-f' option is present. This is contrary
4212to the behaviour of most rm programs out there, and not conforming with
4213the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4214
4215Please tell bug-automake@gnu.org about your system, including the value
4216of your $PATH and any error possibly output before this message. This
4217can help us improve future automake versions.
4218
4219END
4220 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4221 echo 'Configuration will proceed anyway, since you have set the' >&2
4222 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4223 echo >&2
4224 else
4225 cat >&2 <<'END'
4226Aborting the configuration process, to ensure you take notice of the issue.
4227
4228You can download and install GNU coreutils to get an 'rm' implementation
4229that behaves properly: <http://www.gnu.org/software/coreutils/>.
4230
4231If you want to complete the configuration process using your problematic
4232'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4233to "yes", and re-run configure.
4234
4235END
4236 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4237 fi
4238fi
cristy73bd4a52010-10-05 11:24:23 +00004239# Check whether --enable-silent-rules was given.
4240if test "${enable_silent_rules+set}" = set; then :
4241 enableval=$enable_silent_rules;
4242fi
4243
cristyc0890a62012-07-19 00:18:20 +00004244case $enable_silent_rules in # (((
4245 yes) AM_DEFAULT_VERBOSITY=0;;
4246 no) AM_DEFAULT_VERBOSITY=1;;
4247 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004248esac
cristyc3fb77b2012-02-06 01:49:41 +00004249am_make=${MAKE-make}
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4251$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4252if ${am_cv_make_support_nested_variables+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254else
4255 if $as_echo 'TRUE=$(BAR$(V))
4256BAR0=false
4257BAR1=true
4258V=1
4259am__doit:
4260 @$(TRUE)
4261.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4262 am_cv_make_support_nested_variables=yes
4263else
4264 am_cv_make_support_nested_variables=no
4265fi
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4268$as_echo "$am_cv_make_support_nested_variables" >&6; }
4269if test $am_cv_make_support_nested_variables = yes; then
4270 AM_V='$(V)'
4271 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4272else
4273 AM_V=$AM_DEFAULT_VERBOSITY
4274 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4275fi
cristy73bd4a52010-10-05 11:24:23 +00004276AM_BACKSLASH='\'
4277
cristy3ed852e2009-09-05 21:47:34 +00004278
cristy9af1cbf2014-12-28 22:03:09 +00004279#
4280# Save initial user-tunable values
4281#
4282USER_LIBS=$LIBS
4283for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4284 eval isset=\${$var+set}
4285 if test "$isset" = 'set'; then
4286 eval val=$`echo $var`
4287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4288 fi
4289done
4290
4291
4292CONFIGURE_ARGS="$0 ${ac_configure_args}"
4293
4294
cristy187791c2015-05-03 22:17:00 +00004295# Check whether --enable-reproducible-build was given.
4296if test "${enable_reproducible_build+set}" = set; then :
4297 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4298else
4299 enable_reproducible_build='no'
4300fi
4301
4302
cristy9af1cbf2014-12-28 22:03:09 +00004303# Source file containing package/library versioning information.
4304. ${srcdir}/version.sh
4305
4306echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4307
4308MAGICK_TARGET_CPU=$host_cpu
4309
4310
4311cat >>confdefs.h <<_ACEOF
4312#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4313_ACEOF
4314
4315
4316MAGICK_TARGET_VENDOR=$host_vendor
4317
4318
4319cat >>confdefs.h <<_ACEOF
4320#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4321_ACEOF
4322
4323
4324MAGICK_TARGET_OS=$host_os
4325
4326
4327cat >>confdefs.h <<_ACEOF
4328#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4329_ACEOF
4330
4331
4332
4333# Substitute versioning
4334MAGICK_MAJOR_VERSION=7
4335
4336MAGICK_MINOR_VERSION=0
4337
4338MAGICK_MICRO_VERSION=0
4339
4340MAGICK_PATCHLEVEL_VERSION=0
4341
4342MAGICK_VERSION=7.0.0-0
4343
cristy6fef95b2015-05-26 11:27:00 +00004344MAGICK_SVN_REVISION=18658:18662M
cristy9af1cbf2014-12-28 22:03:09 +00004345
4346
4347# Substitute library versioning
4348MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4349
4350MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4351
4352
4353MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4354
4355MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4356
4357
cristy187791c2015-05-03 22:17:00 +00004358if test X$enable_reproducible_build = Xyes; then :
4359 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4360elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4361
4362fi
4363
cristy9af1cbf2014-12-28 22:03:09 +00004364
4365# Ensure that make can run correctly
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4367$as_echo_n "checking whether build environment is sane... " >&6; }
4368# Reject unsafe characters in $srcdir or the absolute working directory
4369# name. Accept space and tab only in the latter.
4370am_lf='
4371'
4372case `pwd` in
4373 *[\\\"\#\$\&\'\`$am_lf]*)
4374 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4375esac
4376case $srcdir in
4377 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4378 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4379esac
4380
4381# Do 'set' in a subshell so we don't clobber the current shell's
4382# arguments. Must try -L first in case configure is actually a
4383# symlink; some systems play weird games with the mod time of symlinks
4384# (eg FreeBSD returns the mod time of the symlink's containing
4385# directory).
4386if (
4387 am_has_slept=no
4388 for am_try in 1 2; do
4389 echo "timestamp, slept: $am_has_slept" > conftest.file
4390 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4391 if test "$*" = "X"; then
4392 # -L didn't work.
4393 set X `ls -t "$srcdir/configure" conftest.file`
4394 fi
4395 if test "$*" != "X $srcdir/configure conftest.file" \
4396 && test "$*" != "X conftest.file $srcdir/configure"; then
4397
4398 # If neither matched, then we have a broken ls. This can happen
4399 # if, for instance, CONFIG_SHELL is bash and it inherits a
4400 # broken ls alias from the environment. This has actually
4401 # happened. Such a system could not be considered "sane".
4402 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4403 alias in your environment" "$LINENO" 5
4404 fi
4405 if test "$2" = conftest.file || test $am_try -eq 2; then
4406 break
4407 fi
4408 # Just in case.
4409 sleep 1
4410 am_has_slept=yes
4411 done
4412 test "$2" = conftest.file
4413 )
4414then
4415 # Ok.
4416 :
4417else
4418 as_fn_error $? "newly created file is older than distributed files!
4419Check your system clock" "$LINENO" 5
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4422$as_echo "yes" >&6; }
4423# If we didn't sleep, we still need to ensure time stamps of config.status and
4424# generated files are strictly newer.
4425am_sleep_pid=
4426if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4427 ( sleep 1 ) &
4428 am_sleep_pid=$!
4429fi
4430
4431rm -f conftest.file
4432
4433
cristyf279b692014-08-13 12:01:27 +00004434# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004435MAGICK_LIB_VERSION="0x"
4436if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4437 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4438fi
4439MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4440if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4441 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4442fi
4443MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4444if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4445 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4446fi
4447MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4448
4449
4450# Definition used to define MagickLibVersionText in version.h
4451MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4452
4453
4454# Definition used to define MagickLibVersionNumber in version.h
4455MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4456
4457
cristy5ed9c6e2013-07-14 21:20:31 +00004458MAGICKPP_LIB_VERSION="0x"
4459if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4460 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4461fi
4462MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4463if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4464 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4465fi
4466MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4467if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4468 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4469fi
4470MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4471
4472
4473# Definition used to define MagickLibVersionText in version.h
4474MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4475
4476
4477# Definition used to define MagickLibVersionNumber in version.h
4478MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4479
4480
4481
4482
cristy3ed852e2009-09-05 21:47:34 +00004483# Regenerate config.status if ChangeLog or version.sh is updated.
4484CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4485
4486
4487PERLMAINCC=$CC
4488
4489MAGICK_CFLAGS=''
4490MAGICK_CPPFLAGS=$CPPFLAGS_USER
4491MAGICK_PCFLAGS=$CPPFLAGS_USER
4492MAGICK_LDFLAGS=''
4493MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004494MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004495
4496#
4497# Evaluate shell variable equivalents to Makefile directory variables
4498#
4499if test "x$prefix" = xNONE; then
4500 prefix=$ac_default_prefix
4501fi
4502# Let make expand exec_prefix.
4503if test "x$exec_prefix" = xNONE; then
4504 exec_prefix='${prefix}'
4505fi
4506
4507#
4508eval "eval PREFIX_DIR=${prefix}"
4509
4510eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4511
4512eval "eval BIN_DIR=$bindir"
4513
4514eval "eval SBIN_DIR=$sbindir"
4515
4516eval "eval LIBEXEC_DIR=$libexecdir"
4517
4518eval "eval DATA_DIR=$datadir"
4519
cristy4e65ec22012-04-08 01:33:27 +00004520eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004521
cristy3ed852e2009-09-05 21:47:34 +00004522eval "eval SYSCONF_DIR=$sysconfdir"
4523
4524eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4525
4526eval "eval LOCALSTATE_DIR=$localstatedir"
4527
4528eval "eval LIB_DIR=$libdir"
4529
4530eval "eval INCLUDE_DIR=$includedir"
4531
4532eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4533
4534eval "eval INFO_DIR=$infodir"
4535
4536eval "eval MAN_DIR=$mandir"
4537
4538
4539# Get full paths to source and build directories
4540srcdirfull="`cd $srcdir && pwd`"
4541builddir="`pwd`"
4542
4543#
4544# Compute variables useful for running uninstalled software.
4545#
4546MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4547MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4548MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4549MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4550DIRSEP=':'
4551case "${build_os}" in
4552 mingw* )
4553 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4554 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4555 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4556 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4557 DIRSEP=';'
4558 ;;
4559esac
4560case "${host_os}" in
4561 mingw* )
4562 DIRSEP=';'
4563 ;;
4564esac
4565
4566
4567
4568
4569
4570
cristya0b81c32010-01-22 02:54:33 +00004571
4572#
4573# Enable OS features.
4574#
cristy73bd4a52010-10-05 11:24:23 +00004575DEPDIR="${am__leading_dot}deps"
4576
4577ac_config_commands="$ac_config_commands depfiles"
4578
4579
4580am_make=${MAKE-make}
4581cat > confinc << 'END'
4582am__doit:
4583 @echo this is the am__doit target
4584.PHONY: am__doit
4585END
4586# If we don't find an include directive, just comment out the code.
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4588$as_echo_n "checking for style of include used by $am_make... " >&6; }
4589am__include="#"
4590am__quote=
4591_am_result=none
4592# First try GNU make style include.
4593echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004594# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004595case `$am_make -s -f confmf 2> /dev/null` in #(
4596*the\ am__doit\ target*)
4597 am__include=include
4598 am__quote=
4599 _am_result=GNU
4600 ;;
4601esac
4602# Now try BSD make style include.
4603if test "$am__include" = "#"; then
4604 echo '.include "confinc"' > confmf
4605 case `$am_make -s -f confmf 2> /dev/null` in #(
4606 *the\ am__doit\ target*)
4607 am__include=.include
4608 am__quote="\""
4609 _am_result=BSD
4610 ;;
4611 esac
4612fi
4613
4614
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4616$as_echo "$_am_result" >&6; }
4617rm -f confinc confmf
4618
4619# Check whether --enable-dependency-tracking was given.
4620if test "${enable_dependency_tracking+set}" = set; then :
4621 enableval=$enable_dependency_tracking;
4622fi
4623
4624if test "x$enable_dependency_tracking" != xno; then
4625 am_depcomp="$ac_aux_dir/depcomp"
4626 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004627 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004628fi
4629 if test "x$enable_dependency_tracking" != xno; then
4630 AMDEP_TRUE=
4631 AMDEP_FALSE='#'
4632else
4633 AMDEP_TRUE='#'
4634 AMDEP_FALSE=
4635fi
4636
4637
cristy3ed852e2009-09-05 21:47:34 +00004638ac_ext=c
4639ac_cpp='$CPP $CPPFLAGS'
4640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4645set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004648if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004649 $as_echo_n "(cached) " >&6
4650else
4651 if test -n "$CC"; then
4652 ac_cv_prog_CC="$CC" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004659 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004663 break 2
4664 fi
4665done
cristy8b350f62009-11-15 23:12:43 +00004666 done
cristy3ed852e2009-09-05 21:47:34 +00004667IFS=$as_save_IFS
4668
4669fi
4670fi
4671CC=$ac_cv_prog_CC
4672if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo "$CC" >&6; }
4675else
cristy8b350f62009-11-15 23:12:43 +00004676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004677$as_echo "no" >&6; }
4678fi
4679
4680
4681fi
4682if test -z "$ac_cv_prog_CC"; then
4683 ac_ct_CC=$CC
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004688if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004689 $as_echo_n "(cached) " >&6
4690else
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004701 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703 break 2
4704 fi
4705done
cristy8b350f62009-11-15 23:12:43 +00004706 done
cristy3ed852e2009-09-05 21:47:34 +00004707IFS=$as_save_IFS
4708
4709fi
4710fi
4711ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004714$as_echo "$ac_ct_CC" >&6; }
4715else
cristy8b350f62009-11-15 23:12:43 +00004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "no" >&6; }
4718fi
4719
4720 if test "x$ac_ct_CC" = x; then
4721 CC=""
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724yes:)
cristy8b350f62009-11-15 23:12:43 +00004725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727ac_tool_warned=yes ;;
4728esac
4729 CC=$ac_ct_CC
4730 fi
4731else
4732 CC="$ac_cv_prog_CC"
4733fi
4734
4735if test -z "$CC"; then
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4738set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004740$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004741if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004742 $as_echo_n "(cached) " >&6
4743else
4744 if test -n "$CC"; then
4745 ac_cv_prog_CC="$CC" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004752 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004754 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004756 break 2
4757 fi
4758done
cristy8b350f62009-11-15 23:12:43 +00004759 done
cristy3ed852e2009-09-05 21:47:34 +00004760IFS=$as_save_IFS
4761
4762fi
4763fi
4764CC=$ac_cv_prog_CC
4765if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004767$as_echo "$CC" >&6; }
4768else
cristy8b350f62009-11-15 23:12:43 +00004769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770$as_echo "no" >&6; }
4771fi
4772
4773
4774 fi
4775fi
4776if test -z "$CC"; then
4777 # Extract the first word of "cc", so it can be a program name with args.
4778set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004781if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004782 $as_echo_n "(cached) " >&6
4783else
4784 if test -n "$CC"; then
4785 ac_cv_prog_CC="$CC" # Let the user override the test.
4786else
4787 ac_prog_rejected=no
4788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789for as_dir in $PATH
4790do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4796 ac_prog_rejected=yes
4797 continue
4798 fi
4799 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004801 break 2
4802 fi
4803done
cristy8b350f62009-11-15 23:12:43 +00004804 done
cristy3ed852e2009-09-05 21:47:34 +00004805IFS=$as_save_IFS
4806
4807if test $ac_prog_rejected = yes; then
4808 # We found a bogon in the path, so make sure we never use it.
4809 set dummy $ac_cv_prog_CC
4810 shift
4811 if test $# != 0; then
4812 # We chose a different compiler from the bogus one.
4813 # However, it has the same basename, so the bogon will be chosen
4814 # first if we set CC to just the basename; use the full file name.
4815 shift
4816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4817 fi
4818fi
4819fi
4820fi
4821CC=$ac_cv_prog_CC
4822if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824$as_echo "$CC" >&6; }
4825else
cristy8b350f62009-11-15 23:12:43 +00004826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004827$as_echo "no" >&6; }
4828fi
4829
4830
4831fi
4832if test -z "$CC"; then
4833 if test -n "$ac_tool_prefix"; then
4834 for ac_prog in cl.exe
4835 do
4836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004840if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004841 $as_echo_n "(cached) " >&6
4842else
4843 if test -n "$CC"; then
4844 ac_cv_prog_CC="$CC" # Let the user override the test.
4845else
4846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847for as_dir in $PATH
4848do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004851 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004855 break 2
4856 fi
4857done
cristy8b350f62009-11-15 23:12:43 +00004858 done
cristy3ed852e2009-09-05 21:47:34 +00004859IFS=$as_save_IFS
4860
4861fi
4862fi
4863CC=$ac_cv_prog_CC
4864if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004866$as_echo "$CC" >&6; }
4867else
cristy8b350f62009-11-15 23:12:43 +00004868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo "no" >&6; }
4870fi
4871
4872
4873 test -n "$CC" && break
4874 done
4875fi
4876if test -z "$CC"; then
4877 ac_ct_CC=$CC
4878 for ac_prog in cl.exe
4879do
4880 # Extract the first word of "$ac_prog", so it can be a program name with args.
4881set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004883$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004884if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004885 $as_echo_n "(cached) " >&6
4886else
4887 if test -n "$ac_ct_CC"; then
4888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4889else
4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004897 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004899 break 2
4900 fi
4901done
cristy8b350f62009-11-15 23:12:43 +00004902 done
cristy3ed852e2009-09-05 21:47:34 +00004903IFS=$as_save_IFS
4904
4905fi
4906fi
4907ac_ct_CC=$ac_cv_prog_ac_ct_CC
4908if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004910$as_echo "$ac_ct_CC" >&6; }
4911else
cristy8b350f62009-11-15 23:12:43 +00004912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004913$as_echo "no" >&6; }
4914fi
4915
4916
4917 test -n "$ac_ct_CC" && break
4918done
4919
4920 if test "x$ac_ct_CC" = x; then
4921 CC=""
4922 else
4923 case $cross_compiling:$ac_tool_warned in
4924yes:)
cristy8b350f62009-11-15 23:12:43 +00004925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4927ac_tool_warned=yes ;;
4928esac
4929 CC=$ac_ct_CC
4930 fi
4931fi
4932
4933fi
4934
4935
cristy8b350f62009-11-15 23:12:43 +00004936test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004938as_fn_error $? "no acceptable C compiler found in \$PATH
4939See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004940
4941# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004942$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004943set X $ac_compile
4944ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004945for ac_option in --version -v -V -qversion; do
4946 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
cristy8b350f62009-11-15 23:12:43 +00004951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4952$as_echo "$ac_try_echo"; } >&5
4953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004954 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004955 if test -s conftest.err; then
4956 sed '10a\
4957... rest of stderr output deleted ...
4958 10q' conftest.err >conftest.er1
4959 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004960 fi
cristycd4c5312009-11-22 01:19:08 +00004961 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4963 test $ac_status = 0; }
4964done
cristy3ed852e2009-09-05 21:47:34 +00004965
cristy8b350f62009-11-15 23:12:43 +00004966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004967/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004968
cristy3ed852e2009-09-05 21:47:34 +00004969int
4970main ()
4971{
4972
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004978ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004979# Try to create an executable without -o first, disregard a.out.
4980# It will help us diagnose broken compilers, and finding out an intuition
4981# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4983$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004984ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4985
4986# The possible output files:
4987ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4988
4989ac_rmfiles=
4990for ac_file in $ac_files
4991do
4992 case $ac_file in
4993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4995 esac
4996done
4997rm -f $ac_rmfiles
4998
cristy8b350f62009-11-15 23:12:43 +00004999if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005000case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003esac
cristy8b350f62009-11-15 23:12:43 +00005004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5005$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005006 (eval "$ac_link_default") 2>&5
5007 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5011# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5012# in a Makefile. We should not override ac_cv_exeext if it was cached,
5013# so that the user can short-circuit this test for compilers unknown to
5014# Autoconf.
5015for ac_file in $ac_files ''
5016do
5017 test -f "$ac_file" || continue
5018 case $ac_file in
5019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5020 ;;
5021 [ab].out )
5022 # We found the default executable, but exeext='' is most
5023 # certainly right.
5024 break;;
5025 *.* )
cristy8b350f62009-11-15 23:12:43 +00005026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005027 then :; else
5028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5029 fi
5030 # We set ac_cv_exeext here because the later test for it is not
5031 # safe: cross compilers may not add the suffix if given an `-o'
5032 # argument, so we may need to know it at that point already.
5033 # Even if this section looks crufty: it has the advantage of
5034 # actually working.
5035 break;;
5036 * )
5037 break;;
5038 esac
5039done
5040test "$ac_cv_exeext" = no && ac_cv_exeext=
5041
5042else
5043 ac_file=''
5044fi
cristy8b350f62009-11-15 23:12:43 +00005045if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047$as_echo "no" >&6; }
5048$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005049sed 's/^/| /' conftest.$ac_ext >&5
5050
cristy8b350f62009-11-15 23:12:43 +00005051{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005053as_fn_error 77 "C compiler cannot create executables
5054See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005055else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005058fi
cristycd4c5312009-11-22 01:19:08 +00005059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5060$as_echo_n "checking for C compiler default output file name... " >&6; }
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5062$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005063ac_exeext=$ac_cv_exeext
5064
cristycd4c5312009-11-22 01:19:08 +00005065rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005066ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005068$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005069if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005070case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073esac
cristy8b350f62009-11-15 23:12:43 +00005074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5075$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005076 (eval "$ac_link") 2>&5
5077 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5079 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005080 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5081# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5082# work properly (i.e., refer to `conftest.exe'), while it won't with
5083# `rm'.
5084for ac_file in conftest.exe conftest conftest.*; do
5085 test -f "$ac_file" || continue
5086 case $ac_file in
5087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5088 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5089 break;;
5090 * ) break;;
5091 esac
5092done
5093else
cristy8b350f62009-11-15 23:12:43 +00005094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005096as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5097See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005098fi
cristycd4c5312009-11-22 01:19:08 +00005099rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005101$as_echo "$ac_cv_exeext" >&6; }
5102
5103rm -f conftest.$ac_ext
5104EXEEXT=$ac_cv_exeext
5105ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h. */
5108#include <stdio.h>
5109int
5110main ()
5111{
5112FILE *f = fopen ("conftest.out", "w");
5113 return ferror (f) || fclose (f) != 0;
5114
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119ac_clean_files="$ac_clean_files conftest.out"
5120# Check that the compiler produces executables we can run. If not, either
5121# the compiler is broken, or we cross compile.
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5123$as_echo_n "checking whether we are cross compiling... " >&6; }
5124if test "$cross_compiling" != yes; then
5125 { { ac_try="$ac_link"
5126case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129esac
5130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5131$as_echo "$ac_try_echo"; } >&5
5132 (eval "$ac_link") 2>&5
5133 ac_status=$?
5134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5135 test $ac_status = 0; }
5136 if { ac_try='./conftest$ac_cv_exeext'
5137 { { case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140esac
5141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5142$as_echo "$ac_try_echo"; } >&5
5143 (eval "$ac_try") 2>&5
5144 ac_status=$?
5145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5146 test $ac_status = 0; }; }; then
5147 cross_compiling=no
5148 else
5149 if test "$cross_compiling" = maybe; then
5150 cross_compiling=yes
5151 else
5152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005154as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005155If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005156See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005157 fi
5158 fi
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5161$as_echo "$cross_compiling" >&6; }
5162
5163rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5164ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005166$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005167if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005168 $as_echo_n "(cached) " >&6
5169else
cristy8b350f62009-11-15 23:12:43 +00005170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005171/* end confdefs.h. */
5172
5173int
5174main ()
5175{
5176
5177 ;
5178 return 0;
5179}
5180_ACEOF
5181rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005182if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005183case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186esac
cristy8b350f62009-11-15 23:12:43 +00005187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5188$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005189 (eval "$ac_compile") 2>&5
5190 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5192 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005193 for ac_file in conftest.o conftest.obj conftest.*; do
5194 test -f "$ac_file" || continue;
5195 case $ac_file in
5196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5197 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5198 break;;
5199 esac
5200done
5201else
5202 $as_echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
cristy8b350f62009-11-15 23:12:43 +00005205{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005207as_fn_error $? "cannot compute suffix of object files: cannot compile
5208See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005209fi
cristy3ed852e2009-09-05 21:47:34 +00005210rm -f conftest.$ac_cv_objext conftest.$ac_ext
5211fi
cristy8b350f62009-11-15 23:12:43 +00005212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005213$as_echo "$ac_cv_objext" >&6; }
5214OBJEXT=$ac_cv_objext
5215ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005217$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005218if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005219 $as_echo_n "(cached) " >&6
5220else
cristy8b350f62009-11-15 23:12:43 +00005221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005222/* end confdefs.h. */
5223
5224int
5225main ()
5226{
5227#ifndef __GNUC__
5228 choke me
5229#endif
5230
5231 ;
5232 return 0;
5233}
5234_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005235if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005236 ac_compiler_gnu=yes
5237else
cristy8b350f62009-11-15 23:12:43 +00005238 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005239fi
cristy3ed852e2009-09-05 21:47:34 +00005240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241ac_cv_c_compiler_gnu=$ac_compiler_gnu
5242
5243fi
cristy8b350f62009-11-15 23:12:43 +00005244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005245$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5246if test $ac_compiler_gnu = yes; then
5247 GCC=yes
5248else
5249 GCC=
5250fi
5251ac_test_CFLAGS=${CFLAGS+set}
5252ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005254$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005255if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005256 $as_echo_n "(cached) " >&6
5257else
5258 ac_save_c_werror_flag=$ac_c_werror_flag
5259 ac_c_werror_flag=yes
5260 ac_cv_prog_cc_g=no
5261 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005263/* end confdefs.h. */
5264
5265int
5266main ()
5267{
5268
5269 ;
5270 return 0;
5271}
5272_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005273if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005274 ac_cv_prog_cc_g=yes
5275else
cristy8b350f62009-11-15 23:12:43 +00005276 CFLAGS=""
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005278/* end confdefs.h. */
5279
5280int
5281main ()
5282{
5283
5284 ;
5285 return 0;
5286}
5287_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005288if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005289
cristy8b350f62009-11-15 23:12:43 +00005290else
5291 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005292 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005294/* end confdefs.h. */
5295
5296int
5297main ()
5298{
5299
5300 ;
5301 return 0;
5302}
5303_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005304if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005305 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005306fi
cristy3ed852e2009-09-05 21:47:34 +00005307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308fi
cristy3ed852e2009-09-05 21:47:34 +00005309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310fi
cristy3ed852e2009-09-05 21:47:34 +00005311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5312 ac_c_werror_flag=$ac_save_c_werror_flag
5313fi
cristy8b350f62009-11-15 23:12:43 +00005314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005315$as_echo "$ac_cv_prog_cc_g" >&6; }
5316if test "$ac_test_CFLAGS" = set; then
5317 CFLAGS=$ac_save_CFLAGS
5318elif test $ac_cv_prog_cc_g = yes; then
5319 if test "$GCC" = yes; then
5320 CFLAGS="-g -O2"
5321 else
5322 CFLAGS="-g"
5323 fi
5324else
5325 if test "$GCC" = yes; then
5326 CFLAGS="-O2"
5327 else
5328 CFLAGS=
5329 fi
5330fi
cristy8b350f62009-11-15 23:12:43 +00005331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005332$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005333if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005334 $as_echo_n "(cached) " >&6
5335else
5336 ac_cv_prog_cc_c89=no
5337ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005339/* end confdefs.h. */
5340#include <stdarg.h>
5341#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005342struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5344struct buf { int x; };
5345FILE * (*rcsopen) (struct buf *, struct stat *, int);
5346static char *e (p, i)
5347 char **p;
5348 int i;
5349{
5350 return p[i];
5351}
5352static char *f (char * (*g) (char **, int), char **p, ...)
5353{
5354 char *s;
5355 va_list v;
5356 va_start (v,p);
5357 s = g (p, va_arg (v,int));
5358 va_end (v);
5359 return s;
5360}
5361
5362/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5363 function prototypes and stuff, but not '\xHH' hex character constants.
5364 These don't provoke an error unfortunately, instead are silently treated
5365 as 'x'. The following induces an error, until -std is added to get
5366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5367 array size at least. It's necessary to write '\x00'==0 to get something
5368 that's true only with -std. */
5369int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5370
5371/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5372 inside strings and character constants. */
5373#define FOO(x) 'x'
5374int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5375
5376int test (int i, double x);
5377struct s1 {int (*f) (int a);};
5378struct s2 {int (*f) (double a);};
5379int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5380int argc;
5381char **argv;
5382int
5383main ()
5384{
5385return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5386 ;
5387 return 0;
5388}
5389_ACEOF
5390for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5392do
5393 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005394 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005395 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005396fi
cristy3ed852e2009-09-05 21:47:34 +00005397rm -f core conftest.err conftest.$ac_objext
5398 test "x$ac_cv_prog_cc_c89" != "xno" && break
5399done
5400rm -f conftest.$ac_ext
5401CC=$ac_save_CC
5402
5403fi
5404# AC_CACHE_VAL
5405case "x$ac_cv_prog_cc_c89" in
5406 x)
cristy8b350f62009-11-15 23:12:43 +00005407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005408$as_echo "none needed" >&6; } ;;
5409 xno)
cristy8b350f62009-11-15 23:12:43 +00005410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005411$as_echo "unsupported" >&6; } ;;
5412 *)
5413 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005415$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5416esac
cristy8b350f62009-11-15 23:12:43 +00005417if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005418
cristy8b350f62009-11-15 23:12:43 +00005419fi
cristy3ed852e2009-09-05 21:47:34 +00005420
5421ac_ext=c
5422ac_cpp='$CPP $CPPFLAGS'
5423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005426
cristya5bda012013-11-03 18:05:38 +00005427ac_ext=c
5428ac_cpp='$CPP $CPPFLAGS'
5429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5433$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5434if ${am_cv_prog_cc_c_o+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436else
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439
5440int
5441main ()
5442{
5443
5444 ;
5445 return 0;
5446}
5447_ACEOF
5448 # Make sure it works both with $CC and with simple cc.
5449 # Following AC_PROG_CC_C_O, we do the test twice because some
5450 # compilers refuse to overwrite an existing .o file with -o,
5451 # though they will create one.
5452 am_cv_prog_cc_c_o=yes
5453 for am_i in 1 2; do
5454 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5455 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } \
5459 && test -f conftest2.$ac_objext; then
5460 : OK
5461 else
5462 am_cv_prog_cc_c_o=no
5463 break
5464 fi
5465 done
5466 rm -f core conftest*
5467 unset am_i
5468fi
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5470$as_echo "$am_cv_prog_cc_c_o" >&6; }
5471if test "$am_cv_prog_cc_c_o" != yes; then
5472 # Losing compiler, so override with the script.
5473 # FIXME: It is wrong to rewrite CC.
5474 # But if we don't then we get into trouble of one sort or another.
5475 # A longer-term fix would be to have automake use am__CC in this case,
5476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5477 CC="$am_aux_dir/compile $CC"
5478fi
5479ac_ext=c
5480ac_cpp='$CPP $CPPFLAGS'
5481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484
5485
cristy73bd4a52010-10-05 11:24:23 +00005486depcc="$CC" am_compiler_list=
5487
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5489$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005490if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005491 $as_echo_n "(cached) " >&6
5492else
5493 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5494 # We make a subdir and do the tests there. Otherwise we can end up
5495 # making bogus files that we don't know about and never remove. For
5496 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005497 # making a dummy file named 'D' -- because '-MD' means "put the output
5498 # in D".
cristy7247bba2012-02-05 16:37:27 +00005499 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005500 mkdir conftest.dir
5501 # Copy depcomp to subdir because otherwise we won't find it if we're
5502 # using a relative directory.
5503 cp "$am_depcomp" conftest.dir
5504 cd conftest.dir
5505 # We will build objects and dependencies in a subdirectory because
5506 # it helps to detect inapplicable dependency modes. For instance
5507 # both Tru64's cc and ICC support -MD to output dependencies as a
5508 # side effect of compilation, but ICC will put the dependencies in
5509 # the current directory while Tru64 will put them in the object
5510 # directory.
5511 mkdir sub
5512
5513 am_cv_CC_dependencies_compiler_type=none
5514 if test "$am_compiler_list" = ""; then
5515 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5516 fi
5517 am__universal=false
5518 case " $depcc " in #(
5519 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5520 esac
5521
5522 for depmode in $am_compiler_list; do
5523 # Setup a source with many dependencies, because some compilers
5524 # like to wrap large dependency lists on column 80 (with \), and
5525 # we should not choose a depcomp mode which is confused by this.
5526 #
5527 # We need to recreate these files for each test, as the compiler may
5528 # overwrite some of them when testing with obscure command lines.
5529 # This happens at least with the AIX C compiler.
5530 : > sub/conftest.c
5531 for i in 1 2 3 4 5 6; do
5532 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005533 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5534 # Solaris 10 /bin/sh.
5535 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005536 done
5537 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5538
cristyc0890a62012-07-19 00:18:20 +00005539 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005540 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005541 # handle '-M -o', and we need to detect this. Also, some Intel
5542 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005543 am__obj=sub/conftest.${OBJEXT-o}
5544 am__minus_obj="-o $am__obj"
5545 case $depmode in
5546 gcc)
5547 # This depmode causes a compiler race in universal mode.
5548 test "$am__universal" = false || continue
5549 ;;
5550 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005551 # After this tag, mechanisms are not by side-effect, so they'll
5552 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005553 if test "x$enable_dependency_tracking" = xyes; then
5554 continue
5555 else
5556 break
5557 fi
5558 ;;
cristy7247bba2012-02-05 16:37:27 +00005559 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005560 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005561 # not run yet. These depmodes are late enough in the game, and
5562 # so weak that their functioning should not be impacted.
5563 am__obj=conftest.${OBJEXT-o}
5564 am__minus_obj=
5565 ;;
5566 none) break ;;
5567 esac
5568 if depmode=$depmode \
5569 source=sub/conftest.c object=$am__obj \
5570 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5571 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5572 >/dev/null 2>conftest.err &&
5573 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5574 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5575 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5577 # icc doesn't choke on unknown options, it will just issue warnings
5578 # or remarks (even with -Werror). So we grep stderr for any message
5579 # that says an option was ignored or not supported.
5580 # When given -MP, icc 7.0 and 7.1 complain thusly:
5581 # icc: Command line warning: ignoring option '-M'; no argument required
5582 # The diagnosis changed in icc 8.0:
5583 # icc: Command line remark: option '-MP' not supported
5584 if (grep 'ignoring option' conftest.err ||
5585 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5586 am_cv_CC_dependencies_compiler_type=$depmode
5587 break
5588 fi
5589 fi
5590 done
5591
5592 cd ..
5593 rm -rf conftest.dir
5594else
5595 am_cv_CC_dependencies_compiler_type=none
5596fi
5597
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5600$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5601CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5602
5603 if
5604 test "x$enable_dependency_tracking" != xno \
5605 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5606 am__fastdepCC_TRUE=
5607 am__fastdepCC_FALSE='#'
5608else
5609 am__fastdepCC_TRUE='#'
5610 am__fastdepCC_FALSE=
5611fi
5612
5613
cristy3ed852e2009-09-05 21:47:34 +00005614
cristya0b81c32010-01-22 02:54:33 +00005615ac_ext=c
5616ac_cpp='$CPP $CPPFLAGS'
5617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5619ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5621$as_echo_n "checking how to run the C preprocessor... " >&6; }
5622# On Suns, sometimes $CPP names a directory.
5623if test -n "$CPP" && test -d "$CPP"; then
5624 CPP=
5625fi
5626if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005627 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005628 $as_echo_n "(cached) " >&6
5629else
5630 # Double quotes because CPP needs to be expanded
5631 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5632 do
5633 ac_preproc_ok=false
5634for ac_c_preproc_warn_flag in '' yes
5635do
5636 # Use a header file that comes with gcc, so configuring glibc
5637 # with a fresh cross-compiler works.
5638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5639 # <limits.h> exists even on freestanding compilers.
5640 # On the NeXT, cc -E runs the code through the compiler's parser,
5641 # not just through cpp. "Syntax error" is here to catch this case.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h. */
5644#ifdef __STDC__
5645# include <limits.h>
5646#else
5647# include <assert.h>
5648#endif
5649 Syntax error
5650_ACEOF
5651if ac_fn_c_try_cpp "$LINENO"; then :
5652
5653else
5654 # Broken: fails on valid input.
5655continue
5656fi
cristyda16f162011-02-19 23:52:17 +00005657rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005658
5659 # OK, works on sane cases. Now check whether nonexistent headers
5660 # can be detected and how.
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h. */
5663#include <ac_nonexistent.h>
5664_ACEOF
5665if ac_fn_c_try_cpp "$LINENO"; then :
5666 # Broken: success on invalid input.
5667continue
5668else
5669 # Passes both tests.
5670ac_preproc_ok=:
5671break
5672fi
cristyda16f162011-02-19 23:52:17 +00005673rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005674
5675done
5676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005677rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005678if $ac_preproc_ok; then :
5679 break
5680fi
5681
5682 done
5683 ac_cv_prog_CPP=$CPP
5684
5685fi
5686 CPP=$ac_cv_prog_CPP
5687else
5688 ac_cv_prog_CPP=$CPP
5689fi
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5691$as_echo "$CPP" >&6; }
5692ac_preproc_ok=false
5693for ac_c_preproc_warn_flag in '' yes
5694do
5695 # Use a header file that comes with gcc, so configuring glibc
5696 # with a fresh cross-compiler works.
5697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5698 # <limits.h> exists even on freestanding compilers.
5699 # On the NeXT, cc -E runs the code through the compiler's parser,
5700 # not just through cpp. "Syntax error" is here to catch this case.
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702/* end confdefs.h. */
5703#ifdef __STDC__
5704# include <limits.h>
5705#else
5706# include <assert.h>
5707#endif
5708 Syntax error
5709_ACEOF
5710if ac_fn_c_try_cpp "$LINENO"; then :
5711
5712else
5713 # Broken: fails on valid input.
5714continue
5715fi
cristyda16f162011-02-19 23:52:17 +00005716rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005717
5718 # OK, works on sane cases. Now check whether nonexistent headers
5719 # can be detected and how.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h. */
5722#include <ac_nonexistent.h>
5723_ACEOF
5724if ac_fn_c_try_cpp "$LINENO"; then :
5725 # Broken: success on invalid input.
5726continue
5727else
5728 # Passes both tests.
5729ac_preproc_ok=:
5730break
5731fi
cristyda16f162011-02-19 23:52:17 +00005732rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005733
5734done
5735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005736rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005737if $ac_preproc_ok; then :
5738
5739else
5740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005742as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5743See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005744fi
5745
5746ac_ext=c
5747ac_cpp='$CPP $CPPFLAGS'
5748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750ac_compiler_gnu=$ac_cv_c_compiler_gnu
5751
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5754$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005755if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005756 $as_echo_n "(cached) " >&6
5757else
5758 if test -z "$GREP"; then
5759 ac_path_GREP_found=false
5760 # Loop through the user's path and test for each of PROGNAME-LIST
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5763do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_prog in grep ggrep; do
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005769 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005770# Check for GNU ac_path_GREP and select it if it is found.
5771 # Check for GNU $ac_path_GREP
5772case `"$ac_path_GREP" --version 2>&1` in
5773*GNU*)
5774 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5775*)
5776 ac_count=0
5777 $as_echo_n 0123456789 >"conftest.in"
5778 while :
5779 do
5780 cat "conftest.in" "conftest.in" >"conftest.tmp"
5781 mv "conftest.tmp" "conftest.in"
5782 cp "conftest.in" "conftest.nl"
5783 $as_echo 'GREP' >> "conftest.nl"
5784 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5786 as_fn_arith $ac_count + 1 && ac_count=$as_val
5787 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5788 # Best one so far, save it but keep looking for a better one
5789 ac_cv_path_GREP="$ac_path_GREP"
5790 ac_path_GREP_max=$ac_count
5791 fi
5792 # 10*(2^10) chars as input seems more than enough
5793 test $ac_count -gt 10 && break
5794 done
5795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5796esac
5797
5798 $ac_path_GREP_found && break 3
5799 done
5800 done
5801 done
5802IFS=$as_save_IFS
5803 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005804 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005805 fi
5806else
5807 ac_cv_path_GREP=$GREP
5808fi
5809
5810fi
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5812$as_echo "$ac_cv_path_GREP" >&6; }
5813 GREP="$ac_cv_path_GREP"
5814
5815
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5817$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005818if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005819 $as_echo_n "(cached) " >&6
5820else
5821 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5822 then ac_cv_path_EGREP="$GREP -E"
5823 else
5824 if test -z "$EGREP"; then
5825 ac_path_EGREP_found=false
5826 # Loop through the user's path and test for each of PROGNAME-LIST
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_prog in egrep; do
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005835 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005836# Check for GNU ac_path_EGREP and select it if it is found.
5837 # Check for GNU $ac_path_EGREP
5838case `"$ac_path_EGREP" --version 2>&1` in
5839*GNU*)
5840 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5841*)
5842 ac_count=0
5843 $as_echo_n 0123456789 >"conftest.in"
5844 while :
5845 do
5846 cat "conftest.in" "conftest.in" >"conftest.tmp"
5847 mv "conftest.tmp" "conftest.in"
5848 cp "conftest.in" "conftest.nl"
5849 $as_echo 'EGREP' >> "conftest.nl"
5850 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5852 as_fn_arith $ac_count + 1 && ac_count=$as_val
5853 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5854 # Best one so far, save it but keep looking for a better one
5855 ac_cv_path_EGREP="$ac_path_EGREP"
5856 ac_path_EGREP_max=$ac_count
5857 fi
5858 # 10*(2^10) chars as input seems more than enough
5859 test $ac_count -gt 10 && break
5860 done
5861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5862esac
5863
5864 $ac_path_EGREP_found && break 3
5865 done
5866 done
5867 done
5868IFS=$as_save_IFS
5869 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005870 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005871 fi
5872else
5873 ac_cv_path_EGREP=$EGREP
5874fi
5875
5876 fi
5877fi
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5879$as_echo "$ac_cv_path_EGREP" >&6; }
5880 EGREP="$ac_cv_path_EGREP"
5881
5882
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5884$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005885if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005886 $as_echo_n "(cached) " >&6
5887else
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h. */
5890#include <stdlib.h>
5891#include <stdarg.h>
5892#include <string.h>
5893#include <float.h>
5894
5895int
5896main ()
5897{
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903if ac_fn_c_try_compile "$LINENO"; then :
5904 ac_cv_header_stdc=yes
5905else
5906 ac_cv_header_stdc=no
5907fi
5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909
5910if test $ac_cv_header_stdc = yes; then
5911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h. */
5914#include <string.h>
5915
5916_ACEOF
5917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5918 $EGREP "memchr" >/dev/null 2>&1; then :
5919
5920else
5921 ac_cv_header_stdc=no
5922fi
5923rm -f conftest*
5924
5925fi
5926
5927if test $ac_cv_header_stdc = yes; then
5928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h. */
5931#include <stdlib.h>
5932
5933_ACEOF
5934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5935 $EGREP "free" >/dev/null 2>&1; then :
5936
5937else
5938 ac_cv_header_stdc=no
5939fi
5940rm -f conftest*
5941
5942fi
5943
5944if test $ac_cv_header_stdc = yes; then
5945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5946 if test "$cross_compiling" = yes; then :
5947 :
5948else
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h. */
5951#include <ctype.h>
5952#include <stdlib.h>
5953#if ((' ' & 0x0FF) == 0x020)
5954# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5955# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5956#else
5957# define ISLOWER(c) \
5958 (('a' <= (c) && (c) <= 'i') \
5959 || ('j' <= (c) && (c) <= 'r') \
5960 || ('s' <= (c) && (c) <= 'z'))
5961# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5962#endif
5963
5964#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5965int
5966main ()
5967{
5968 int i;
5969 for (i = 0; i < 256; i++)
5970 if (XOR (islower (i), ISLOWER (i))
5971 || toupper (i) != TOUPPER (i))
5972 return 2;
5973 return 0;
5974}
5975_ACEOF
5976if ac_fn_c_try_run "$LINENO"; then :
5977
5978else
5979 ac_cv_header_stdc=no
5980fi
5981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5982 conftest.$ac_objext conftest.beam conftest.$ac_ext
5983fi
5984
5985fi
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5988$as_echo "$ac_cv_header_stdc" >&6; }
5989if test $ac_cv_header_stdc = yes; then
5990
5991$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5992
5993fi
5994
5995# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5996for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5997 inttypes.h stdint.h unistd.h
5998do :
5999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6000ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6001"
cristy98dddb52010-11-04 00:30:15 +00006002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006003 cat >>confdefs.h <<_ACEOF
6004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6005_ACEOF
6006
6007fi
6008
6009done
6010
6011
6012
6013 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 +00006014if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006015 MINIX=yes
6016else
6017 MINIX=
6018fi
6019
6020
6021 if test "$MINIX" = yes; then
6022
6023$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6024
6025
6026$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6027
6028
6029$as_echo "#define _MINIX 1" >>confdefs.h
6030
6031 fi
6032
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6035$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006036if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006037 $as_echo_n "(cached) " >&6
6038else
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h. */
6041
cristy14fefe52012-05-21 00:59:18 +00006042# define __EXTENSIONS__ 1
6043 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006044int
6045main ()
6046{
6047
6048 ;
6049 return 0;
6050}
6051_ACEOF
6052if ac_fn_c_try_compile "$LINENO"; then :
6053 ac_cv_safe_to_define___extensions__=yes
6054else
6055 ac_cv_safe_to_define___extensions__=no
6056fi
6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058fi
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6060$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6061 test $ac_cv_safe_to_define___extensions__ = yes &&
6062 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6063
6064 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6065
6066 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6067
6068 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6069
6070 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6071
6072
6073
cristy9af1cbf2014-12-28 22:03:09 +00006074# ==============================================================================
6075# Find required base packages
6076# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006077if test -n "$ac_tool_prefix"; then
6078 for ac_prog in ar lib "link -lib"
6079 do
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083$as_echo_n "checking for $ac_word... " >&6; }
6084if ${ac_cv_prog_AR+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086else
6087 if test -n "$AR"; then
6088 ac_cv_prog_AR="$AR" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101done
6102 done
6103IFS=$as_save_IFS
6104
6105fi
6106fi
6107AR=$ac_cv_prog_AR
6108if test -n "$AR"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6110$as_echo "$AR" >&6; }
6111else
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113$as_echo "no" >&6; }
6114fi
6115
6116
6117 test -n "$AR" && break
6118 done
6119fi
6120if test -z "$AR"; then
6121 ac_ct_AR=$AR
6122 for ac_prog in ar lib "link -lib"
6123do
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125set dummy $ac_prog; ac_word=$2
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if ${ac_cv_prog_ac_ct_AR+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130else
6131 if test -n "$ac_ct_AR"; then
6132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_ac_ct_AR="$ac_prog"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145done
6146 done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151ac_ct_AR=$ac_cv_prog_ac_ct_AR
6152if test -n "$ac_ct_AR"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6154$as_echo "$ac_ct_AR" >&6; }
6155else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160
6161 test -n "$ac_ct_AR" && break
6162done
6163
6164 if test "x$ac_ct_AR" = x; then
6165 AR="false"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168yes:)
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171ac_tool_warned=yes ;;
6172esac
6173 AR=$ac_ct_AR
6174 fi
6175fi
6176
6177: ${AR=ar}
6178
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6180$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6181if ${am_cv_ar_interface+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183else
6184 ac_ext=c
6185ac_cpp='$CPP $CPPFLAGS'
6186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6188ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189
6190 am_cv_ar_interface=ar
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h. */
6193int some_variable = 0;
6194_ACEOF
6195if ac_fn_c_try_compile "$LINENO"; then :
6196 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6198 (eval $am_ar_try) 2>&5
6199 ac_status=$?
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }
6202 if test "$ac_status" -eq 0; then
6203 am_cv_ar_interface=ar
6204 else
6205 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6207 (eval $am_ar_try) 2>&5
6208 ac_status=$?
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210 test $ac_status = 0; }
6211 if test "$ac_status" -eq 0; then
6212 am_cv_ar_interface=lib
6213 else
6214 am_cv_ar_interface=unknown
6215 fi
6216 fi
6217 rm -f conftest.lib libconftest.a
6218
6219fi
6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 ac_ext=c
6222ac_cpp='$CPP $CPPFLAGS'
6223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226
6227fi
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6229$as_echo "$am_cv_ar_interface" >&6; }
6230
6231case $am_cv_ar_interface in
6232ar)
6233 ;;
6234lib)
6235 # Microsoft lib, so override with the ar-lib wrapper script.
6236 # FIXME: It is wrong to rewrite AR.
6237 # But if we don't then we get into trouble of one sort or another.
6238 # A longer-term fix would be to have automake use am__AR in this case,
6239 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6240 # similar.
6241 AR="$am_aux_dir/ar-lib $AR"
6242 ;;
6243unknown)
6244 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6245 ;;
6246esac
cristy9af1cbf2014-12-28 22:03:09 +00006247
cristya0b81c32010-01-22 02:54:33 +00006248ac_ext=c
6249ac_cpp='$CPP $CPPFLAGS'
6250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6255set dummy ${ac_tool_prefix}gcc; ac_word=$2
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006258if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006259 $as_echo_n "(cached) " >&6
6260else
6261 if test -n "$CC"; then
6262 ac_cv_prog_CC="$CC" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006271 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275done
6276 done
6277IFS=$as_save_IFS
6278
6279fi
6280fi
6281CC=$ac_cv_prog_CC
6282if test -n "$CC"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6284$as_echo "$CC" >&6; }
6285else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }
6288fi
6289
6290
6291fi
6292if test -z "$ac_cv_prog_CC"; then
6293 ac_ct_CC=$CC
6294 # Extract the first word of "gcc", so it can be a program name with args.
6295set dummy gcc; ac_word=$2
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006298if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006299 $as_echo_n "(cached) " >&6
6300else
6301 if test -n "$ac_ct_CC"; then
6302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006311 ac_cv_prog_ac_ct_CC="gcc"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315done
6316 done
6317IFS=$as_save_IFS
6318
6319fi
6320fi
6321ac_ct_CC=$ac_cv_prog_ac_ct_CC
6322if test -n "$ac_ct_CC"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6324$as_echo "$ac_ct_CC" >&6; }
6325else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327$as_echo "no" >&6; }
6328fi
6329
6330 if test "x$ac_ct_CC" = x; then
6331 CC=""
6332 else
6333 case $cross_compiling:$ac_tool_warned in
6334yes:)
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337ac_tool_warned=yes ;;
6338esac
6339 CC=$ac_ct_CC
6340 fi
6341else
6342 CC="$ac_cv_prog_CC"
6343fi
6344
6345if test -z "$CC"; then
6346 if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6348set dummy ${ac_tool_prefix}cc; ac_word=$2
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006351if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006352 $as_echo_n "(cached) " >&6
6353else
6354 if test -n "$CC"; then
6355 ac_cv_prog_CC="$CC" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006364 ac_cv_prog_CC="${ac_tool_prefix}cc"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6367 fi
6368done
6369 done
6370IFS=$as_save_IFS
6371
6372fi
6373fi
6374CC=$ac_cv_prog_CC
6375if test -n "$CC"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6377$as_echo "$CC" >&6; }
6378else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381fi
6382
6383
6384 fi
6385fi
6386if test -z "$CC"; then
6387 # Extract the first word of "cc", so it can be a program name with args.
6388set dummy cc; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006391if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006392 $as_echo_n "(cached) " >&6
6393else
6394 if test -n "$CC"; then
6395 ac_cv_prog_CC="$CC" # Let the user override the test.
6396else
6397 ac_prog_rejected=no
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6406 ac_prog_rejected=yes
6407 continue
6408 fi
6409 ac_cv_prog_CC="cc"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413done
6414 done
6415IFS=$as_save_IFS
6416
6417if test $ac_prog_rejected = yes; then
6418 # We found a bogon in the path, so make sure we never use it.
6419 set dummy $ac_cv_prog_CC
6420 shift
6421 if test $# != 0; then
6422 # We chose a different compiler from the bogus one.
6423 # However, it has the same basename, so the bogon will be chosen
6424 # first if we set CC to just the basename; use the full file name.
6425 shift
6426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6427 fi
6428fi
6429fi
6430fi
6431CC=$ac_cv_prog_CC
6432if test -n "$CC"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6434$as_echo "$CC" >&6; }
6435else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437$as_echo "no" >&6; }
6438fi
6439
6440
6441fi
6442if test -z "$CC"; then
6443 if test -n "$ac_tool_prefix"; then
6444 for ac_prog in cl.exe
6445 do
6446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006450if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006451 $as_echo_n "(cached) " >&6
6452else
6453 if test -n "$CC"; then
6454 ac_cv_prog_CC="$CC" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467done
6468 done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473CC=$ac_cv_prog_CC
6474if test -n "$CC"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6476$as_echo "$CC" >&6; }
6477else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482
6483 test -n "$CC" && break
6484 done
6485fi
6486if test -z "$CC"; then
6487 ac_ct_CC=$CC
6488 for ac_prog in cl.exe
6489do
6490 # Extract the first word of "$ac_prog", so it can be a program name with args.
6491set dummy $ac_prog; ac_word=$2
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006494if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006495 $as_echo_n "(cached) " >&6
6496else
6497 if test -n "$ac_ct_CC"; then
6498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006507 ac_cv_prog_ac_ct_CC="$ac_prog"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511done
6512 done
6513IFS=$as_save_IFS
6514
6515fi
6516fi
6517ac_ct_CC=$ac_cv_prog_ac_ct_CC
6518if test -n "$ac_ct_CC"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6520$as_echo "$ac_ct_CC" >&6; }
6521else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
6524fi
6525
6526
6527 test -n "$ac_ct_CC" && break
6528done
6529
6530 if test "x$ac_ct_CC" = x; then
6531 CC=""
6532 else
6533 case $cross_compiling:$ac_tool_warned in
6534yes:)
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537ac_tool_warned=yes ;;
6538esac
6539 CC=$ac_ct_CC
6540 fi
6541fi
6542
6543fi
6544
6545
6546test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006548as_fn_error $? "no acceptable C compiler found in \$PATH
6549See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006550
6551# Provide some information about the compiler.
6552$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6553set X $ac_compile
6554ac_compiler=$2
6555for ac_option in --version -v -V -qversion; do
6556 { { ac_try="$ac_compiler $ac_option >&5"
6557case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560esac
6561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6562$as_echo "$ac_try_echo"; } >&5
6563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6564 ac_status=$?
6565 if test -s conftest.err; then
6566 sed '10a\
6567... rest of stderr output deleted ...
6568 10q' conftest.err >conftest.er1
6569 cat conftest.er1 >&5
6570 fi
6571 rm -f conftest.er1 conftest.err
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573 test $ac_status = 0; }
6574done
6575
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6577$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006578if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006579 $as_echo_n "(cached) " >&6
6580else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h. */
6583
6584int
6585main ()
6586{
6587#ifndef __GNUC__
6588 choke me
6589#endif
6590
6591 ;
6592 return 0;
6593}
6594_ACEOF
6595if ac_fn_c_try_compile "$LINENO"; then :
6596 ac_compiler_gnu=yes
6597else
6598 ac_compiler_gnu=no
6599fi
6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601ac_cv_c_compiler_gnu=$ac_compiler_gnu
6602
6603fi
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6605$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6606if test $ac_compiler_gnu = yes; then
6607 GCC=yes
6608else
6609 GCC=
6610fi
6611ac_test_CFLAGS=${CFLAGS+set}
6612ac_save_CFLAGS=$CFLAGS
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6614$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006615if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006616 $as_echo_n "(cached) " >&6
6617else
6618 ac_save_c_werror_flag=$ac_c_werror_flag
6619 ac_c_werror_flag=yes
6620 ac_cv_prog_cc_g=no
6621 CFLAGS="-g"
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623/* end confdefs.h. */
6624
6625int
6626main ()
6627{
6628
6629 ;
6630 return 0;
6631}
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"; then :
6634 ac_cv_prog_cc_g=yes
6635else
6636 CFLAGS=""
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639
6640int
6641main ()
6642{
6643
6644 ;
6645 return 0;
6646}
6647_ACEOF
6648if ac_fn_c_try_compile "$LINENO"; then :
6649
6650else
6651 ac_c_werror_flag=$ac_save_c_werror_flag
6652 CFLAGS="-g"
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h. */
6655
6656int
6657main ()
6658{
6659
6660 ;
6661 return 0;
6662}
6663_ACEOF
6664if ac_fn_c_try_compile "$LINENO"; then :
6665 ac_cv_prog_cc_g=yes
6666fi
6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668fi
6669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670fi
6671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 ac_c_werror_flag=$ac_save_c_werror_flag
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6675$as_echo "$ac_cv_prog_cc_g" >&6; }
6676if test "$ac_test_CFLAGS" = set; then
6677 CFLAGS=$ac_save_CFLAGS
6678elif test $ac_cv_prog_cc_g = yes; then
6679 if test "$GCC" = yes; then
6680 CFLAGS="-g -O2"
6681 else
6682 CFLAGS="-g"
6683 fi
6684else
6685 if test "$GCC" = yes; then
6686 CFLAGS="-O2"
6687 else
6688 CFLAGS=
6689 fi
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6692$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006693if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006694 $as_echo_n "(cached) " >&6
6695else
6696 ac_cv_prog_cc_c89=no
6697ac_save_CC=$CC
6698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699/* end confdefs.h. */
6700#include <stdarg.h>
6701#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006702struct stat;
cristya0b81c32010-01-22 02:54:33 +00006703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6704struct buf { int x; };
6705FILE * (*rcsopen) (struct buf *, struct stat *, int);
6706static char *e (p, i)
6707 char **p;
6708 int i;
6709{
6710 return p[i];
6711}
6712static char *f (char * (*g) (char **, int), char **p, ...)
6713{
6714 char *s;
6715 va_list v;
6716 va_start (v,p);
6717 s = g (p, va_arg (v,int));
6718 va_end (v);
6719 return s;
6720}
6721
6722/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6723 function prototypes and stuff, but not '\xHH' hex character constants.
6724 These don't provoke an error unfortunately, instead are silently treated
6725 as 'x'. The following induces an error, until -std is added to get
6726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6727 array size at least. It's necessary to write '\x00'==0 to get something
6728 that's true only with -std. */
6729int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6730
6731/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6732 inside strings and character constants. */
6733#define FOO(x) 'x'
6734int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6735
6736int test (int i, double x);
6737struct s1 {int (*f) (int a);};
6738struct s2 {int (*f) (double a);};
6739int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6740int argc;
6741char **argv;
6742int
6743main ()
6744{
6745return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6746 ;
6747 return 0;
6748}
6749_ACEOF
6750for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6752do
6753 CC="$ac_save_CC $ac_arg"
6754 if ac_fn_c_try_compile "$LINENO"; then :
6755 ac_cv_prog_cc_c89=$ac_arg
6756fi
6757rm -f core conftest.err conftest.$ac_objext
6758 test "x$ac_cv_prog_cc_c89" != "xno" && break
6759done
6760rm -f conftest.$ac_ext
6761CC=$ac_save_CC
6762
6763fi
6764# AC_CACHE_VAL
6765case "x$ac_cv_prog_cc_c89" in
6766 x)
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6768$as_echo "none needed" >&6; } ;;
6769 xno)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6771$as_echo "unsupported" >&6; } ;;
6772 *)
6773 CC="$CC $ac_cv_prog_cc_c89"
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6775$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6776esac
6777if test "x$ac_cv_prog_cc_c89" != xno; then :
6778
6779fi
6780
6781ac_ext=c
6782ac_cpp='$CPP $CPPFLAGS'
6783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786
cristya5bda012013-11-03 18:05:38 +00006787ac_ext=c
6788ac_cpp='$CPP $CPPFLAGS'
6789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6793$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6794if ${am_cv_prog_cc_c_o+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796else
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h. */
6799
6800int
6801main ()
6802{
6803
6804 ;
6805 return 0;
6806}
6807_ACEOF
6808 # Make sure it works both with $CC and with simple cc.
6809 # Following AC_PROG_CC_C_O, we do the test twice because some
6810 # compilers refuse to overwrite an existing .o file with -o,
6811 # though they will create one.
6812 am_cv_prog_cc_c_o=yes
6813 for am_i in 1 2; do
6814 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6815 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } \
6819 && test -f conftest2.$ac_objext; then
6820 : OK
6821 else
6822 am_cv_prog_cc_c_o=no
6823 break
6824 fi
6825 done
6826 rm -f core conftest*
6827 unset am_i
6828fi
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6830$as_echo "$am_cv_prog_cc_c_o" >&6; }
6831if test "$am_cv_prog_cc_c_o" != yes; then
6832 # Losing compiler, so override with the script.
6833 # FIXME: It is wrong to rewrite CC.
6834 # But if we don't then we get into trouble of one sort or another.
6835 # A longer-term fix would be to have automake use am__CC in this case,
6836 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6837 CC="$am_aux_dir/compile $CC"
6838fi
6839ac_ext=c
6840ac_cpp='$CPP $CPPFLAGS'
6841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843ac_compiler_gnu=$ac_cv_c_compiler_gnu
6844
6845
cristy73bd4a52010-10-05 11:24:23 +00006846depcc="$CC" am_compiler_list=
6847
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6849$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006850if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006851 $as_echo_n "(cached) " >&6
6852else
6853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6854 # We make a subdir and do the tests there. Otherwise we can end up
6855 # making bogus files that we don't know about and never remove. For
6856 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006857 # making a dummy file named 'D' -- because '-MD' means "put the output
6858 # in D".
cristy7247bba2012-02-05 16:37:27 +00006859 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006860 mkdir conftest.dir
6861 # Copy depcomp to subdir because otherwise we won't find it if we're
6862 # using a relative directory.
6863 cp "$am_depcomp" conftest.dir
6864 cd conftest.dir
6865 # We will build objects and dependencies in a subdirectory because
6866 # it helps to detect inapplicable dependency modes. For instance
6867 # both Tru64's cc and ICC support -MD to output dependencies as a
6868 # side effect of compilation, but ICC will put the dependencies in
6869 # the current directory while Tru64 will put them in the object
6870 # directory.
6871 mkdir sub
6872
6873 am_cv_CC_dependencies_compiler_type=none
6874 if test "$am_compiler_list" = ""; then
6875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6876 fi
6877 am__universal=false
6878 case " $depcc " in #(
6879 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6880 esac
6881
6882 for depmode in $am_compiler_list; do
6883 # Setup a source with many dependencies, because some compilers
6884 # like to wrap large dependency lists on column 80 (with \), and
6885 # we should not choose a depcomp mode which is confused by this.
6886 #
6887 # We need to recreate these files for each test, as the compiler may
6888 # overwrite some of them when testing with obscure command lines.
6889 # This happens at least with the AIX C compiler.
6890 : > sub/conftest.c
6891 for i in 1 2 3 4 5 6; do
6892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6894 # Solaris 10 /bin/sh.
6895 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006896 done
6897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6898
cristyc0890a62012-07-19 00:18:20 +00006899 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006900 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006901 # handle '-M -o', and we need to detect this. Also, some Intel
6902 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006903 am__obj=sub/conftest.${OBJEXT-o}
6904 am__minus_obj="-o $am__obj"
6905 case $depmode in
6906 gcc)
6907 # This depmode causes a compiler race in universal mode.
6908 test "$am__universal" = false || continue
6909 ;;
6910 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006911 # After this tag, mechanisms are not by side-effect, so they'll
6912 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006913 if test "x$enable_dependency_tracking" = xyes; then
6914 continue
6915 else
6916 break
6917 fi
6918 ;;
cristy7247bba2012-02-05 16:37:27 +00006919 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006920 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006921 # not run yet. These depmodes are late enough in the game, and
6922 # so weak that their functioning should not be impacted.
6923 am__obj=conftest.${OBJEXT-o}
6924 am__minus_obj=
6925 ;;
6926 none) break ;;
6927 esac
6928 if depmode=$depmode \
6929 source=sub/conftest.c object=$am__obj \
6930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6932 >/dev/null 2>conftest.err &&
6933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6937 # icc doesn't choke on unknown options, it will just issue warnings
6938 # or remarks (even with -Werror). So we grep stderr for any message
6939 # that says an option was ignored or not supported.
6940 # When given -MP, icc 7.0 and 7.1 complain thusly:
6941 # icc: Command line warning: ignoring option '-M'; no argument required
6942 # The diagnosis changed in icc 8.0:
6943 # icc: Command line remark: option '-MP' not supported
6944 if (grep 'ignoring option' conftest.err ||
6945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6946 am_cv_CC_dependencies_compiler_type=$depmode
6947 break
6948 fi
6949 fi
6950 done
6951
6952 cd ..
6953 rm -rf conftest.dir
6954else
6955 am_cv_CC_dependencies_compiler_type=none
6956fi
6957
6958fi
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6960$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6961CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6962
6963 if
6964 test "x$enable_dependency_tracking" != xno \
6965 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6966 am__fastdepCC_TRUE=
6967 am__fastdepCC_FALSE='#'
6968else
6969 am__fastdepCC_TRUE='#'
6970 am__fastdepCC_FALSE=
6971fi
6972
6973
cristy95646052009-11-28 23:05:30 +00006974ac_ext=cpp
6975ac_cpp='$CXXCPP $CPPFLAGS'
6976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6979if test -z "$CXX"; then
6980 if test -n "$CCC"; then
6981 CXX=$CCC
6982 else
6983 if test -n "$ac_tool_prefix"; then
6984 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6985 do
6986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006990if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006991 $as_echo_n "(cached) " >&6
6992else
6993 if test -n "$CXX"; then
6994 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007003 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007done
7008 done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013CXX=$ac_cv_prog_CXX
7014if test -n "$CXX"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7016$as_echo "$CXX" >&6; }
7017else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022
7023 test -n "$CXX" && break
7024 done
7025fi
7026if test -z "$CXX"; then
7027 ac_ct_CXX=$CXX
7028 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7029do
7030 # Extract the first word of "$ac_prog", so it can be a program name with args.
7031set dummy $ac_prog; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007034if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007035 $as_echo_n "(cached) " >&6
7036else
7037 if test -n "$ac_ct_CXX"; then
7038 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007047 ac_cv_prog_ac_ct_CXX="$ac_prog"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051done
7052 done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7058if test -n "$ac_ct_CXX"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7060$as_echo "$ac_ct_CXX" >&6; }
7061else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066
7067 test -n "$ac_ct_CXX" && break
7068done
7069
7070 if test "x$ac_ct_CXX" = x; then
7071 CXX="g++"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074yes:)
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079 CXX=$ac_ct_CXX
7080 fi
7081fi
7082
7083 fi
7084fi
7085# Provide some information about the compiler.
7086$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7087set X $ac_compile
7088ac_compiler=$2
7089for ac_option in --version -v -V -qversion; do
7090 { { ac_try="$ac_compiler $ac_option >&5"
7091case "(($ac_try" in
7092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093 *) ac_try_echo=$ac_try;;
7094esac
7095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7096$as_echo "$ac_try_echo"; } >&5
7097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7098 ac_status=$?
7099 if test -s conftest.err; then
7100 sed '10a\
7101... rest of stderr output deleted ...
7102 10q' conftest.err >conftest.er1
7103 cat conftest.er1 >&5
7104 fi
7105 rm -f conftest.er1 conftest.err
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }
7108done
7109
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7111$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007112if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007113 $as_echo_n "(cached) " >&6
7114else
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h. */
7117
7118int
7119main ()
7120{
7121#ifndef __GNUC__
7122 choke me
7123#endif
7124
7125 ;
7126 return 0;
7127}
7128_ACEOF
7129if ac_fn_cxx_try_compile "$LINENO"; then :
7130 ac_compiler_gnu=yes
7131else
7132 ac_compiler_gnu=no
7133fi
7134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7136
7137fi
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7139$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7140if test $ac_compiler_gnu = yes; then
7141 GXX=yes
7142else
7143 GXX=
7144fi
7145ac_test_CXXFLAGS=${CXXFLAGS+set}
7146ac_save_CXXFLAGS=$CXXFLAGS
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7148$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007149if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007150 $as_echo_n "(cached) " >&6
7151else
7152 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7153 ac_cxx_werror_flag=yes
7154 ac_cv_prog_cxx_g=no
7155 CXXFLAGS="-g"
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h. */
7158
7159int
7160main ()
7161{
7162
7163 ;
7164 return 0;
7165}
7166_ACEOF
7167if ac_fn_cxx_try_compile "$LINENO"; then :
7168 ac_cv_prog_cxx_g=yes
7169else
7170 CXXFLAGS=""
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h. */
7173
7174int
7175main ()
7176{
7177
7178 ;
7179 return 0;
7180}
7181_ACEOF
7182if ac_fn_cxx_try_compile "$LINENO"; then :
7183
7184else
7185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7186 CXXFLAGS="-g"
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h. */
7189
7190int
7191main ()
7192{
7193
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198if ac_fn_cxx_try_compile "$LINENO"; then :
7199 ac_cv_prog_cxx_g=yes
7200fi
7201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202fi
7203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204fi
7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7207fi
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7209$as_echo "$ac_cv_prog_cxx_g" >&6; }
7210if test "$ac_test_CXXFLAGS" = set; then
7211 CXXFLAGS=$ac_save_CXXFLAGS
7212elif test $ac_cv_prog_cxx_g = yes; then
7213 if test "$GXX" = yes; then
7214 CXXFLAGS="-g -O2"
7215 else
7216 CXXFLAGS="-g"
7217 fi
7218else
7219 if test "$GXX" = yes; then
7220 CXXFLAGS="-O2"
7221 else
7222 CXXFLAGS=
7223 fi
7224fi
7225ac_ext=c
7226ac_cpp='$CPP $CPPFLAGS'
7227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229ac_compiler_gnu=$ac_cv_c_compiler_gnu
7230
cristy73bd4a52010-10-05 11:24:23 +00007231depcc="$CXX" am_compiler_list=
7232
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7234$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007235if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007236 $as_echo_n "(cached) " >&6
7237else
7238 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7239 # We make a subdir and do the tests there. Otherwise we can end up
7240 # making bogus files that we don't know about and never remove. For
7241 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007242 # making a dummy file named 'D' -- because '-MD' means "put the output
7243 # in D".
cristy7247bba2012-02-05 16:37:27 +00007244 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007245 mkdir conftest.dir
7246 # Copy depcomp to subdir because otherwise we won't find it if we're
7247 # using a relative directory.
7248 cp "$am_depcomp" conftest.dir
7249 cd conftest.dir
7250 # We will build objects and dependencies in a subdirectory because
7251 # it helps to detect inapplicable dependency modes. For instance
7252 # both Tru64's cc and ICC support -MD to output dependencies as a
7253 # side effect of compilation, but ICC will put the dependencies in
7254 # the current directory while Tru64 will put them in the object
7255 # directory.
7256 mkdir sub
7257
7258 am_cv_CXX_dependencies_compiler_type=none
7259 if test "$am_compiler_list" = ""; then
7260 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7261 fi
7262 am__universal=false
7263 case " $depcc " in #(
7264 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7265 esac
7266
7267 for depmode in $am_compiler_list; do
7268 # Setup a source with many dependencies, because some compilers
7269 # like to wrap large dependency lists on column 80 (with \), and
7270 # we should not choose a depcomp mode which is confused by this.
7271 #
7272 # We need to recreate these files for each test, as the compiler may
7273 # overwrite some of them when testing with obscure command lines.
7274 # This happens at least with the AIX C compiler.
7275 : > sub/conftest.c
7276 for i in 1 2 3 4 5 6; do
7277 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007278 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7279 # Solaris 10 /bin/sh.
7280 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007281 done
7282 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7283
cristyc0890a62012-07-19 00:18:20 +00007284 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007285 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007286 # handle '-M -o', and we need to detect this. Also, some Intel
7287 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007288 am__obj=sub/conftest.${OBJEXT-o}
7289 am__minus_obj="-o $am__obj"
7290 case $depmode in
7291 gcc)
7292 # This depmode causes a compiler race in universal mode.
7293 test "$am__universal" = false || continue
7294 ;;
7295 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007296 # After this tag, mechanisms are not by side-effect, so they'll
7297 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007298 if test "x$enable_dependency_tracking" = xyes; then
7299 continue
7300 else
7301 break
7302 fi
7303 ;;
cristy7247bba2012-02-05 16:37:27 +00007304 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007305 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007306 # not run yet. These depmodes are late enough in the game, and
7307 # so weak that their functioning should not be impacted.
7308 am__obj=conftest.${OBJEXT-o}
7309 am__minus_obj=
7310 ;;
7311 none) break ;;
7312 esac
7313 if depmode=$depmode \
7314 source=sub/conftest.c object=$am__obj \
7315 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7316 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7317 >/dev/null 2>conftest.err &&
7318 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7319 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7320 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7321 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7322 # icc doesn't choke on unknown options, it will just issue warnings
7323 # or remarks (even with -Werror). So we grep stderr for any message
7324 # that says an option was ignored or not supported.
7325 # When given -MP, icc 7.0 and 7.1 complain thusly:
7326 # icc: Command line warning: ignoring option '-M'; no argument required
7327 # The diagnosis changed in icc 8.0:
7328 # icc: Command line remark: option '-MP' not supported
7329 if (grep 'ignoring option' conftest.err ||
7330 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7331 am_cv_CXX_dependencies_compiler_type=$depmode
7332 break
7333 fi
7334 fi
7335 done
7336
7337 cd ..
7338 rm -rf conftest.dir
7339else
7340 am_cv_CXX_dependencies_compiler_type=none
7341fi
7342
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7345$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7346CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7347
7348 if
7349 test "x$enable_dependency_tracking" != xno \
7350 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7351 am__fastdepCXX_TRUE=
7352 am__fastdepCXX_FALSE='#'
7353else
7354 am__fastdepCXX_TRUE='#'
7355 am__fastdepCXX_FALSE=
7356fi
7357
7358
cristy8b350f62009-11-15 23:12:43 +00007359 case $ac_cv_prog_cc_stdc in #(
7360 no) :
7361 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7362 *) :
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007364$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007365if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007366 $as_echo_n "(cached) " >&6
7367else
7368 ac_cv_prog_cc_c99=no
7369ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007371/* end confdefs.h. */
7372#include <stdarg.h>
7373#include <stdbool.h>
7374#include <stdlib.h>
7375#include <wchar.h>
7376#include <stdio.h>
7377
7378// Check varargs macros. These examples are taken from C99 6.10.3.5.
7379#define debug(...) fprintf (stderr, __VA_ARGS__)
7380#define showlist(...) puts (#__VA_ARGS__)
7381#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7382static void
7383test_varargs_macros (void)
7384{
7385 int x = 1234;
7386 int y = 5678;
7387 debug ("Flag");
7388 debug ("X = %d\n", x);
7389 showlist (The first, second, and third items.);
7390 report (x>y, "x is %d but y is %d", x, y);
7391}
7392
7393// Check long long types.
7394#define BIG64 18446744073709551615ull
7395#define BIG32 4294967295ul
7396#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7397#if !BIG_OK
7398 your preprocessor is broken;
7399#endif
7400#if BIG_OK
7401#else
7402 your preprocessor is broken;
7403#endif
7404static long long int bignum = -9223372036854775807LL;
7405static unsigned long long int ubignum = BIG64;
7406
7407struct incomplete_array
7408{
7409 int datasize;
7410 double data[];
7411};
7412
7413struct named_init {
7414 int number;
7415 const wchar_t *name;
7416 double average;
7417};
7418
7419typedef const char *ccp;
7420
7421static inline int
7422test_restrict (ccp restrict text)
7423{
7424 // See if C++-style comments work.
7425 // Iterate through items via the restricted pointer.
7426 // Also check for declarations in for loops.
7427 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7428 continue;
7429 return 0;
7430}
7431
7432// Check varargs and va_copy.
7433static void
7434test_varargs (const char *format, ...)
7435{
7436 va_list args;
7437 va_start (args, format);
7438 va_list args_copy;
7439 va_copy (args_copy, args);
7440
7441 const char *str;
7442 int number;
7443 float fnumber;
7444
7445 while (*format)
7446 {
7447 switch (*format++)
7448 {
7449 case 's': // string
7450 str = va_arg (args_copy, const char *);
7451 break;
7452 case 'd': // int
7453 number = va_arg (args_copy, int);
7454 break;
7455 case 'f': // float
7456 fnumber = va_arg (args_copy, double);
7457 break;
7458 default:
7459 break;
7460 }
7461 }
7462 va_end (args_copy);
7463 va_end (args);
7464}
7465
7466int
7467main ()
7468{
7469
7470 // Check bool.
7471 _Bool success = false;
7472
7473 // Check restrict.
7474 if (test_restrict ("String literal") == 0)
7475 success = true;
7476 char *restrict newvar = "Another string";
7477
7478 // Check varargs.
7479 test_varargs ("s, d' f .", "string", 65, 34.234);
7480 test_varargs_macros ();
7481
7482 // Check flexible array members.
7483 struct incomplete_array *ia =
7484 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7485 ia->datasize = 10;
7486 for (int i = 0; i < ia->datasize; ++i)
7487 ia->data[i] = i * 1.234;
7488
7489 // Check named initializers.
7490 struct named_init ni = {
7491 .number = 34,
7492 .name = L"Test wide string",
7493 .average = 543.34343,
7494 };
7495
7496 ni.number = 58;
7497
7498 int dynamic_array[ni.number];
7499 dynamic_array[ni.number - 1] = 543;
7500
7501 // work around unused variable warnings
7502 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7503 || dynamic_array[ni.number - 1] != 543);
7504
7505 ;
7506 return 0;
7507}
7508_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007509for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007510do
7511 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007512 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007513 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007514fi
cristy3ed852e2009-09-05 21:47:34 +00007515rm -f core conftest.err conftest.$ac_objext
7516 test "x$ac_cv_prog_cc_c99" != "xno" && break
7517done
7518rm -f conftest.$ac_ext
7519CC=$ac_save_CC
7520
7521fi
7522# AC_CACHE_VAL
7523case "x$ac_cv_prog_cc_c99" in
7524 x)
cristy8b350f62009-11-15 23:12:43 +00007525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007526$as_echo "none needed" >&6; } ;;
7527 xno)
cristy8b350f62009-11-15 23:12:43 +00007528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007529$as_echo "unsupported" >&6; } ;;
7530 *)
7531 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007533$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7534esac
cristy8b350f62009-11-15 23:12:43 +00007535if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007536 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7537else
cristy8b350f62009-11-15 23:12:43 +00007538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007539$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007540if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007541 $as_echo_n "(cached) " >&6
7542else
7543 ac_cv_prog_cc_c89=no
7544ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007546/* end confdefs.h. */
7547#include <stdarg.h>
7548#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007549struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7551struct buf { int x; };
7552FILE * (*rcsopen) (struct buf *, struct stat *, int);
7553static char *e (p, i)
7554 char **p;
7555 int i;
7556{
7557 return p[i];
7558}
7559static char *f (char * (*g) (char **, int), char **p, ...)
7560{
7561 char *s;
7562 va_list v;
7563 va_start (v,p);
7564 s = g (p, va_arg (v,int));
7565 va_end (v);
7566 return s;
7567}
7568
7569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7570 function prototypes and stuff, but not '\xHH' hex character constants.
7571 These don't provoke an error unfortunately, instead are silently treated
7572 as 'x'. The following induces an error, until -std is added to get
7573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7574 array size at least. It's necessary to write '\x00'==0 to get something
7575 that's true only with -std. */
7576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7577
7578/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7579 inside strings and character constants. */
7580#define FOO(x) 'x'
7581int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7582
7583int test (int i, double x);
7584struct s1 {int (*f) (int a);};
7585struct s2 {int (*f) (double a);};
7586int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7587int argc;
7588char **argv;
7589int
7590main ()
7591{
7592return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7593 ;
7594 return 0;
7595}
7596_ACEOF
7597for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7599do
7600 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007601 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007602 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007603fi
cristy3ed852e2009-09-05 21:47:34 +00007604rm -f core conftest.err conftest.$ac_objext
7605 test "x$ac_cv_prog_cc_c89" != "xno" && break
7606done
7607rm -f conftest.$ac_ext
7608CC=$ac_save_CC
7609
7610fi
7611# AC_CACHE_VAL
7612case "x$ac_cv_prog_cc_c89" in
7613 x)
cristy8b350f62009-11-15 23:12:43 +00007614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007615$as_echo "none needed" >&6; } ;;
7616 xno)
cristy8b350f62009-11-15 23:12:43 +00007617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007618$as_echo "unsupported" >&6; } ;;
7619 *)
7620 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007622$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7623esac
cristy8b350f62009-11-15 23:12:43 +00007624if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007625 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7626else
7627 ac_cv_prog_cc_stdc=no
7628fi
7629
cristy3ed852e2009-09-05 21:47:34 +00007630fi
cristy3ed852e2009-09-05 21:47:34 +00007631 ;;
7632esac
cristy8b350f62009-11-15 23:12:43 +00007633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007634$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007635 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007636 $as_echo_n "(cached) " >&6
7637fi
7638
cristy8b350f62009-11-15 23:12:43 +00007639 case $ac_cv_prog_cc_stdc in #(
7640 no) :
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7642$as_echo "unsupported" >&6; } ;; #(
7643 '') :
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7645$as_echo "none needed" >&6; } ;; #(
7646 *) :
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007648$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7649esac
7650
cristy3ed852e2009-09-05 21:47:34 +00007651ac_ext=c
7652ac_cpp='$CPP $CPPFLAGS'
7653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007657$as_echo_n "checking how to run the C preprocessor... " >&6; }
7658# On Suns, sometimes $CPP names a directory.
7659if test -n "$CPP" && test -d "$CPP"; then
7660 CPP=
7661fi
7662if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007663 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007664 $as_echo_n "(cached) " >&6
7665else
7666 # Double quotes because CPP needs to be expanded
7667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7668 do
7669 ac_preproc_ok=false
7670for ac_c_preproc_warn_flag in '' yes
7671do
7672 # Use a header file that comes with gcc, so configuring glibc
7673 # with a fresh cross-compiler works.
7674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7675 # <limits.h> exists even on freestanding compilers.
7676 # On the NeXT, cc -E runs the code through the compiler's parser,
7677 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007679/* end confdefs.h. */
7680#ifdef __STDC__
7681# include <limits.h>
7682#else
7683# include <assert.h>
7684#endif
7685 Syntax error
7686_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007687if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007688
cristy8b350f62009-11-15 23:12:43 +00007689else
cristy3ed852e2009-09-05 21:47:34 +00007690 # Broken: fails on valid input.
7691continue
7692fi
cristyda16f162011-02-19 23:52:17 +00007693rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007694
7695 # OK, works on sane cases. Now check whether nonexistent headers
7696 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007698/* end confdefs.h. */
7699#include <ac_nonexistent.h>
7700_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007701if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007702 # Broken: success on invalid input.
7703continue
7704else
cristy3ed852e2009-09-05 21:47:34 +00007705 # Passes both tests.
7706ac_preproc_ok=:
7707break
7708fi
cristyda16f162011-02-19 23:52:17 +00007709rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007710
7711done
7712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007713rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007714if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007715 break
7716fi
7717
7718 done
7719 ac_cv_prog_CPP=$CPP
7720
7721fi
7722 CPP=$ac_cv_prog_CPP
7723else
7724 ac_cv_prog_CPP=$CPP
7725fi
cristy8b350f62009-11-15 23:12:43 +00007726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007727$as_echo "$CPP" >&6; }
7728ac_preproc_ok=false
7729for ac_c_preproc_warn_flag in '' yes
7730do
7731 # Use a header file that comes with gcc, so configuring glibc
7732 # with a fresh cross-compiler works.
7733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7734 # <limits.h> exists even on freestanding compilers.
7735 # On the NeXT, cc -E runs the code through the compiler's parser,
7736 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007738/* end confdefs.h. */
7739#ifdef __STDC__
7740# include <limits.h>
7741#else
7742# include <assert.h>
7743#endif
7744 Syntax error
7745_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007746if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007747
cristy8b350f62009-11-15 23:12:43 +00007748else
cristy3ed852e2009-09-05 21:47:34 +00007749 # Broken: fails on valid input.
7750continue
7751fi
cristyda16f162011-02-19 23:52:17 +00007752rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007753
7754 # OK, works on sane cases. Now check whether nonexistent headers
7755 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007757/* end confdefs.h. */
7758#include <ac_nonexistent.h>
7759_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007760if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007761 # Broken: success on invalid input.
7762continue
7763else
cristy3ed852e2009-09-05 21:47:34 +00007764 # Passes both tests.
7765ac_preproc_ok=:
7766break
7767fi
cristyda16f162011-02-19 23:52:17 +00007768rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007769
7770done
7771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007772rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007773if $ac_preproc_ok; then :
7774
cristy3ed852e2009-09-05 21:47:34 +00007775else
cristy8b350f62009-11-15 23:12:43 +00007776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007778as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7779See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007780fi
7781
7782ac_ext=c
7783ac_cpp='$CPP $CPPFLAGS'
7784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
cristy73bd4a52010-10-05 11:24:23 +00007788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7789$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007790if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007791 $as_echo_n "(cached) " >&6
7792else
7793 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7794 for ac_i in 1 2 3 4 5 6 7; do
7795 ac_script="$ac_script$as_nl$ac_script"
7796 done
7797 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7798 { ac_script=; unset ac_script;}
7799 if test -z "$SED"; then
7800 ac_path_SED_found=false
7801 # Loop through the user's path and test for each of PROGNAME-LIST
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_prog in sed gsed; do
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007810 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007811# Check for GNU ac_path_SED and select it if it is found.
7812 # Check for GNU $ac_path_SED
7813case `"$ac_path_SED" --version 2>&1` in
7814*GNU*)
7815 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7816*)
7817 ac_count=0
7818 $as_echo_n 0123456789 >"conftest.in"
7819 while :
7820 do
7821 cat "conftest.in" "conftest.in" >"conftest.tmp"
7822 mv "conftest.tmp" "conftest.in"
7823 cp "conftest.in" "conftest.nl"
7824 $as_echo '' >> "conftest.nl"
7825 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7827 as_fn_arith $ac_count + 1 && ac_count=$as_val
7828 if test $ac_count -gt ${ac_path_SED_max-0}; then
7829 # Best one so far, save it but keep looking for a better one
7830 ac_cv_path_SED="$ac_path_SED"
7831 ac_path_SED_max=$ac_count
7832 fi
7833 # 10*(2^10) chars as input seems more than enough
7834 test $ac_count -gt 10 && break
7835 done
7836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7837esac
7838
7839 $ac_path_SED_found && break 3
7840 done
7841 done
7842 done
7843IFS=$as_save_IFS
7844 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007845 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007846 fi
7847else
7848 ac_cv_path_SED=$SED
7849fi
7850
7851fi
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7853$as_echo "$ac_cv_path_SED" >&6; }
7854 SED="$ac_cv_path_SED"
7855 rm -f conftest.sed
7856
7857test -z "$SED" && SED=sed
7858Xsed="$SED -e 1s/^X//"
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7871$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007872if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007873 $as_echo_n "(cached) " >&6
7874else
7875 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7876 then ac_cv_path_FGREP="$GREP -F"
7877 else
7878 if test -z "$FGREP"; then
7879 ac_path_FGREP_found=false
7880 # Loop through the user's path and test for each of PROGNAME-LIST
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_prog in fgrep; do
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007889 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007890# Check for GNU ac_path_FGREP and select it if it is found.
7891 # Check for GNU $ac_path_FGREP
7892case `"$ac_path_FGREP" --version 2>&1` in
7893*GNU*)
7894 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7895*)
7896 ac_count=0
7897 $as_echo_n 0123456789 >"conftest.in"
7898 while :
7899 do
7900 cat "conftest.in" "conftest.in" >"conftest.tmp"
7901 mv "conftest.tmp" "conftest.in"
7902 cp "conftest.in" "conftest.nl"
7903 $as_echo 'FGREP' >> "conftest.nl"
7904 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7906 as_fn_arith $ac_count + 1 && ac_count=$as_val
7907 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7908 # Best one so far, save it but keep looking for a better one
7909 ac_cv_path_FGREP="$ac_path_FGREP"
7910 ac_path_FGREP_max=$ac_count
7911 fi
7912 # 10*(2^10) chars as input seems more than enough
7913 test $ac_count -gt 10 && break
7914 done
7915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7916esac
7917
7918 $ac_path_FGREP_found && break 3
7919 done
7920 done
7921 done
7922IFS=$as_save_IFS
7923 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007924 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007925 fi
7926else
7927 ac_cv_path_FGREP=$FGREP
7928fi
7929
7930 fi
7931fi
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7933$as_echo "$ac_cv_path_FGREP" >&6; }
7934 FGREP="$ac_cv_path_FGREP"
7935
7936
7937test -z "$GREP" && GREP=grep
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
cristy0c60a692010-11-04 01:09:47 +00007955ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7956ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7957ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7958
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7960$as_echo_n "checking how to print strings... " >&6; }
7961# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007962if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007963 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7964 ECHO='print -r --'
7965elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7966 ECHO='printf %s\n'
7967else
7968 # Use this function as a fallback that always works.
7969 func_fallback_echo ()
7970 {
7971 eval 'cat <<_LTECHO_EOF
7972$1
7973_LTECHO_EOF'
7974 }
7975 ECHO='func_fallback_echo'
7976fi
7977
7978# func_echo_all arg...
7979# Invoke $ECHO with all args, space-separated.
7980func_echo_all ()
7981{
7982 $ECHO ""
7983}
7984
7985case "$ECHO" in
7986 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7987$as_echo "printf" >&6; } ;;
7988 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7989$as_echo "print -r" >&6; } ;;
7990 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7991$as_echo "cat" >&6; } ;;
7992esac
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
cristy73bd4a52010-10-05 11:24:23 +00008007
8008
8009# Check whether --with-gnu-ld was given.
8010if test "${with_gnu_ld+set}" = set; then :
8011 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8012else
8013 with_gnu_ld=no
8014fi
8015
8016ac_prog=ld
8017if test "$GCC" = yes; then
8018 # Check if gcc -print-prog-name=ld gives a path.
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8020$as_echo_n "checking for ld used by $CC... " >&6; }
8021 case $host in
8022 *-*-mingw*)
8023 # gcc leaves a trailing carriage return which upsets mingw
8024 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8025 *)
8026 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8027 esac
8028 case $ac_prog in
8029 # Accept absolute paths.
8030 [\\/]* | ?:[\\/]*)
8031 re_direlt='/[^/][^/]*/\.\./'
8032 # Canonicalize the pathname of ld
8033 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8034 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8035 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8036 done
8037 test -z "$LD" && LD="$ac_prog"
8038 ;;
8039 "")
8040 # If it fails, then pretend we aren't using GCC.
8041 ac_prog=ld
8042 ;;
8043 *)
8044 # If it is relative, then search for the first ld in PATH.
8045 with_gnu_ld=unknown
8046 ;;
8047 esac
8048elif test "$with_gnu_ld" = yes; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8050$as_echo_n "checking for GNU ld... " >&6; }
8051else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8053$as_echo_n "checking for non-GNU ld... " >&6; }
8054fi
cristyda16f162011-02-19 23:52:17 +00008055if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008056 $as_echo_n "(cached) " >&6
8057else
8058 if test -z "$LD"; then
8059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8060 for ac_dir in $PATH; do
8061 IFS="$lt_save_ifs"
8062 test -z "$ac_dir" && ac_dir=.
8063 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8064 lt_cv_path_LD="$ac_dir/$ac_prog"
8065 # Check to see if the program is GNU ld. I'd rather use --version,
8066 # but apparently some variants of GNU ld only accept -v.
8067 # Break only if it was the GNU/non-GNU ld that we prefer.
8068 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8069 *GNU* | *'with BFD'*)
8070 test "$with_gnu_ld" != no && break
8071 ;;
8072 *)
8073 test "$with_gnu_ld" != yes && break
8074 ;;
8075 esac
8076 fi
8077 done
8078 IFS="$lt_save_ifs"
8079else
8080 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8081fi
8082fi
8083
8084LD="$lt_cv_path_LD"
8085if test -n "$LD"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8087$as_echo "$LD" >&6; }
8088else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090$as_echo "no" >&6; }
8091fi
cristy98dddb52010-11-04 00:30:15 +00008092test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8094$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008095if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008096 $as_echo_n "(cached) " >&6
8097else
8098 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8099case `$LD -v 2>&1 </dev/null` in
8100*GNU* | *'with BFD'*)
8101 lt_cv_prog_gnu_ld=yes
8102 ;;
8103*)
8104 lt_cv_prog_gnu_ld=no
8105 ;;
8106esac
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8109$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8110with_gnu_ld=$lt_cv_prog_gnu_ld
8111
8112
8113
8114
8115
8116
8117
8118
8119
cristy3ed852e2009-09-05 21:47:34 +00008120
cristy837d6dc2010-02-27 01:16:57 +00008121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8122$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008123if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008124 $as_echo_n "(cached) " >&6
8125else
8126 ac_cv_prog_cc_c99=no
8127ac_save_CC=$CC
8128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h. */
8130#include <stdarg.h>
8131#include <stdbool.h>
8132#include <stdlib.h>
8133#include <wchar.h>
8134#include <stdio.h>
8135
8136// Check varargs macros. These examples are taken from C99 6.10.3.5.
8137#define debug(...) fprintf (stderr, __VA_ARGS__)
8138#define showlist(...) puts (#__VA_ARGS__)
8139#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8140static void
8141test_varargs_macros (void)
8142{
8143 int x = 1234;
8144 int y = 5678;
8145 debug ("Flag");
8146 debug ("X = %d\n", x);
8147 showlist (The first, second, and third items.);
8148 report (x>y, "x is %d but y is %d", x, y);
8149}
8150
8151// Check long long types.
8152#define BIG64 18446744073709551615ull
8153#define BIG32 4294967295ul
8154#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8155#if !BIG_OK
8156 your preprocessor is broken;
8157#endif
8158#if BIG_OK
8159#else
8160 your preprocessor is broken;
8161#endif
8162static long long int bignum = -9223372036854775807LL;
8163static unsigned long long int ubignum = BIG64;
8164
8165struct incomplete_array
8166{
8167 int datasize;
8168 double data[];
8169};
8170
8171struct named_init {
8172 int number;
8173 const wchar_t *name;
8174 double average;
8175};
8176
8177typedef const char *ccp;
8178
8179static inline int
8180test_restrict (ccp restrict text)
8181{
8182 // See if C++-style comments work.
8183 // Iterate through items via the restricted pointer.
8184 // Also check for declarations in for loops.
8185 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8186 continue;
8187 return 0;
8188}
8189
8190// Check varargs and va_copy.
8191static void
8192test_varargs (const char *format, ...)
8193{
8194 va_list args;
8195 va_start (args, format);
8196 va_list args_copy;
8197 va_copy (args_copy, args);
8198
8199 const char *str;
8200 int number;
8201 float fnumber;
8202
8203 while (*format)
8204 {
8205 switch (*format++)
8206 {
8207 case 's': // string
8208 str = va_arg (args_copy, const char *);
8209 break;
8210 case 'd': // int
8211 number = va_arg (args_copy, int);
8212 break;
8213 case 'f': // float
8214 fnumber = va_arg (args_copy, double);
8215 break;
8216 default:
8217 break;
8218 }
8219 }
8220 va_end (args_copy);
8221 va_end (args);
8222}
8223
8224int
8225main ()
8226{
8227
8228 // Check bool.
8229 _Bool success = false;
8230
8231 // Check restrict.
8232 if (test_restrict ("String literal") == 0)
8233 success = true;
8234 char *restrict newvar = "Another string";
8235
8236 // Check varargs.
8237 test_varargs ("s, d' f .", "string", 65, 34.234);
8238 test_varargs_macros ();
8239
8240 // Check flexible array members.
8241 struct incomplete_array *ia =
8242 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8243 ia->datasize = 10;
8244 for (int i = 0; i < ia->datasize; ++i)
8245 ia->data[i] = i * 1.234;
8246
8247 // Check named initializers.
8248 struct named_init ni = {
8249 .number = 34,
8250 .name = L"Test wide string",
8251 .average = 543.34343,
8252 };
8253
8254 ni.number = 58;
8255
8256 int dynamic_array[ni.number];
8257 dynamic_array[ni.number - 1] = 543;
8258
8259 // work around unused variable warnings
8260 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8261 || dynamic_array[ni.number - 1] != 543);
8262
8263 ;
8264 return 0;
8265}
8266_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008267for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008268do
8269 CC="$ac_save_CC $ac_arg"
8270 if ac_fn_c_try_compile "$LINENO"; then :
8271 ac_cv_prog_cc_c99=$ac_arg
8272fi
8273rm -f core conftest.err conftest.$ac_objext
8274 test "x$ac_cv_prog_cc_c99" != "xno" && break
8275done
8276rm -f conftest.$ac_ext
8277CC=$ac_save_CC
8278
8279fi
8280# AC_CACHE_VAL
8281case "x$ac_cv_prog_cc_c99" in
8282 x)
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8284$as_echo "none needed" >&6; } ;;
8285 xno)
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8287$as_echo "unsupported" >&6; } ;;
8288 *)
8289 CC="$CC $ac_cv_prog_cc_c99"
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8291$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8292esac
8293if test "x$ac_cv_prog_cc_c99" != xno; then :
8294
8295fi
8296
8297
cristy73bd4a52010-10-05 11:24:23 +00008298
cristy17491be2014-06-24 01:10:53 +00008299ac_ext=c
8300ac_cpp='$CPP $CPPFLAGS'
8301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8303ac_compiler_gnu=$ac_cv_c_compiler_gnu
8304
cristy73bd4a52010-10-05 11:24:23 +00008305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8306$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008307if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008308 $as_echo_n "(cached) " >&6
8309else
8310 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008311ac_save_CFLAGS="$CFLAGS"
8312for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
cristy73bd4a52010-10-05 11:24:23 +00008313do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h. */
8316
8317int
8318main ()
8319{
cristy24fc1fe2010-10-23 21:13:01 +00008320
cristy73bd4a52010-10-05 11:24:23 +00008321 ;
8322 return 0;
8323}
8324_ACEOF
8325if ac_fn_c_try_compile "$LINENO"; then :
8326 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8327fi
8328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329done
cristy17491be2014-06-24 01:10:53 +00008330CFLAGS="$ac_save_CFLAGS"
8331
8332fi
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8334$as_echo "$ac_cv_cflags_warn_all" >&6; }
8335
8336
8337case ".$ac_cv_cflags_warn_all" in
8338 .ok|.ok,*) ;;
8339 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008340 *)
8341if ${CFLAGS+:} false; then :
8342
8343 case " $CFLAGS " in #(
8344 *" $ac_cv_cflags_warn_all "*) :
8345 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008346 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8347 ac_status=$?
8348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008349 test $ac_status = 0; } ;; #(
8350 *) :
8351
8352 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8353 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8354 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008355 ac_status=$?
8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8357 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008358 ;;
8359esac
8360
cristy17491be2014-06-24 01:10:53 +00008361else
cristy146497a2015-05-17 22:46:16 +00008362
8363 CFLAGS=$ac_cv_cflags_warn_all
8364 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8365 (: CFLAGS="$CFLAGS") 2>&5
8366 ac_status=$?
8367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8368 test $ac_status = 0; }
8369
cristy17491be2014-06-24 01:10:53 +00008370fi
8371 ;;
8372esac
8373
8374ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008375ac_cpp='$CPP $CPPFLAGS'
8376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379
8380
cristya0b81c32010-01-22 02:54:33 +00008381
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8383$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8384set x ${MAKE-make}
8385ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008386if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008387 $as_echo_n "(cached) " >&6
8388else
8389 cat >conftest.make <<\_ACEOF
8390SHELL = /bin/sh
8391all:
8392 @echo '@@@%%%=$(MAKE)=@@@%%%'
8393_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008394# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008395case `${MAKE-make} -f conftest.make 2>/dev/null` in
8396 *@@@%%%=?*=@@@%%%*)
8397 eval ac_cv_prog_make_${ac_make}_set=yes;;
8398 *)
8399 eval ac_cv_prog_make_${ac_make}_set=no;;
8400esac
8401rm -f conftest.make
8402fi
8403if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405$as_echo "yes" >&6; }
8406 SET_MAKE=
8407else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
8410 SET_MAKE="MAKE=${MAKE-make}"
8411fi
8412
cristy8b350f62009-11-15 23:12:43 +00008413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008414$as_echo_n "checking whether ln -s works... " >&6; }
8415LN_S=$as_ln_s
8416if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008418$as_echo "yes" >&6; }
8419else
cristy8b350f62009-11-15 23:12:43 +00008420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008421$as_echo "no, using $LN_S" >&6; }
8422fi
8423
cristy8d0ff762013-03-10 20:33:28 +00008424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8425$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8426if ${ac_cv_path_SED+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428else
8429 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8430 for ac_i in 1 2 3 4 5 6 7; do
8431 ac_script="$ac_script$as_nl$ac_script"
8432 done
8433 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8434 { ac_script=; unset ac_script;}
8435 if test -z "$SED"; then
8436 ac_path_SED_found=false
8437 # Loop through the user's path and test for each of PROGNAME-LIST
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_prog in sed gsed; do
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8446 as_fn_executable_p "$ac_path_SED" || continue
8447# Check for GNU ac_path_SED and select it if it is found.
8448 # Check for GNU $ac_path_SED
8449case `"$ac_path_SED" --version 2>&1` in
8450*GNU*)
8451 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8452*)
8453 ac_count=0
8454 $as_echo_n 0123456789 >"conftest.in"
8455 while :
8456 do
8457 cat "conftest.in" "conftest.in" >"conftest.tmp"
8458 mv "conftest.tmp" "conftest.in"
8459 cp "conftest.in" "conftest.nl"
8460 $as_echo '' >> "conftest.nl"
8461 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8463 as_fn_arith $ac_count + 1 && ac_count=$as_val
8464 if test $ac_count -gt ${ac_path_SED_max-0}; then
8465 # Best one so far, save it but keep looking for a better one
8466 ac_cv_path_SED="$ac_path_SED"
8467 ac_path_SED_max=$ac_count
8468 fi
8469 # 10*(2^10) chars as input seems more than enough
8470 test $ac_count -gt 10 && break
8471 done
8472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8473esac
8474
8475 $ac_path_SED_found && break 3
8476 done
8477 done
8478 done
8479IFS=$as_save_IFS
8480 if test -z "$ac_cv_path_SED"; then
8481 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8482 fi
8483else
8484 ac_cv_path_SED=$SED
8485fi
8486
8487fi
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8489$as_echo "$ac_cv_path_SED" >&6; }
8490 SED="$ac_cv_path_SED"
8491 rm -f conftest.sed
8492
cristybc556452012-08-17 19:44:03 +00008493for ac_prog in gawk mawk nawk awk
8494do
8495 # Extract the first word of "$ac_prog", so it can be a program name with args.
8496set dummy $ac_prog; ac_word=$2
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8498$as_echo_n "checking for $ac_word... " >&6; }
8499if ${ac_cv_prog_AWK+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501else
8502 if test -n "$AWK"; then
8503 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8504else
8505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506for as_dir in $PATH
8507do
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512 ac_cv_prog_AWK="$ac_prog"
8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8515 fi
8516done
8517 done
8518IFS=$as_save_IFS
8519
8520fi
8521fi
8522AWK=$ac_cv_prog_AWK
8523if test -n "$AWK"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8525$as_echo "$AWK" >&6; }
8526else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
8529fi
8530
8531
8532 test -n "$AWK" && break
8533done
8534
cristy73bd4a52010-10-05 11:24:23 +00008535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8536$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8537
8538# Check whether --with-dmalloc was given.
8539if test "${with_dmalloc+set}" = set; then :
8540 withval=$with_dmalloc; if test "$withval" = yes; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8542$as_echo "yes" >&6; }
8543
8544$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8545
8546 LIBS="$LIBS -ldmalloc"
8547 LDFLAGS="$LDFLAGS -g"
8548else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550$as_echo "no" >&6; }
8551fi
8552else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554$as_echo "no" >&6; }
8555fi
8556
8557
8558
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8560$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008561if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008562 $as_echo_n "(cached) " >&6
8563else
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h. */
8566#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008567 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008568 static void
8569 foo(void) {
8570 exit(1);
8571 }
8572
8573int
8574main ()
8575{
8576
8577 ;
8578 return 0;
8579}
8580_ACEOF
8581if ac_fn_c_try_compile "$LINENO"; then :
8582 ax_cv___attribute__=yes
8583else
8584 ax_cv___attribute__=no
8585
8586fi
8587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588
8589fi
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8591$as_echo "$ax_cv___attribute__" >&6; }
8592 if test "$ax_cv___attribute__" = "yes"; then
8593
8594$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8595
8596 fi
8597
cristy146497a2015-05-17 22:46:16 +00008598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8599$as_echo_n "checking for C compiler vendor... " >&6; }
8600if ${ax_cv_c_compiler_vendor+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602else
8603 # note: don't check for gcc first since some other compilers define __GNUC__
8604 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8605 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8606 pathscale: __PATHCC__,__PATHSCALE__
8607 clang: __clang__
8608 cray: _CRAYC
8609 fujitsu: __FUJITSU
8610 gnu: __GNUC__
8611 sun: __SUNPRO_C,__SUNPRO_CC
8612 hp: __HP_cc,__HP_aCC
8613 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8614 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8615 comeau: __COMO__
8616 kai: __KCC
8617 lcc: __LCC__
8618 sgi: __sgi,sgi
8619 microsoft: _MSC_VER
8620 metrowerks: __MWERKS__
8621 watcom: __WATCOMC__
8622 portland: __PGI
8623 tcc: __TINYC__
8624 unknown: UNKNOWN"
8625 for ventest in $vendors; do
8626 case $ventest in
8627 *:) vendor=$ventest; continue ;;
8628 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8629 esac
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h. */
8632
8633int
8634main ()
8635{
8636
8637 #if !($vencpp)
8638 thisisanerror;
8639 #endif
8640
8641 ;
8642 return 0;
8643}
8644_ACEOF
8645if ac_fn_c_try_compile "$LINENO"; then :
8646 break
8647fi
8648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 done
8650 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8651
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8654$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8655
8656
cristy73bd4a52010-10-05 11:24:23 +00008657
8658
cristya0459972013-11-03 18:09:35 +00008659
8660
cristy17491be2014-06-24 01:10:53 +00008661
cristya0459972013-11-03 18:09:35 +00008662# Check whether --with-gcc-arch was given.
8663if test "${with_gcc_arch+set}" = set; then :
8664 withval=$with_gcc_arch; ax_gcc_arch=$withval
8665else
cristy17491be2014-06-24 01:10:53 +00008666 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008667fi
8668
8669
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8671$as_echo_n "checking for gcc architecture flag... " >&6; }
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8673$as_echo "" >&6; }
8674if ${ax_cv_gcc_archflag+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676else
8677
8678ax_cv_gcc_archflag="unknown"
8679
8680if test "$GCC" = yes; then
8681
8682if test "x$ax_gcc_arch" = xyes; then
8683ax_gcc_arch=""
8684if test "$cross_compiling" = no; then
8685case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008686 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008687
8688ac_ext=c
8689ac_cpp='$CPP $CPPFLAGS'
8690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692ac_compiler_gnu=$ac_cv_c_compiler_gnu
8693
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8695$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8696if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698else
8699 if test "$cross_compiling" = yes; then :
8700 ax_cv_gcc_x86_cpuid_0=unknown
8701else
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703/* end confdefs.h. */
8704#include <stdio.h>
8705int
8706main ()
8707{
8708
8709 int op = 0, eax, ebx, ecx, edx;
8710 FILE *f;
8711 __asm__("cpuid"
8712 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8713 : "a" (op));
8714 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8715 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8716 fclose(f);
8717 return 0;
8718
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723if ac_fn_c_try_run "$LINENO"; then :
8724 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8725else
8726 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8727fi
8728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8729 conftest.$ac_objext conftest.beam conftest.$ac_ext
8730fi
8731
8732fi
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8734$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8735ac_ext=c
8736ac_cpp='$CPP $CPPFLAGS'
8737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739ac_compiler_gnu=$ac_cv_c_compiler_gnu
8740
8741
8742
8743ac_ext=c
8744ac_cpp='$CPP $CPPFLAGS'
8745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8747ac_compiler_gnu=$ac_cv_c_compiler_gnu
8748
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8750$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8751if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753else
8754 if test "$cross_compiling" = yes; then :
8755 ax_cv_gcc_x86_cpuid_1=unknown
8756else
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758/* end confdefs.h. */
8759#include <stdio.h>
8760int
8761main ()
8762{
8763
8764 int op = 1, eax, ebx, ecx, edx;
8765 FILE *f;
8766 __asm__("cpuid"
8767 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8768 : "a" (op));
8769 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8770 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8771 fclose(f);
8772 return 0;
8773
8774 ;
8775 return 0;
8776}
8777_ACEOF
8778if ac_fn_c_try_run "$LINENO"; then :
8779 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8780else
8781 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8782fi
8783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8784 conftest.$ac_objext conftest.beam conftest.$ac_ext
8785fi
8786
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8789$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8790ac_ext=c
8791ac_cpp='$CPP $CPPFLAGS'
8792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8794ac_compiler_gnu=$ac_cv_c_compiler_gnu
8795
8796
8797 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008798 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008799 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008800 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8801 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8802 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8803 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8804 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8805 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8806 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8807 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008808 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008809 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8810 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8811 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8812 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8813 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8814 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8815 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8816 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8817 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8818 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8819 # fallback
8820 *5??:*:*:*) ax_gcc_arch=pentium ;;
8821 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008822 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008823 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008824 esac ;;
cristy146497a2015-05-17 22:46:16 +00008825 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008826 case $ax_cv_gcc_x86_cpuid_1 in
8827 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008828 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8829 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008830 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8831 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008832 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8833 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8834 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8835 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8836 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8837 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8838 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8839 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8840 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8841 # fallback
8842 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8843 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8844 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8845 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8846 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8847 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8848 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8849 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00008850 esac ;;
cristy146497a2015-05-17 22:46:16 +00008851 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00008852 case $ax_cv_gcc_x86_cpuid_1 in
8853 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00008854 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8855 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00008856 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00008857 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00008858 esac ;;
8859 esac
8860 if test x"$ax_gcc_arch" = x; then # fallback
8861 case $host_cpu in
8862 i586*) ax_gcc_arch=pentium ;;
8863 i686*) ax_gcc_arch=pentiumpro ;;
8864 esac
8865 fi
8866 ;;
8867
8868 sparc*)
8869 # Extract the first word of "prtdiag", so it can be a program name with args.
8870set dummy prtdiag; ac_word=$2
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872$as_echo_n "checking for $ac_word... " >&6; }
8873if ${ac_cv_path_PRTDIAG+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875else
8876 case $PRTDIAG in
8877 [\\/]* | ?:[\\/]*)
8878 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8879 ;;
8880 *)
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8883for as_dir in $as_dummy
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893done
8894 done
8895IFS=$as_save_IFS
8896
8897 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8898 ;;
8899esac
8900fi
8901PRTDIAG=$ac_cv_path_PRTDIAG
8902if test -n "$PRTDIAG"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8904$as_echo "$PRTDIAG" >&6; }
8905else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907$as_echo "no" >&6; }
8908fi
8909
8910
8911 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
cristy17491be2014-06-24 01:10:53 +00008912 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008913 case $cputype in
8914 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8915 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8916 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8917 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8918 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8919 *cypress*) ax_gcc_arch=cypress ;;
8920 esac ;;
8921
8922 alphaev5) ax_gcc_arch=ev5 ;;
8923 alphaev56) ax_gcc_arch=ev56 ;;
8924 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8925 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8926 alphaev6) ax_gcc_arch=ev6 ;;
8927 alphaev67) ax_gcc_arch=ev67 ;;
8928 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8929 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8930 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8931 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8932
8933 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008934 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`
8935 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008936 case $cputype in
8937 *750*) ax_gcc_arch="750 G3" ;;
8938 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8939 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8940 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8941 *970*) ax_gcc_arch="970 G5 power4";;
8942 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8943 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8944 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8945 *) ax_gcc_arch=$cputype ;;
8946 esac
8947 ax_gcc_arch="$ax_gcc_arch powerpc"
8948 ;;
8949esac
8950fi # not cross-compiling
8951fi # guess arch
8952
8953if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00008954if test "xyes" = xyes; then # if we require portable code
8955 flag_prefixes="-mtune="
8956 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
8957 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8958 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8959 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
8960else
8961 flag_prefixes="-march= -mcpu= -m"
8962fi
8963for flag_prefix in $flag_prefixes; do
8964 for arch in $ax_gcc_arch; do
8965 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00008966 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8968$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8969if eval \${$as_CACHEVAR+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971else
8972
8973 ax_check_save_flags=$CFLAGS
8974 CFLAGS="$CFLAGS $flag"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h. */
8977
8978int
8979main ()
8980{
8981
8982 ;
8983 return 0;
8984}
8985_ACEOF
8986if ac_fn_c_try_compile "$LINENO"; then :
8987 eval "$as_CACHEVAR=yes"
8988else
8989 eval "$as_CACHEVAR=no"
8990fi
8991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 CFLAGS=$ax_check_save_flags
8993fi
8994eval ac_res=\$$as_CACHEVAR
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8996$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00008997if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8998 if test "x$ax_cv_c_compiler_vendor" = xclang; then
8999 if test "xyes" = xyes; then
9000 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9001 fi
9002 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009003else
9004 :
9005fi
9006
9007 done
9008 test "x$ax_cv_gcc_archflag" = xunknown || break
9009done
9010fi
9011
9012fi # $GCC=yes
9013
9014fi
9015
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9017$as_echo_n "checking for gcc architecture flag... " >&6; }
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9019$as_echo "$ax_cv_gcc_archflag" >&6; }
9020if test "x$ax_cv_gcc_archflag" = xunknown; then
9021 :
9022else
9023 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9024fi
9025
9026
9027
cristy146497a2015-05-17 22:46:16 +00009028
9029
9030
9031
9032
cristy73bd4a52010-10-05 11:24:23 +00009033if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9034 if test -n "$ac_tool_prefix"; then
9035 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9036set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009039if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009040 $as_echo_n "(cached) " >&6
9041else
9042 case $PKG_CONFIG in
9043 [\\/]* | ?:[\\/]*)
9044 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9045 ;;
9046 *)
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048for as_dir in $PATH
9049do
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009054 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 break 2
9057 fi
9058done
9059 done
9060IFS=$as_save_IFS
9061
9062 ;;
9063esac
9064fi
9065PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9066if test -n "$PKG_CONFIG"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9068$as_echo "$PKG_CONFIG" >&6; }
9069else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071$as_echo "no" >&6; }
9072fi
9073
9074
9075fi
9076if test -z "$ac_cv_path_PKG_CONFIG"; then
9077 ac_pt_PKG_CONFIG=$PKG_CONFIG
9078 # Extract the first word of "pkg-config", so it can be a program name with args.
9079set dummy pkg-config; ac_word=$2
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009082if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009083 $as_echo_n "(cached) " >&6
9084else
9085 case $ac_pt_PKG_CONFIG in
9086 [\\/]* | ?:[\\/]*)
9087 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9088 ;;
9089 *)
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in $PATH
9092do
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009097 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9100 fi
9101done
9102 done
9103IFS=$as_save_IFS
9104
9105 ;;
9106esac
9107fi
9108ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9109if test -n "$ac_pt_PKG_CONFIG"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9111$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9112else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114$as_echo "no" >&6; }
9115fi
9116
9117 if test "x$ac_pt_PKG_CONFIG" = x; then
9118 PKG_CONFIG=""
9119 else
9120 case $cross_compiling:$ac_tool_warned in
9121yes:)
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124ac_tool_warned=yes ;;
9125esac
9126 PKG_CONFIG=$ac_pt_PKG_CONFIG
9127 fi
9128else
9129 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9130fi
9131
9132fi
9133if test -n "$PKG_CONFIG"; then
9134 _pkg_min_version=0.9.0
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9136$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9137 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9139$as_echo "yes" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
9143 PKG_CONFIG=""
9144 fi
cristy73bd4a52010-10-05 11:24:23 +00009145fi
cristy3ed852e2009-09-05 21:47:34 +00009146
cristy9af1cbf2014-12-28 22:03:09 +00009147
9148
cristyd95b7a52013-10-23 13:12:53 +00009149# Test for 64-bit build.
9150# The cast to long int works around a bug in the HP C Compiler
9151# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9152# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9153# This bug is HP SR number 8606223364.
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9155$as_echo_n "checking size of size_t... " >&6; }
9156if ${ac_cv_sizeof_size_t+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158else
9159 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9160
9161else
9162 if test "$ac_cv_type_size_t" = yes; then
9163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9165as_fn_error 77 "cannot compute sizeof (size_t)
9166See \`config.log' for more details" "$LINENO" 5; }
9167 else
9168 ac_cv_sizeof_size_t=0
9169 fi
9170fi
9171
9172fi
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9174$as_echo "$ac_cv_sizeof_size_t" >&6; }
9175
9176
9177
9178cat >>confdefs.h <<_ACEOF
9179#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9180_ACEOF
9181
9182
9183
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9185$as_echo_n "checking for C compiler vendor... " >&6; }
9186if ${ax_cv_c_compiler_vendor+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188else
cristy146497a2015-05-17 22:46:16 +00009189 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009190 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9191 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9192 pathscale: __PATHCC__,__PATHSCALE__
9193 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009194 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009195 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009196 gnu: __GNUC__
9197 sun: __SUNPRO_C,__SUNPRO_CC
9198 hp: __HP_cc,__HP_aCC
9199 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009200 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009201 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009202 kai: __KCC
9203 lcc: __LCC__
9204 sgi: __sgi,sgi
9205 microsoft: _MSC_VER
9206 metrowerks: __MWERKS__
9207 watcom: __WATCOMC__
9208 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009209 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009210 unknown: UNKNOWN"
9211 for ventest in $vendors; do
9212 case $ventest in
9213 *:) vendor=$ventest; continue ;;
9214 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9215 esac
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h. */
9218
9219int
9220main ()
9221{
9222
9223 #if !($vencpp)
9224 thisisanerror;
9225 #endif
9226
9227 ;
9228 return 0;
9229}
9230_ACEOF
9231if ac_fn_c_try_compile "$LINENO"; then :
9232 break
9233fi
9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 done
9236 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9237
9238fi
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9240$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9241
cristyd95b7a52013-10-23 13:12:53 +00009242# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9243# compiler.
9244if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009245 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009246ac_cpp='$CPP $CPPFLAGS'
9247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9249ac_compiler_gnu=$ac_cv_c_compiler_gnu
9250
cristy17491be2014-06-24 01:10:53 +00009251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9252$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9253if ${ac_cv_cflags_warn_all+:} false; then :
9254 $as_echo_n "(cached) " >&6
9255else
9256 ac_cv_cflags_warn_all="no, unknown"
9257ac_save_CFLAGS="$CFLAGS"
9258for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
cristyd95b7a52013-10-23 13:12:53 +00009259do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261/* end confdefs.h. */
9262
9263int
9264main ()
9265{
9266
9267 ;
9268 return 0;
9269}
9270_ACEOF
9271if ac_fn_c_try_compile "$LINENO"; then :
9272 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9273fi
9274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9275done
cristy17491be2014-06-24 01:10:53 +00009276CFLAGS="$ac_save_CFLAGS"
9277
9278fi
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9280$as_echo "$ac_cv_cflags_warn_all" >&6; }
9281
9282
9283case ".$ac_cv_cflags_warn_all" in
9284 .ok|.ok,*) ;;
9285 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009286 *)
9287if ${CFLAGS+:} false; then :
9288
9289 case " $CFLAGS " in #(
9290 *" $ac_cv_cflags_warn_all "*) :
9291 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009292 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9293 ac_status=$?
9294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009295 test $ac_status = 0; } ;; #(
9296 *) :
9297
9298 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9299 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9300 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009301 ac_status=$?
9302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9303 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009304 ;;
9305esac
9306
cristy17491be2014-06-24 01:10:53 +00009307else
cristy146497a2015-05-17 22:46:16 +00009308
9309 CFLAGS=$ac_cv_cflags_warn_all
9310 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9311 (: CFLAGS="$CFLAGS") 2>&5
9312 ac_status=$?
9313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9314 test $ac_status = 0; }
9315
cristy17491be2014-06-24 01:10:53 +00009316fi
9317 ;;
9318esac
9319
9320ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009321ac_cpp='$CPP $CPPFLAGS'
9322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9324ac_compiler_gnu=$ac_cv_c_compiler_gnu
9325
9326
9327fi
cristyd95b7a52013-10-23 13:12:53 +00009328
9329if test "x$GCC" = "xyes"; then
9330 CFLAGS="$CFLAGS -fexceptions"
9331 touch local.exp
9332else
9333 cat > local.exp <<EOF
9334set CC_FOR_TARGET "$CC"
9335EOF
9336fi
9337
cristy9b86f202012-11-28 21:55:35 +00009338# Check for linker script support
9339
9340 # Check whether --enable-ld-version-script was given.
9341if test "${enable_ld_version_script+set}" = set; then :
9342 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9343fi
9344
9345 if test -z "$have_ld_version_script"; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9347$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9348 save_LDFLAGS="$LDFLAGS"
9349 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9350 cat > conftest.map <<EOF
9351foo
9352EOF
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h. */
9355
9356int
9357main ()
9358{
9359
9360 ;
9361 return 0;
9362}
9363_ACEOF
9364if ac_fn_c_try_link "$LINENO"; then :
9365 accepts_syntax_errors=yes
9366else
9367 accepts_syntax_errors=no
9368fi
9369rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 if test "$accepts_syntax_errors" = no; then
9372 cat > conftest.map <<EOF
9373VERS_1 {
9374 global: sym;
9375};
9376
9377VERS_2 {
9378 global: sym;
9379} VERS_1;
9380EOF
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h. */
9383
9384int
9385main ()
9386{
9387
9388 ;
9389 return 0;
9390}
9391_ACEOF
9392if ac_fn_c_try_link "$LINENO"; then :
9393 have_ld_version_script=yes
9394else
9395 have_ld_version_script=no
9396fi
9397rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 else
9400 have_ld_version_script=no
9401 fi
9402 rm -f conftest.map
9403 LDFLAGS="$save_LDFLAGS"
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9405$as_echo "$have_ld_version_script" >&6; }
9406 fi
9407 if test "$have_ld_version_script" = "yes"; then
9408 HAVE_LD_VERSION_SCRIPT_TRUE=
9409 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9410else
9411 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9412 HAVE_LD_VERSION_SCRIPT_FALSE=
9413fi
9414
9415
9416
cristy3ed852e2009-09-05 21:47:34 +00009417#
cristy3ed852e2009-09-05 21:47:34 +00009418# Enable run-time checking.
9419#
9420# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009421if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009422 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9423else
9424 enable_bounds_checking='no'
9425fi
9426
9427
9428if test "$enable_bounds_checking" = yes; then
9429
cristy8b350f62009-11-15 23:12:43 +00009430$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009431
9432fi
9433
9434#
9435# Tests for Windows
9436#
9437
9438
9439
9440GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009441native_win32_build='no'
9442cygwin_build='no'
9443case "${host_os}" in
9444 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009445 cygwin_build='yes'
9446 GDI32_LIBS='-lgdi32'
9447 ;;
9448 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009449 native_win32_build='yes'
9450 GDI32_LIBS='-lgdi32'
9451 ;;
9452esac
9453if test "${GDI32_LIBS}x" != 'x'; then
9454
cristy8b350f62009-11-15 23:12:43 +00009455$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009456
9457fi
9458
cristy73bd4a52010-10-05 11:24:23 +00009459 if test "${GDI32_LIBS}x" != 'x' ; then
9460 WINGDI32_DELEGATE_TRUE=
9461 WINGDI32_DELEGATE_FALSE='#'
9462else
9463 WINGDI32_DELEGATE_TRUE='#'
9464 WINGDI32_DELEGATE_FALSE=
9465fi
9466
9467 if test "${native_win32_build}" = 'yes' ; then
9468 WIN32_NATIVE_BUILD_TRUE=
9469 WIN32_NATIVE_BUILD_FALSE='#'
9470else
9471 WIN32_NATIVE_BUILD_TRUE='#'
9472 WIN32_NATIVE_BUILD_FALSE=
9473fi
9474
9475 if test "${cygwin_build}" = 'yes' ; then
9476 CYGWIN_BUILD_TRUE=
9477 CYGWIN_BUILD_FALSE='#'
9478else
9479 CYGWIN_BUILD_TRUE='#'
9480 CYGWIN_BUILD_FALSE=
9481fi
9482
9483 if test "x${CC}" = 'xcl.exe' ; then
9484 USING_CL_TRUE=
9485 USING_CL_FALSE='#'
9486else
9487 USING_CL_TRUE='#'
9488 USING_CL_FALSE=
9489fi
9490
cristy3ed852e2009-09-05 21:47:34 +00009491
9492WinPathScript="${srcdirfull}/winpath.sh"
9493
9494
9495#
9496# Compiler flags tweaks
9497#
9498if test "${GCC}" != "yes"; then
9499 case "${host}" in
9500 *-*-hpux* )
9501 # aCC: HP ANSI C++ B3910B A.03.34
9502 CFLAGS="${CFLAGS} -Wp,-H30000"
9503 if test -n "${CXXFLAGS}"; then
9504 CXXFLAGS='-AA'
9505 else
9506 CXXFLAGS="${CXXFLAGS} -AA"
9507 fi
9508 ;;
9509 *-dec-osf5.* )
9510 # Compaq alphaev68-dec-osf5.1 compiler
9511 if test -n "${CXXFLAGS}"; then
9512 CXXFLAGS='-std strict_ansi -noimplicit_include'
9513 else
9514 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9515 fi
9516 esac
9517fi
9518
9519# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009521$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009522if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009523 $as_echo_n "(cached) " >&6
9524else
9525
9526im_cv_ld_lazyload='none'
9527case "${host}" in
9528 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9529 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9530 im_cv_ld_lazyload='-Wl,-zlazyload'
9531 fi
9532 ;;
9533esac
9534
9535fi
cristy8b350f62009-11-15 23:12:43 +00009536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009537$as_echo "$im_cv_ld_lazyload" >&6; }
9538if test "${im_cv_ld_lazyload}" != 'none' ; then
9539 if test -z "${LDFLAGS}" ; then
9540 LDFLAGS="${im_cv_ld_lazyload}"
9541 else
9542 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9543 fi
9544fi
9545
9546case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009547 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009548 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009549 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009550if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009551 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9552else
9553 build_osxuniversal=no
9554fi
9555
9556
cristyc37574e2013-02-16 01:04:55 +00009557 if test "${build_osxuniversal}" != no ; then
9558 if test "$enable_dependency_tracking" != no ; then
9559 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009560Please re-run configure with these options:
9561 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009562 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009563 fi
9564 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9565 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9566 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009567 fi
9568 ;;
9569esac
9570
cristy0151ae12011-10-28 16:32:29 +00009571#
9572# ARCH specific include directory
9573#
9574
cristy670aa3c2011-11-03 00:54:00 +00009575# Check whether --with-includearch-dir was given.
9576if test "${with_includearch_dir+set}" = set; then :
9577 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009578else
cristy670aa3c2011-11-03 00:54:00 +00009579 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009580fi
9581
9582
cristyd286fd72013-02-24 19:25:33 +00009583eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009584
cristy0151ae12011-10-28 16:32:29 +00009585
9586#
9587# ARCH specific configuration directory
9588#
9589
cristy670aa3c2011-11-03 00:54:00 +00009590# Check whether --with-sharearch-dir was given.
9591if test "${with_sharearch_dir+set}" = set; then :
9592 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009593else
cristy408ebcd2011-11-14 01:36:57 +00009594 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009595fi
9596
9597
cristy670aa3c2011-11-03 00:54:00 +00009598eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009599
cristy0151ae12011-10-28 16:32:29 +00009600
cristy2ec87cc2013-02-18 17:46:50 +00009601# Path to the pkgconfig folder
9602
9603# Check whether --with-pkgconfigdir was given.
9604if test "${with_pkgconfigdir+set}" = set; then :
9605 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9606else
9607 pkgconfigdir='${libdir}/pkgconfig'
9608fi
9609
9610
9611
cristy0151ae12011-10-28 16:32:29 +00009612#
cristy3ed852e2009-09-05 21:47:34 +00009613# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009614#
9615# Find Posix threads library
9616#
cristy3ed852e2009-09-05 21:47:34 +00009617
9618# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009619if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009620 withval=$with_threads; with_threads=$withval
9621else
9622 with_threads='yes'
9623fi
9624
9625
cristy1ae5c992013-07-30 14:55:07 +00009626THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009627have_threads=no
9628if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009629
9630
cristy73bd4a52010-10-05 11:24:23 +00009631ac_ext=c
9632ac_cpp='$CPP $CPPFLAGS'
9633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635ac_compiler_gnu=$ac_cv_c_compiler_gnu
9636
9637ax_pthread_ok=no
9638
9639# We used to check for pthread.h first, but this fails if pthread.h
9640# requires special compiler flags (e.g. on True64 or Sequent).
9641# It gets checked for in the link test anyway.
9642
9643# First of all, check if the user has set any of the PTHREAD_LIBS,
9644# etcetera environment variables, and if threads linking works using
9645# them:
9646if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9647 save_CFLAGS="$CFLAGS"
9648 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9649 save_LIBS="$LIBS"
9650 LIBS="$PTHREAD_LIBS $LIBS"
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9652$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h. */
9655
9656/* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9659#ifdef __cplusplus
9660extern "C"
9661#endif
9662char pthread_join ();
9663int
9664main ()
9665{
9666return pthread_join ();
9667 ;
9668 return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_link "$LINENO"; then :
9672 ax_pthread_ok=yes
9673fi
9674rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9677$as_echo "$ax_pthread_ok" >&6; }
9678 if test x"$ax_pthread_ok" = xno; then
9679 PTHREAD_LIBS=""
9680 PTHREAD_CFLAGS=""
9681 fi
9682 LIBS="$save_LIBS"
9683 CFLAGS="$save_CFLAGS"
9684fi
9685
9686# We must check for the threads library under a number of different
9687# names; the ordering is very important because some systems
9688# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9689# libraries is broken (non-POSIX).
9690
9691# Create a list of thread flags to try. Items starting with a "-" are
9692# C compiler flags, and other items are library names, except for "none"
9693# which indicates that we try without any flags at all, and "pthread-config"
9694# which is a program returning the flags for the Pth emulation library.
9695
cristy2ec87cc2013-02-18 17:46:50 +00009696ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009697
9698# The ordering *is* (sometimes) important. Some notes on the
9699# individual items follow:
9700
9701# pthreads: AIX (must check this before -lpthread)
9702# none: in case threads are in libc; should be tried before -Kthread and
9703# other compiler flags to prevent continual compiler warnings
9704# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9705# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9706# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9707# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9708# -pthreads: Solaris/gcc
9709# -mthreads: Mingw32/gcc, Lynx/gcc
9710# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9711# doesn't hurt to check since this sometimes defines pthreads too;
9712# also defines -D_REENTRANT)
9713# ... -mt is also the pthreads flag for HP/aCC
9714# pthread: Linux, etcetera
9715# --thread-safe: KAI C++
9716# pthread-config: use pthread-config program (for GNU Pth library)
9717
cristy2ec87cc2013-02-18 17:46:50 +00009718case ${host_os} in
9719 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009720
9721 # On Solaris (at least, for some versions), libc contains stubbed
9722 # (non-functional) versions of the pthreads routines, so link-based
9723 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9724 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9725 # a function called by this macro, so we could check for that, but
9726 # who knows whether they'll stub that too in a future libc.) So,
9727 # we'll just look for -pthreads and -lpthread first:
9728
9729 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9730 ;;
9731
cristy2ec87cc2013-02-18 17:46:50 +00009732 darwin*)
cristya316db12011-10-24 00:49:45 +00009733 ax_pthread_flags="-pthread $ax_pthread_flags"
9734 ;;
cristy73bd4a52010-10-05 11:24:23 +00009735esac
9736
cristy17491be2014-06-24 01:10:53 +00009737# Clang doesn't consider unrecognized options an error unless we specify
9738# -Werror. We throw in some extra Clang-specific options to ensure that
9739# this doesn't happen for GCC, which also accepts -Werror.
9740
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9742$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9743save_CFLAGS="$CFLAGS"
9744ax_pthread_extra_flags="-Werror"
9745CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h. */
9748int foo(void);
9749int
9750main ()
9751{
9752foo()
9753 ;
9754 return 0;
9755}
9756_ACEOF
9757if ac_fn_c_try_compile "$LINENO"; then :
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9759$as_echo "yes" >&6; }
9760else
9761 ax_pthread_extra_flags=
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763$as_echo "no" >&6; }
9764fi
9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9766CFLAGS="$save_CFLAGS"
9767
cristy73bd4a52010-10-05 11:24:23 +00009768if test x"$ax_pthread_ok" = xno; then
9769for flag in $ax_pthread_flags; do
9770
9771 case $flag in
9772 none)
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9774$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9775 ;;
9776
9777 -*)
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9779$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9780 PTHREAD_CFLAGS="$flag"
9781 ;;
9782
cristya316db12011-10-24 00:49:45 +00009783 pthread-config)
9784 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009785set dummy pthread-config; ac_word=$2
9786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009788if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009789 $as_echo_n "(cached) " >&6
9790else
9791 if test -n "$ax_pthread_config"; then
9792 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9793else
9794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795for as_dir in $PATH
9796do
9797 IFS=$as_save_IFS
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009801 ac_cv_prog_ax_pthread_config="yes"
9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 break 2
9804 fi
9805done
9806 done
9807IFS=$as_save_IFS
9808
9809 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9810fi
9811fi
9812ax_pthread_config=$ac_cv_prog_ax_pthread_config
9813if test -n "$ax_pthread_config"; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9815$as_echo "$ax_pthread_config" >&6; }
9816else
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818$as_echo "no" >&6; }
9819fi
9820
9821
cristya316db12011-10-24 00:49:45 +00009822 if test x"$ax_pthread_config" = xno; then continue; fi
9823 PTHREAD_CFLAGS="`pthread-config --cflags`"
9824 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9825 ;;
cristy73bd4a52010-10-05 11:24:23 +00009826
9827 *)
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9829$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9830 PTHREAD_LIBS="-l$flag"
9831 ;;
9832 esac
9833
9834 save_LIBS="$LIBS"
9835 save_CFLAGS="$CFLAGS"
9836 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009837 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009838
9839 # Check for various functions. We must include pthread.h,
9840 # since some functions may be macros. (On the Sequent, we
9841 # need a special flag -Kthread to make this header compile.)
9842 # We check for pthread_join because it is in -lpthread on IRIX
9843 # while pthread_create is in libc. We check for pthread_attr_init
9844 # due to DEC craziness with -lpthreads. We check for
9845 # pthread_cleanup_push because it is one of the few pthread
9846 # functions on Solaris that doesn't have a non-functional libc stub.
9847 # We try pthread_create on general principles.
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h. */
9850#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009851 static void routine(void *a) { a = 0; }
9852 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009853int
9854main ()
9855{
9856pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009857 pthread_create(&th, 0, start_routine, 0);
9858 pthread_join(th, 0);
9859 pthread_attr_init(&attr);
9860 pthread_cleanup_push(routine, 0);
9861 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009862 ;
9863 return 0;
9864}
9865_ACEOF
9866if ac_fn_c_try_link "$LINENO"; then :
9867 ax_pthread_ok=yes
9868fi
9869rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871
9872 LIBS="$save_LIBS"
9873 CFLAGS="$save_CFLAGS"
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9876$as_echo "$ax_pthread_ok" >&6; }
9877 if test "x$ax_pthread_ok" = xyes; then
9878 break;
9879 fi
9880
9881 PTHREAD_LIBS=""
9882 PTHREAD_CFLAGS=""
9883done
9884fi
9885
9886# Various other checks:
9887if test "x$ax_pthread_ok" = xyes; then
9888 save_LIBS="$LIBS"
9889 LIBS="$PTHREAD_LIBS $LIBS"
9890 save_CFLAGS="$CFLAGS"
9891 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9892
9893 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009895$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009896 attr_name=unknown
9897 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009899/* end confdefs.h. */
9900#include <pthread.h>
9901int
9902main ()
9903{
cristya316db12011-10-24 00:49:45 +00009904int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009905 ;
9906 return 0;
9907}
9908_ACEOF
9909if ac_fn_c_try_link "$LINENO"; then :
9910 attr_name=$attr; break
9911fi
9912rm -f core conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009914 done
cristy73bd4a52010-10-05 11:24:23 +00009915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9916$as_echo "$attr_name" >&6; }
9917 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9918
9919cat >>confdefs.h <<_ACEOF
9920#define PTHREAD_CREATE_JOINABLE $attr_name
9921_ACEOF
9922
9923 fi
9924
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9926$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9927 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009928 case ${host_os} in
9929 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9930 osf* | hpux*) flag="-D_REENTRANT";;
9931 solaris*)
9932 if test "$GCC" = "yes"; then
9933 flag="-D_REENTRANT"
9934 else
cristy17491be2014-06-24 01:10:53 +00009935 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009936 flag="-mt -D_REENTRANT"
9937 fi
9938 ;;
cristy73bd4a52010-10-05 11:24:23 +00009939 esac
cristy17491be2014-06-24 01:10:53 +00009940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9941$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009942 if test "x$flag" != xno; then
9943 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9944 fi
9945
cristya316db12011-10-24 00:49:45 +00009946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9947$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9948if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950else
9951
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +00009954#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009955int
9956main ()
9957{
9958int i = PTHREAD_PRIO_INHERIT;
9959 ;
9960 return 0;
9961}
9962_ACEOF
9963if ac_fn_c_try_link "$LINENO"; then :
9964 ax_cv_PTHREAD_PRIO_INHERIT=yes
9965else
9966 ax_cv_PTHREAD_PRIO_INHERIT=no
9967fi
9968rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970
9971fi
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9973$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9974 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9975
9976$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9977
9978fi
9979
cristy73bd4a52010-10-05 11:24:23 +00009980 LIBS="$save_LIBS"
9981 CFLAGS="$save_CFLAGS"
9982
cristy23493c42013-04-11 16:04:59 +00009983 # More AIX lossage: compile with *_r variant
9984 if test "x$GCC" != xyes; then
9985 case $host_os in
9986 aix*)
9987 case "x/$CC" in #(
9988 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9989 #handle absolute path differently from PATH based program lookup
9990 case "x$CC" in #(
9991 x/*) :
9992 if as_fn_executable_p ${CC}_r; then :
9993 PTHREAD_CC="${CC}_r"
9994fi ;; #(
9995 *) :
9996 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +00009997do
9998 # Extract the first word of "$ac_prog", so it can be a program name with args.
9999set dummy $ac_prog; ac_word=$2
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010002if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010003 $as_echo_n "(cached) " >&6
10004else
10005 if test -n "$PTHREAD_CC"; then
10006 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10007else
10008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010015 ac_cv_prog_PTHREAD_CC="$ac_prog"
10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10018 fi
10019done
10020 done
10021IFS=$as_save_IFS
10022
10023fi
10024fi
10025PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10026if test -n "$PTHREAD_CC"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10028$as_echo "$PTHREAD_CC" >&6; }
10029else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031$as_echo "no" >&6; }
10032fi
10033
10034
10035 test -n "$PTHREAD_CC" && break
10036done
cristy23493c42013-04-11 16:04:59 +000010037test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10038 ;;
10039esac ;; #(
10040 *) :
10041 ;;
10042esac
10043 ;;
10044 esac
cristya316db12011-10-24 00:49:45 +000010045 fi
cristy73bd4a52010-10-05 11:24:23 +000010046fi
10047
cristy23493c42013-04-11 16:04:59 +000010048test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10049
cristy73bd4a52010-10-05 11:24:23 +000010050
10051
10052
10053
10054# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10055if test x"$ax_pthread_ok" = xyes; then
10056
10057$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10058
10059 :
10060else
10061 ax_pthread_ok=no
10062
10063fi
10064ac_ext=c
10065ac_cpp='$CPP $CPPFLAGS'
10066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10068ac_compiler_gnu=$ac_cv_c_compiler_gnu
10069
10070
cristy7acf8fb2010-09-23 19:58:53 +000010071 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010072 have_threads=yes
10073 DEF_THREAD="$PTHREAD_CFLAGS"
10074 CFLAGS="$CFLAGS $DEF_THREAD"
10075 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010076 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010077 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010078 { $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 +000010079$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10080 CC="$PTHREAD_CC"
10081 fi
cristy55bf91c2010-09-24 00:29:41 +000010082
10083$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10084
cristy3ed852e2009-09-05 21:47:34 +000010085 fi
10086fi
cristy1ae5c992013-07-30 14:55:07 +000010087LIBS="$LIBS $THREAD_LIBS"
10088
cristy3ed852e2009-09-05 21:47:34 +000010089
10090# Enable support for OpenMP
10091if test "$have_threads" != 'yes'; then
10092 ac_cv_prog_c_openmp=unsupported
10093fi
10094
10095 OPENMP_CFLAGS=
10096 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010097if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010098 enableval=$enable_openmp;
10099fi
10100
10101 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010103$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010104if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010105 $as_echo_n "(cached) " >&6
10106else
cristy8b350f62009-11-15 23:12:43 +000010107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010109
10110#ifndef _OPENMP
10111 choke me
10112#endif
10113#include <omp.h>
10114int main () { return omp_get_num_threads (); }
10115
10116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010117if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010118 ac_cv_prog_c_openmp='none needed'
10119else
cristy8b350f62009-11-15 23:12:43 +000010120 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010121 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10122 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010123 ac_save_CFLAGS=$CFLAGS
10124 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010127
10128#ifndef _OPENMP
10129 choke me
10130#endif
10131#include <omp.h>
10132int main () { return omp_get_num_threads (); }
10133
10134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010135if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010136 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010137fi
cristy8b350f62009-11-15 23:12:43 +000010138rm -f core conftest.err conftest.$ac_objext \
10139 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010140 CFLAGS=$ac_save_CFLAGS
10141 if test "$ac_cv_prog_c_openmp" != unsupported; then
10142 break
10143 fi
10144 done
10145fi
cristy8b350f62009-11-15 23:12:43 +000010146rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010148fi
cristy8b350f62009-11-15 23:12:43 +000010149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010150$as_echo "$ac_cv_prog_c_openmp" >&6; }
10151 case $ac_cv_prog_c_openmp in #(
10152 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010153 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010154 *)
cristy8b350f62009-11-15 23:12:43 +000010155 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010156 esac
10157 fi
10158
10159
10160CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10161MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10162
cristy391f1ce2010-09-09 17:23:28 +000010163if test "$enable_openmp" != no; then
10164 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10165 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10166 fi
10167fi
cristy3ed852e2009-09-05 21:47:34 +000010168
cristy736173a2009-09-20 21:18:22 +000010169# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010170
10171
cristy73bd4a52010-10-05 11:24:23 +000010172ac_ext=c
10173ac_cpp='$CPP $CPPFLAGS'
10174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
10178ax_pthread_ok=no
10179
10180# We used to check for pthread.h first, but this fails if pthread.h
10181# requires special compiler flags (e.g. on True64 or Sequent).
10182# It gets checked for in the link test anyway.
10183
10184# First of all, check if the user has set any of the PTHREAD_LIBS,
10185# etcetera environment variables, and if threads linking works using
10186# them:
10187if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10188 save_CFLAGS="$CFLAGS"
10189 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10190 save_LIBS="$LIBS"
10191 LIBS="$PTHREAD_LIBS $LIBS"
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10193$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195/* end confdefs.h. */
10196
10197/* Override any GCC internal prototype to avoid an error.
10198 Use char because int might match the return type of a GCC
10199 builtin and then its argument prototype would still apply. */
10200#ifdef __cplusplus
10201extern "C"
10202#endif
10203char pthread_join ();
10204int
10205main ()
10206{
10207return pthread_join ();
10208 ;
10209 return 0;
10210}
10211_ACEOF
10212if ac_fn_c_try_link "$LINENO"; then :
10213 ax_pthread_ok=yes
10214fi
10215rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10218$as_echo "$ax_pthread_ok" >&6; }
10219 if test x"$ax_pthread_ok" = xno; then
10220 PTHREAD_LIBS=""
10221 PTHREAD_CFLAGS=""
10222 fi
10223 LIBS="$save_LIBS"
10224 CFLAGS="$save_CFLAGS"
10225fi
10226
10227# We must check for the threads library under a number of different
10228# names; the ordering is very important because some systems
10229# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10230# libraries is broken (non-POSIX).
10231
10232# Create a list of thread flags to try. Items starting with a "-" are
10233# C compiler flags, and other items are library names, except for "none"
10234# which indicates that we try without any flags at all, and "pthread-config"
10235# which is a program returning the flags for the Pth emulation library.
10236
cristy2ec87cc2013-02-18 17:46:50 +000010237ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010238
10239# The ordering *is* (sometimes) important. Some notes on the
10240# individual items follow:
10241
10242# pthreads: AIX (must check this before -lpthread)
10243# none: in case threads are in libc; should be tried before -Kthread and
10244# other compiler flags to prevent continual compiler warnings
10245# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10246# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10247# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10248# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10249# -pthreads: Solaris/gcc
10250# -mthreads: Mingw32/gcc, Lynx/gcc
10251# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10252# doesn't hurt to check since this sometimes defines pthreads too;
10253# also defines -D_REENTRANT)
10254# ... -mt is also the pthreads flag for HP/aCC
10255# pthread: Linux, etcetera
10256# --thread-safe: KAI C++
10257# pthread-config: use pthread-config program (for GNU Pth library)
10258
cristy2ec87cc2013-02-18 17:46:50 +000010259case ${host_os} in
10260 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010261
10262 # On Solaris (at least, for some versions), libc contains stubbed
10263 # (non-functional) versions of the pthreads routines, so link-based
10264 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10265 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10266 # a function called by this macro, so we could check for that, but
10267 # who knows whether they'll stub that too in a future libc.) So,
10268 # we'll just look for -pthreads and -lpthread first:
10269
10270 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10271 ;;
10272
cristy2ec87cc2013-02-18 17:46:50 +000010273 darwin*)
cristya316db12011-10-24 00:49:45 +000010274 ax_pthread_flags="-pthread $ax_pthread_flags"
10275 ;;
cristy73bd4a52010-10-05 11:24:23 +000010276esac
10277
cristy17491be2014-06-24 01:10:53 +000010278# Clang doesn't consider unrecognized options an error unless we specify
10279# -Werror. We throw in some extra Clang-specific options to ensure that
10280# this doesn't happen for GCC, which also accepts -Werror.
10281
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10283$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10284save_CFLAGS="$CFLAGS"
10285ax_pthread_extra_flags="-Werror"
10286CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h. */
10289int foo(void);
10290int
10291main ()
10292{
10293foo()
10294 ;
10295 return 0;
10296}
10297_ACEOF
10298if ac_fn_c_try_compile "$LINENO"; then :
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10300$as_echo "yes" >&6; }
10301else
10302 ax_pthread_extra_flags=
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304$as_echo "no" >&6; }
10305fi
10306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307CFLAGS="$save_CFLAGS"
10308
cristy73bd4a52010-10-05 11:24:23 +000010309if test x"$ax_pthread_ok" = xno; then
10310for flag in $ax_pthread_flags; do
10311
10312 case $flag in
10313 none)
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10315$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10316 ;;
10317
10318 -*)
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10320$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10321 PTHREAD_CFLAGS="$flag"
10322 ;;
10323
cristya316db12011-10-24 00:49:45 +000010324 pthread-config)
10325 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010326set dummy pthread-config; ac_word=$2
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010329if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010330 $as_echo_n "(cached) " >&6
10331else
10332 if test -n "$ax_pthread_config"; then
10333 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10334else
10335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336for as_dir in $PATH
10337do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010342 ac_cv_prog_ax_pthread_config="yes"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10345 fi
10346done
10347 done
10348IFS=$as_save_IFS
10349
10350 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10351fi
10352fi
10353ax_pthread_config=$ac_cv_prog_ax_pthread_config
10354if test -n "$ax_pthread_config"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10356$as_echo "$ax_pthread_config" >&6; }
10357else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359$as_echo "no" >&6; }
10360fi
10361
10362
cristya316db12011-10-24 00:49:45 +000010363 if test x"$ax_pthread_config" = xno; then continue; fi
10364 PTHREAD_CFLAGS="`pthread-config --cflags`"
10365 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10366 ;;
cristy73bd4a52010-10-05 11:24:23 +000010367
10368 *)
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10370$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10371 PTHREAD_LIBS="-l$flag"
10372 ;;
10373 esac
10374
10375 save_LIBS="$LIBS"
10376 save_CFLAGS="$CFLAGS"
10377 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010378 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010379
10380 # Check for various functions. We must include pthread.h,
10381 # since some functions may be macros. (On the Sequent, we
10382 # need a special flag -Kthread to make this header compile.)
10383 # We check for pthread_join because it is in -lpthread on IRIX
10384 # while pthread_create is in libc. We check for pthread_attr_init
10385 # due to DEC craziness with -lpthreads. We check for
10386 # pthread_cleanup_push because it is one of the few pthread
10387 # functions on Solaris that doesn't have a non-functional libc stub.
10388 # We try pthread_create on general principles.
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390/* end confdefs.h. */
10391#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010392 static void routine(void *a) { a = 0; }
10393 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010394int
10395main ()
10396{
10397pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010398 pthread_create(&th, 0, start_routine, 0);
10399 pthread_join(th, 0);
10400 pthread_attr_init(&attr);
10401 pthread_cleanup_push(routine, 0);
10402 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010403 ;
10404 return 0;
10405}
10406_ACEOF
10407if ac_fn_c_try_link "$LINENO"; then :
10408 ax_pthread_ok=yes
10409fi
10410rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412
10413 LIBS="$save_LIBS"
10414 CFLAGS="$save_CFLAGS"
10415
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10417$as_echo "$ax_pthread_ok" >&6; }
10418 if test "x$ax_pthread_ok" = xyes; then
10419 break;
10420 fi
10421
10422 PTHREAD_LIBS=""
10423 PTHREAD_CFLAGS=""
10424done
10425fi
10426
10427# Various other checks:
10428if test "x$ax_pthread_ok" = xyes; then
10429 save_LIBS="$LIBS"
10430 LIBS="$PTHREAD_LIBS $LIBS"
10431 save_CFLAGS="$CFLAGS"
10432 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10433
10434 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010436$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010437 attr_name=unknown
10438 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010440/* end confdefs.h. */
10441#include <pthread.h>
10442int
10443main ()
10444{
cristya316db12011-10-24 00:49:45 +000010445int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010446 ;
10447 return 0;
10448}
10449_ACEOF
10450if ac_fn_c_try_link "$LINENO"; then :
10451 attr_name=$attr; break
10452fi
10453rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010455 done
cristy73bd4a52010-10-05 11:24:23 +000010456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10457$as_echo "$attr_name" >&6; }
10458 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10459
10460cat >>confdefs.h <<_ACEOF
10461#define PTHREAD_CREATE_JOINABLE $attr_name
10462_ACEOF
10463
10464 fi
10465
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10467$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10468 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010469 case ${host_os} in
10470 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10471 osf* | hpux*) flag="-D_REENTRANT";;
10472 solaris*)
10473 if test "$GCC" = "yes"; then
10474 flag="-D_REENTRANT"
10475 else
cristy17491be2014-06-24 01:10:53 +000010476 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010477 flag="-mt -D_REENTRANT"
10478 fi
10479 ;;
cristy73bd4a52010-10-05 11:24:23 +000010480 esac
cristy17491be2014-06-24 01:10:53 +000010481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10482$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010483 if test "x$flag" != xno; then
10484 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10485 fi
10486
cristya316db12011-10-24 00:49:45 +000010487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10488$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10489if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491else
10492
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010495#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010496int
10497main ()
10498{
10499int i = PTHREAD_PRIO_INHERIT;
10500 ;
10501 return 0;
10502}
10503_ACEOF
10504if ac_fn_c_try_link "$LINENO"; then :
10505 ax_cv_PTHREAD_PRIO_INHERIT=yes
10506else
10507 ax_cv_PTHREAD_PRIO_INHERIT=no
10508fi
10509rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10511
10512fi
10513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10514$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10515 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10516
10517$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10518
10519fi
10520
cristy73bd4a52010-10-05 11:24:23 +000010521 LIBS="$save_LIBS"
10522 CFLAGS="$save_CFLAGS"
10523
cristy23493c42013-04-11 16:04:59 +000010524 # More AIX lossage: compile with *_r variant
10525 if test "x$GCC" != xyes; then
10526 case $host_os in
10527 aix*)
10528 case "x/$CC" in #(
10529 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10530 #handle absolute path differently from PATH based program lookup
10531 case "x$CC" in #(
10532 x/*) :
10533 if as_fn_executable_p ${CC}_r; then :
10534 PTHREAD_CC="${CC}_r"
10535fi ;; #(
10536 *) :
10537 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010538do
10539 # Extract the first word of "$ac_prog", so it can be a program name with args.
10540set dummy $ac_prog; ac_word=$2
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010543if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010544 $as_echo_n "(cached) " >&6
10545else
10546 if test -n "$PTHREAD_CC"; then
10547 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10548else
10549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550for as_dir in $PATH
10551do
10552 IFS=$as_save_IFS
10553 test -z "$as_dir" && as_dir=.
10554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010556 ac_cv_prog_PTHREAD_CC="$ac_prog"
10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558 break 2
10559 fi
10560done
10561 done
10562IFS=$as_save_IFS
10563
10564fi
10565fi
10566PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10567if test -n "$PTHREAD_CC"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10569$as_echo "$PTHREAD_CC" >&6; }
10570else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572$as_echo "no" >&6; }
10573fi
10574
10575
10576 test -n "$PTHREAD_CC" && break
10577done
cristy23493c42013-04-11 16:04:59 +000010578test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10579 ;;
10580esac ;; #(
10581 *) :
10582 ;;
10583esac
10584 ;;
10585 esac
cristya316db12011-10-24 00:49:45 +000010586 fi
cristy73bd4a52010-10-05 11:24:23 +000010587fi
10588
cristy23493c42013-04-11 16:04:59 +000010589test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10590
cristy73bd4a52010-10-05 11:24:23 +000010591
10592
10593
10594
10595# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10596if test x"$ax_pthread_ok" = xyes; then
10597
10598$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10599
10600 :
10601else
10602 ax_pthread_ok=no
10603
10604fi
10605ac_ext=c
10606ac_cpp='$CPP $CPPFLAGS'
10607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609ac_compiler_gnu=$ac_cv_c_compiler_gnu
10610
10611
10612
10613# Check whether --enable-opencl was given.
10614if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010615 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010616else
cristy48794642012-09-02 15:19:08 +000010617 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010618fi
10619
10620
cristy48794642012-09-02 15:19:08 +000010621if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010622 ac_ext=c
10623ac_cpp='$CPP $CPPFLAGS'
10624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626ac_compiler_gnu=$ac_cv_c_compiler_gnu
10627
cristy75314cc2012-09-15 23:08:29 +000010628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10629$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10630if ${ax_cv_c_compiler_ms+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632else
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634/* end confdefs.h. */
10635
10636int
10637main ()
10638{
10639#ifndef _MSC_VER
10640 choke me
10641#endif
10642
10643 ;
10644 return 0;
10645}
10646_ACEOF
10647if ac_fn_c_try_compile "$LINENO"; then :
10648 ax_compiler_ms=yes
10649else
10650 ax_compiler_ms=no
10651fi
10652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653ax_cv_c_compiler_ms=$ax_compiler_ms
10654
10655fi
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10657$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010658 if test X$ax_compiler_ms = Xno; then :
10659 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10660fi
10661
10662 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010663 ax_save_CL_CFLAGS=$CL_CFLAGS
10664
10665 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010666 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10667 for ac_header in CL/cl.h OpenCL/cl.h
10668do :
10669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10670ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010671if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010672 cat >>confdefs.h <<_ACEOF
10673#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10674_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010675 found_opencl_header='yes'
10676 break;
10677else
10678 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010679fi
10680
10681done
10682
cristyfdc7d122013-08-17 20:46:45 +000010683
10684 if test X$found_opencl_header = Xno; then :
10685 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10686 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10687 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10688 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10689 for ac_header in CL/cl.h OpenCL/cl.h
10690do :
10691 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10692ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10693if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10694 cat >>confdefs.h <<_ACEOF
10695#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696_ACEOF
10697 found_opencl_header='yes'
10698 break;
10699else
10700 found_opencl_header='no'
10701fi
10702
10703done
10704
10705
10706fi
10707
10708 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010709
10710 for ac_header in windows.h
10711do :
10712 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010713if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010714 cat >>confdefs.h <<_ACEOF
10715#define HAVE_WINDOWS_H 1
10716_ACEOF
10717
10718fi
10719
10720done
10721
10722
10723
10724
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10726$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010727if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010728 $as_echo_n "(cached) " >&6
10729else
10730 ax_cv_check_cl_libcl=no
10731 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010732 x86_64) ax_check_cl_libdir=lib64
10733 ax_check_cl_amd_libdir=x86_64
10734 ;;
10735 *) ax_check_cl_libdir=lib
10736 ax_check_cl_amd_libdir=x86
10737 ;;
cristy73bd4a52010-10-05 11:24:23 +000010738 esac
10739 ax_save_CPPFLAGS=$CPPFLAGS
10740 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10741 ax_save_LIBS=$LIBS
10742 LIBS=""
10743 ax_check_libs="-lOpenCL -lCL -lclparser"
10744 for ax_lib in $ax_check_libs; do
10745 if test X$ax_compiler_ms = Xyes; then :
10746 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10747else
10748 ax_try_lib=$ax_lib
10749fi
10750 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752/* end confdefs.h. */
10753
10754 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10755 # include <windows.h>
10756 # endif
10757 # ifdef HAVE_CL_CL_H
10758 # include <CL/cl.h>
10759 # elif defined(HAVE_OPENCL_CL_H)
10760 # include <OpenCL/cl.h>
10761 # else
10762 # error no CL.h
10763 # endif
10764int
10765main ()
10766{
10767clCreateContextFromType(0,0,0,0,0)
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772if ac_fn_c_try_link "$LINENO"; then :
10773 ax_cv_check_cl_libcl=$ax_try_lib; break
10774else
10775 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"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h. */
10778
10779 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10780 # include <windows.h>
10781 # endif
10782 # ifdef HAVE_CL_CL_H
10783 # include <CL/cl.h>
10784 # elif defined(HAVE_OPENCL_CL_H)
10785 # include <OpenCL/cl.h>
10786 # else
10787 # error no CL.h
10788 # endif
10789int
10790main ()
10791{
10792clCreateContextFromType(0,0,0,0,0)
10793 ;
10794 return 0;
10795}
10796_ACEOF
10797if ac_fn_c_try_link "$LINENO"; then :
10798 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10799else
cristy78c5a0c2010-12-04 20:00:59 +000010800 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 +000010801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802/* end confdefs.h. */
10803
10804 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10805 # include <windows.h>
10806 # endif
10807 # ifdef HAVE_CL_CL_H
10808 # include <CL/cl.h>
10809 # elif defined(HAVE_OPENCL_CL_H)
10810 # include <OpenCL/cl.h>
10811 # else
10812 # error no CL.h
10813 # endif
10814int
10815main ()
10816{
10817clCreateContextFromType(0,0,0,0,0)
10818 ;
10819 return 0;
10820}
10821_ACEOF
10822if ac_fn_c_try_link "$LINENO"; then :
10823 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010824else
10825 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h. */
10828
10829 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10830 # include <windows.h>
10831 # endif
10832 # ifdef HAVE_CL_CL_H
10833 # include <CL/cl.h>
10834 # elif defined(HAVE_OPENCL_CL_H)
10835 # include <OpenCL/cl.h>
10836 # else
10837 # error no CL.h
10838 # endif
10839int
10840main ()
10841{
10842clCreateContextFromType(0,0,0,0,0)
10843 ;
10844 return 0;
10845}
10846_ACEOF
10847if ac_fn_c_try_link "$LINENO"; then :
10848 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10849
10850fi
10851rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853
10854
cristy73bd4a52010-10-05 11:24:23 +000010855fi
10856rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858fi
10859rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861fi
10862rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10864 done
10865
cristyc3f8b8e2011-12-22 14:55:16 +000010866 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010867 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h. */
10870
10871 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10872 # include <windows.h>
10873 # endif
10874 # ifdef HAVE_CL_CL_H
10875 # include <CL/cl.h>
10876 # elif defined(HAVE_OPENCL_CL_H)
10877 # include <OpenCL/cl.h>
10878 # else
10879 # error no CL.h
10880 # endif
10881int
10882main ()
10883{
10884clCreateContextFromType(0,0,0,0,0)
10885 ;
10886 return 0;
10887}
10888_ACEOF
10889if ac_fn_c_try_link "$LINENO"; then :
10890 ax_cv_check_cl_libcl=$LIBS
10891fi
10892rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10894fi
10895
10896 LIBS=$ax_save_LIBS
10897 CPPFLAGS=$ax_save_CPPFLAGS
10898fi
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10900$as_echo "$ax_cv_check_cl_libcl" >&6; }
10901
10902 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10903 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10904else
10905 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10906$as_echo "#define _OPENCL 1" >>confdefs.h
10907
10908fi
10909 ac_ext=c
10910ac_cpp='$CPP $CPPFLAGS'
10911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10913ac_compiler_gnu=$ac_cv_c_compiler_gnu
10914
10915fi
10916
10917
10918
cristy0c832c62014-03-07 22:21:04 +000010919#remove static link on Linux
10920CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10921
cristy73bd4a52010-10-05 11:24:23 +000010922
cristyc7083c12009-10-14 03:16:55 +000010923CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010924CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010925LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010926
cristy391f1ce2010-09-09 17:23:28 +000010927if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010928 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010929 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10930 fi
cristyfd9dcd42010-08-08 18:07:02 +000010931fi
cristy2e8b51d2009-10-17 18:26:15 +000010932
cristy3ed852e2009-09-05 21:47:34 +000010933########
10934#
10935# Check for large file support
10936#
10937########
10938# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010939if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010940 enableval=$enable_largefile;
10941fi
10942
10943if test "$enable_largefile" != no; then
10944
cristy8b350f62009-11-15 23:12:43 +000010945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010946$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010947if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010948 $as_echo_n "(cached) " >&6
10949else
10950 ac_cv_sys_largefile_CC=no
10951 if test "$GCC" != yes; then
10952 ac_save_CC=$CC
10953 while :; do
10954 # IRIX 6.2 and later do not support large files by default,
10955 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010957/* end confdefs.h. */
10958#include <sys/types.h>
10959 /* Check that off_t can represent 2**63 - 1 correctly.
10960 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10961 since some C++ compilers masquerading as C compilers
10962 incorrectly reject 9223372036854775807. */
10963#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10964 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10965 && LARGE_OFF_T % 2147483647 == 1)
10966 ? 1 : -1];
10967int
10968main ()
10969{
10970
10971 ;
10972 return 0;
10973}
10974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010975 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010976 break
cristy3ed852e2009-09-05 21:47:34 +000010977fi
cristy3ed852e2009-09-05 21:47:34 +000010978rm -f core conftest.err conftest.$ac_objext
10979 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010980 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010981 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010982fi
cristy3ed852e2009-09-05 21:47:34 +000010983rm -f core conftest.err conftest.$ac_objext
10984 break
10985 done
10986 CC=$ac_save_CC
10987 rm -f conftest.$ac_ext
10988 fi
10989fi
cristy8b350f62009-11-15 23:12:43 +000010990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010991$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10992 if test "$ac_cv_sys_largefile_CC" != no; then
10993 CC=$CC$ac_cv_sys_largefile_CC
10994 fi
10995
cristy8b350f62009-11-15 23:12:43 +000010996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010997$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010998if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010999 $as_echo_n "(cached) " >&6
11000else
11001 while :; do
cristy8b350f62009-11-15 23:12:43 +000011002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011003/* end confdefs.h. */
11004#include <sys/types.h>
11005 /* Check that off_t can represent 2**63 - 1 correctly.
11006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11007 since some C++ compilers masquerading as C compilers
11008 incorrectly reject 9223372036854775807. */
11009#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11011 && LARGE_OFF_T % 2147483647 == 1)
11012 ? 1 : -1];
11013int
11014main ()
11015{
11016
11017 ;
11018 return 0;
11019}
11020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011021if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011022 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011023fi
cristy3ed852e2009-09-05 21:47:34 +000011024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011026/* end confdefs.h. */
11027#define _FILE_OFFSET_BITS 64
11028#include <sys/types.h>
11029 /* Check that off_t can represent 2**63 - 1 correctly.
11030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11031 since some C++ compilers masquerading as C compilers
11032 incorrectly reject 9223372036854775807. */
11033#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11035 && LARGE_OFF_T % 2147483647 == 1)
11036 ? 1 : -1];
11037int
11038main ()
11039{
11040
11041 ;
11042 return 0;
11043}
11044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011045if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011046 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011047fi
cristy3ed852e2009-09-05 21:47:34 +000011048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 ac_cv_sys_file_offset_bits=unknown
11050 break
11051done
11052fi
cristy8b350f62009-11-15 23:12:43 +000011053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011054$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11055case $ac_cv_sys_file_offset_bits in #(
11056 no | unknown) ;;
11057 *)
11058cat >>confdefs.h <<_ACEOF
11059#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11060_ACEOF
11061;;
11062esac
11063rm -rf conftest*
11064 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011066$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011067if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011068 $as_echo_n "(cached) " >&6
11069else
11070 while :; do
cristy8b350f62009-11-15 23:12:43 +000011071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011072/* end confdefs.h. */
11073#include <sys/types.h>
11074 /* Check that off_t can represent 2**63 - 1 correctly.
11075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11076 since some C++ compilers masquerading as C compilers
11077 incorrectly reject 9223372036854775807. */
11078#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11079 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11080 && LARGE_OFF_T % 2147483647 == 1)
11081 ? 1 : -1];
11082int
11083main ()
11084{
11085
11086 ;
11087 return 0;
11088}
11089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011090if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011091 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011092fi
cristy3ed852e2009-09-05 21:47:34 +000011093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011095/* end confdefs.h. */
11096#define _LARGE_FILES 1
11097#include <sys/types.h>
11098 /* Check that off_t can represent 2**63 - 1 correctly.
11099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11100 since some C++ compilers masquerading as C compilers
11101 incorrectly reject 9223372036854775807. */
11102#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11104 && LARGE_OFF_T % 2147483647 == 1)
11105 ? 1 : -1];
11106int
11107main ()
11108{
11109
11110 ;
11111 return 0;
11112}
11113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011114if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011115 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011116fi
cristy3ed852e2009-09-05 21:47:34 +000011117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 ac_cv_sys_large_files=unknown
11119 break
11120done
11121fi
cristy8b350f62009-11-15 23:12:43 +000011122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011123$as_echo "$ac_cv_sys_large_files" >&6; }
11124case $ac_cv_sys_large_files in #(
11125 no | unknown) ;;
11126 *)
11127cat >>confdefs.h <<_ACEOF
11128#define _LARGE_FILES $ac_cv_sys_large_files
11129_ACEOF
11130;;
11131esac
11132rm -rf conftest*
11133 fi
cristy14fefe52012-05-21 00:59:18 +000011134
11135
cristy3ed852e2009-09-05 21:47:34 +000011136fi
11137
cristy8b350f62009-11-15 23:12:43 +000011138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011139$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011140if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011141 $as_echo_n "(cached) " >&6
11142else
11143 while :; do
cristy8b350f62009-11-15 23:12:43 +000011144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011145/* end confdefs.h. */
11146#include <sys/types.h> /* for off_t */
11147 #include <stdio.h>
11148int
11149main ()
11150{
11151int (*fp) (FILE *, off_t, int) = fseeko;
11152 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11153 ;
11154 return 0;
11155}
11156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011157if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011158 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011159fi
cristy8b350f62009-11-15 23:12:43 +000011160rm -f core conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011163/* end confdefs.h. */
11164#define _LARGEFILE_SOURCE 1
11165#include <sys/types.h> /* for off_t */
11166 #include <stdio.h>
11167int
11168main ()
11169{
11170int (*fp) (FILE *, off_t, int) = fseeko;
11171 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11172 ;
11173 return 0;
11174}
11175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011176if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011177 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011178fi
cristy8b350f62009-11-15 23:12:43 +000011179rm -f core conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011181 ac_cv_sys_largefile_source=unknown
11182 break
11183done
11184fi
cristy8b350f62009-11-15 23:12:43 +000011185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011186$as_echo "$ac_cv_sys_largefile_source" >&6; }
11187case $ac_cv_sys_largefile_source in #(
11188 no | unknown) ;;
11189 *)
11190cat >>confdefs.h <<_ACEOF
11191#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11192_ACEOF
11193;;
11194esac
11195rm -rf conftest*
11196
11197# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11198# in glibc 2.1.3, but that breaks too many other things.
11199# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11200if test $ac_cv_sys_largefile_source != unknown; then
11201
cristy8b350f62009-11-15 23:12:43 +000011202$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011203
11204fi
11205
11206LFS_CPPFLAGS=''
11207if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011208 case $ac_cv_sys_file_offset_bits in
11209 no)
11210 # nothing to do here as the host supports LFS fine
11211 ;;
11212 unknown)
cristy8b350f62009-11-15 23:12:43 +000011213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011214$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011215 if test "$cross_compiling" = yes; then :
11216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011218as_fn_error $? "cannot run test program while cross compiling
11219See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011220else
cristy8b350f62009-11-15 23:12:43 +000011221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011223#include <unistd.h>
11224 main () {
11225 exit(!(sizeof(off_t) == 8));
11226 }
cristyda16f162011-02-19 23:52:17 +000011227int
11228main ()
11229{
11230
11231 ;
11232 return 0;
11233}
cristy3ed852e2009-09-05 21:47:34 +000011234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011235if ac_fn_c_try_run "$LINENO"; then :
11236 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011237
cristyad38abe2012-12-23 23:03:21 +000011238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11239$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011240else
cristyad38abe2012-12-23 23:03:21 +000011241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011243fi
cristy8b350f62009-11-15 23:12:43 +000011244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11245 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011246fi
11247
cristyc1e0cc12011-09-21 16:41:16 +000011248 ;;
11249 *)
11250 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11251 ;;
11252 esac
cristy3ed852e2009-09-05 21:47:34 +000011253 if test "$ac_cv_sys_large_files" != 'no'; then
11254 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11255 fi
11256 if test "$ac_cv_sys_largefile_source" != 'no'; then
11257 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11258 fi
11259fi
11260
11261
cristy3ed852e2009-09-05 21:47:34 +000011262# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011263enable_dlopen=yes
11264
11265
11266
11267case `pwd` in
11268 *\ * | *\ *)
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11270$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11271esac
11272
11273
11274
cristy99bd5232011-12-07 14:38:20 +000011275macro_version='2.4.2'
11276macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000011277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290ltmain="$ac_aux_dir/ltmain.sh"
11291
cristy0c60a692010-11-04 01:09:47 +000011292# Backslashify metacharacters that are still active within
11293# double-quoted strings.
11294sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11295
11296# Same as above, but do not quote variable references.
11297double_quote_subst='s/\(["`\\]\)/\\\1/g'
11298
11299# Sed substitution to delay expansion of an escaped shell variable in a
11300# double_quote_subst'ed string.
11301delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11302
11303# Sed substitution to delay expansion of an escaped single quote.
11304delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11305
11306# Sed substitution to avoid accidental globbing in evaled expressions
11307no_glob_subst='s/\*/\\\*/g'
11308
cristy73bd4a52010-10-05 11:24:23 +000011309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11310$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011311if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011312 $as_echo_n "(cached) " >&6
11313else
11314 if test -n "$NM"; then
11315 # Let the user override the test.
11316 lt_cv_path_NM="$NM"
11317else
11318 lt_nm_to_check="${ac_tool_prefix}nm"
11319 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11320 lt_nm_to_check="$lt_nm_to_check nm"
11321 fi
11322 for lt_tmp_nm in $lt_nm_to_check; do
11323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11324 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11325 IFS="$lt_save_ifs"
11326 test -z "$ac_dir" && ac_dir=.
11327 tmp_nm="$ac_dir/$lt_tmp_nm"
11328 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11329 # Check to see if the nm accepts a BSD-compat flag.
11330 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11331 # nm: unknown option "B" ignored
11332 # Tru64's nm complains that /dev/null is an invalid object file
11333 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11334 */dev/null* | *'Invalid file or object type'*)
11335 lt_cv_path_NM="$tmp_nm -B"
11336 break
11337 ;;
11338 *)
11339 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11340 */dev/null*)
11341 lt_cv_path_NM="$tmp_nm -p"
11342 break
11343 ;;
11344 *)
11345 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11346 continue # so that we can try to find one that supports BSD flags
11347 ;;
11348 esac
11349 ;;
11350 esac
11351 fi
11352 done
11353 IFS="$lt_save_ifs"
11354 done
11355 : ${lt_cv_path_NM=no}
11356fi
11357fi
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11359$as_echo "$lt_cv_path_NM" >&6; }
11360if test "$lt_cv_path_NM" != "no"; then
11361 NM="$lt_cv_path_NM"
11362else
11363 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011364 if test -n "$DUMPBIN"; then :
11365 # Let the user override the test.
11366 else
11367 if test -n "$ac_tool_prefix"; then
11368 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011369 do
11370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11371set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011374if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011375 $as_echo_n "(cached) " >&6
11376else
11377 if test -n "$DUMPBIN"; then
11378 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11379else
11380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381for as_dir in $PATH
11382do
11383 IFS=$as_save_IFS
11384 test -z "$as_dir" && as_dir=.
11385 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011387 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389 break 2
11390 fi
11391done
11392 done
11393IFS=$as_save_IFS
11394
11395fi
11396fi
11397DUMPBIN=$ac_cv_prog_DUMPBIN
11398if test -n "$DUMPBIN"; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11400$as_echo "$DUMPBIN" >&6; }
11401else
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403$as_echo "no" >&6; }
11404fi
11405
11406
11407 test -n "$DUMPBIN" && break
11408 done
11409fi
11410if test -z "$DUMPBIN"; then
11411 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011412 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011413do
11414 # Extract the first word of "$ac_prog", so it can be a program name with args.
11415set dummy $ac_prog; ac_word=$2
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011418if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011419 $as_echo_n "(cached) " >&6
11420else
11421 if test -n "$ac_ct_DUMPBIN"; then
11422 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11423else
11424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425for as_dir in $PATH
11426do
11427 IFS=$as_save_IFS
11428 test -z "$as_dir" && as_dir=.
11429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011431 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11433 break 2
11434 fi
11435done
11436 done
11437IFS=$as_save_IFS
11438
11439fi
11440fi
11441ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11442if test -n "$ac_ct_DUMPBIN"; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11444$as_echo "$ac_ct_DUMPBIN" >&6; }
11445else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447$as_echo "no" >&6; }
11448fi
11449
11450
11451 test -n "$ac_ct_DUMPBIN" && break
11452done
11453
11454 if test "x$ac_ct_DUMPBIN" = x; then
11455 DUMPBIN=":"
11456 else
11457 case $cross_compiling:$ac_tool_warned in
11458yes:)
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11461ac_tool_warned=yes ;;
11462esac
11463 DUMPBIN=$ac_ct_DUMPBIN
11464 fi
11465fi
11466
cristy0c60a692010-11-04 01:09:47 +000011467 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11468 *COFF*)
11469 DUMPBIN="$DUMPBIN -symbols"
11470 ;;
11471 *)
11472 DUMPBIN=:
11473 ;;
11474 esac
11475 fi
cristy73bd4a52010-10-05 11:24:23 +000011476
11477 if test "$DUMPBIN" != ":"; then
11478 NM="$DUMPBIN"
11479 fi
11480fi
11481test -z "$NM" && NM=nm
11482
11483
11484
11485
11486
11487
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11489$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011490if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011491 $as_echo_n "(cached) " >&6
11492else
11493 lt_cv_nm_interface="BSD nm"
11494 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011495 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011496 (eval "$ac_compile" 2>conftest.err)
11497 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011498 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011499 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11500 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011501 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011502 cat conftest.out >&5
11503 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11504 lt_cv_nm_interface="MS dumpbin"
11505 fi
11506 rm -f conftest*
11507fi
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11509$as_echo "$lt_cv_nm_interface" >&6; }
11510
11511# find the maximum length of command line arguments
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11513$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011514if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011515 $as_echo_n "(cached) " >&6
11516else
11517 i=0
11518 teststring="ABCD"
11519
11520 case $build_os in
11521 msdosdjgpp*)
11522 # On DJGPP, this test can blow up pretty badly due to problems in libc
11523 # (any single argument exceeding 2000 bytes causes a buffer overrun
11524 # during glob expansion). Even if it were fixed, the result of this
11525 # check would be larger than it should be.
11526 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11527 ;;
11528
11529 gnu*)
11530 # Under GNU Hurd, this test is not required because there is
11531 # no limit to the length of command line arguments.
11532 # Libtool will interpret -1 as no limit whatsoever
11533 lt_cv_sys_max_cmd_len=-1;
11534 ;;
11535
11536 cygwin* | mingw* | cegcc*)
11537 # On Win9x/ME, this test blows up -- it succeeds, but takes
11538 # about 5 minutes as the teststring grows exponentially.
11539 # Worse, since 9x/ME are not pre-emptively multitasking,
11540 # you end up with a "frozen" computer, even though with patience
11541 # the test eventually succeeds (with a max line length of 256k).
11542 # Instead, let's just punt: use the minimum linelength reported by
11543 # all of the supported platforms: 8192 (on NT/2K/XP).
11544 lt_cv_sys_max_cmd_len=8192;
11545 ;;
11546
cristy0c60a692010-11-04 01:09:47 +000011547 mint*)
11548 # On MiNT this can take a long time and run out of memory.
11549 lt_cv_sys_max_cmd_len=8192;
11550 ;;
11551
cristy73bd4a52010-10-05 11:24:23 +000011552 amigaos*)
11553 # On AmigaOS with pdksh, this test takes hours, literally.
11554 # So we just punt and use a minimum line length of 8192.
11555 lt_cv_sys_max_cmd_len=8192;
11556 ;;
11557
11558 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11559 # This has been around since 386BSD, at least. Likely further.
11560 if test -x /sbin/sysctl; then
11561 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11562 elif test -x /usr/sbin/sysctl; then
11563 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11564 else
11565 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11566 fi
11567 # And add a safety zone
11568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11570 ;;
11571
11572 interix*)
11573 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11574 lt_cv_sys_max_cmd_len=196608
11575 ;;
11576
cristy99bd5232011-12-07 14:38:20 +000011577 os2*)
11578 # The test takes a long time on OS/2.
11579 lt_cv_sys_max_cmd_len=8192
11580 ;;
11581
cristy73bd4a52010-10-05 11:24:23 +000011582 osf*)
11583 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11584 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11585 # nice to cause kernel panics so lets avoid the loop below.
11586 # First set a reasonable default.
11587 lt_cv_sys_max_cmd_len=16384
11588 #
11589 if test -x /sbin/sysconfig; then
11590 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11591 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11592 esac
11593 fi
11594 ;;
11595 sco3.2v5*)
11596 lt_cv_sys_max_cmd_len=102400
11597 ;;
11598 sysv5* | sco5v6* | sysv4.2uw2*)
11599 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11600 if test -n "$kargmax"; then
11601 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11602 else
11603 lt_cv_sys_max_cmd_len=32768
11604 fi
11605 ;;
11606 *)
11607 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11608 if test -n "$lt_cv_sys_max_cmd_len"; then
11609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11611 else
11612 # Make teststring a little bigger before we do anything with it.
11613 # a 1K string should be a reasonable start.
11614 for i in 1 2 3 4 5 6 7 8 ; do
11615 teststring=$teststring$teststring
11616 done
11617 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11618 # If test is not a shell built-in, we'll probably end up computing a
11619 # maximum length that is only half of the actual maximum length, but
11620 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000011621 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011622 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000011623 test $i != 17 # 1/2 MB should be enough
11624 do
11625 i=`expr $i + 1`
11626 teststring=$teststring$teststring
11627 done
11628 # Only check the string length outside the loop.
11629 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11630 teststring=
11631 # Add a significant safety factor because C++ compilers can tack on
11632 # massive amounts of additional arguments before passing them to the
11633 # linker. It appears as though 1/2 is a usable value.
11634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11635 fi
11636 ;;
11637 esac
11638
11639fi
11640
11641if test -n $lt_cv_sys_max_cmd_len ; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11643$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11644else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11646$as_echo "none" >&6; }
11647fi
11648max_cmd_len=$lt_cv_sys_max_cmd_len
11649
11650
11651
11652
11653
11654
11655: ${CP="cp -f"}
11656: ${MV="mv -f"}
11657: ${RM="rm -f"}
11658
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11660$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11661# Try some XSI features
11662xsi_shell=no
11663( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000011664 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11665 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000011666 && eval 'test $(( 1 + 1 )) -eq 2 \
11667 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11668 && xsi_shell=yes
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11670$as_echo "$xsi_shell" >&6; }
11671
11672
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11674$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11675lt_shell_append=no
11676( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11677 >/dev/null 2>&1 \
11678 && lt_shell_append=yes
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11680$as_echo "$lt_shell_append" >&6; }
11681
11682
11683if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11684 lt_unset=unset
11685else
11686 lt_unset=false
11687fi
11688
11689
11690
11691
11692
11693# test EBCDIC or ASCII
11694case `echo X|tr X '\101'` in
11695 A) # ASCII based system
11696 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11697 lt_SP2NL='tr \040 \012'
11698 lt_NL2SP='tr \015\012 \040\040'
11699 ;;
11700 *) # EBCDIC based system
11701 lt_SP2NL='tr \100 \n'
11702 lt_NL2SP='tr \r\n \100\100'
11703 ;;
11704esac
11705
11706
11707
11708
11709
11710
11711
11712
11713
cristyda16f162011-02-19 23:52:17 +000011714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11715$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11716if ${lt_cv_to_host_file_cmd+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718else
11719 case $host in
11720 *-*-mingw* )
11721 case $build in
11722 *-*-mingw* ) # actually msys
11723 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11724 ;;
11725 *-*-cygwin* )
11726 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11727 ;;
11728 * ) # otherwise, assume *nix
11729 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11730 ;;
11731 esac
11732 ;;
11733 *-*-cygwin* )
11734 case $build in
11735 *-*-mingw* ) # actually msys
11736 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11737 ;;
11738 *-*-cygwin* )
11739 lt_cv_to_host_file_cmd=func_convert_file_noop
11740 ;;
11741 * ) # otherwise, assume *nix
11742 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11743 ;;
11744 esac
11745 ;;
11746 * ) # unhandled hosts (and "normal" native builds)
11747 lt_cv_to_host_file_cmd=func_convert_file_noop
11748 ;;
11749esac
11750
11751fi
11752
11753to_host_file_cmd=$lt_cv_to_host_file_cmd
11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11755$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11756
11757
11758
11759
11760
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11762$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11763if ${lt_cv_to_tool_file_cmd+:} false; then :
11764 $as_echo_n "(cached) " >&6
11765else
11766 #assume ordinary cross tools, or native build.
11767lt_cv_to_tool_file_cmd=func_convert_file_noop
11768case $host in
11769 *-*-mingw* )
11770 case $build in
11771 *-*-mingw* ) # actually msys
11772 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11773 ;;
11774 esac
11775 ;;
11776esac
11777
11778fi
11779
11780to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11782$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11783
11784
11785
11786
11787
cristy73bd4a52010-10-05 11:24:23 +000011788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11789$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011790if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011791 $as_echo_n "(cached) " >&6
11792else
11793 lt_cv_ld_reload_flag='-r'
11794fi
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11796$as_echo "$lt_cv_ld_reload_flag" >&6; }
11797reload_flag=$lt_cv_ld_reload_flag
11798case $reload_flag in
11799"" | " "*) ;;
11800*) reload_flag=" $reload_flag" ;;
11801esac
11802reload_cmds='$LD$reload_flag -o $output$reload_objs'
11803case $host_os in
cristyda16f162011-02-19 23:52:17 +000011804 cygwin* | mingw* | pw32* | cegcc*)
11805 if test "$GCC" != yes; then
11806 reload_cmds=false
11807 fi
11808 ;;
cristy73bd4a52010-10-05 11:24:23 +000011809 darwin*)
11810 if test "$GCC" = yes; then
11811 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11812 else
11813 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11814 fi
11815 ;;
11816esac
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826if test -n "$ac_tool_prefix"; then
11827 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11828set dummy ${ac_tool_prefix}objdump; ac_word=$2
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011831if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011832 $as_echo_n "(cached) " >&6
11833else
11834 if test -n "$OBJDUMP"; then
11835 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11836else
11837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11838for as_dir in $PATH
11839do
11840 IFS=$as_save_IFS
11841 test -z "$as_dir" && as_dir=.
11842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011844 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11846 break 2
11847 fi
11848done
11849 done
11850IFS=$as_save_IFS
11851
11852fi
11853fi
11854OBJDUMP=$ac_cv_prog_OBJDUMP
11855if test -n "$OBJDUMP"; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11857$as_echo "$OBJDUMP" >&6; }
11858else
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860$as_echo "no" >&6; }
11861fi
11862
11863
11864fi
11865if test -z "$ac_cv_prog_OBJDUMP"; then
11866 ac_ct_OBJDUMP=$OBJDUMP
11867 # Extract the first word of "objdump", so it can be a program name with args.
11868set dummy objdump; ac_word=$2
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011871if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011872 $as_echo_n "(cached) " >&6
11873else
11874 if test -n "$ac_ct_OBJDUMP"; then
11875 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11876else
11877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878for as_dir in $PATH
11879do
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011884 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 break 2
11887 fi
11888done
11889 done
11890IFS=$as_save_IFS
11891
11892fi
11893fi
11894ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11895if test -n "$ac_ct_OBJDUMP"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11897$as_echo "$ac_ct_OBJDUMP" >&6; }
11898else
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
11901fi
11902
11903 if test "x$ac_ct_OBJDUMP" = x; then
11904 OBJDUMP="false"
11905 else
11906 case $cross_compiling:$ac_tool_warned in
11907yes:)
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11910ac_tool_warned=yes ;;
11911esac
11912 OBJDUMP=$ac_ct_OBJDUMP
11913 fi
11914else
11915 OBJDUMP="$ac_cv_prog_OBJDUMP"
11916fi
11917
11918test -z "$OBJDUMP" && OBJDUMP=objdump
11919
11920
11921
11922
11923
11924
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11926$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011927if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011928 $as_echo_n "(cached) " >&6
11929else
11930 lt_cv_file_magic_cmd='$MAGIC_CMD'
11931lt_cv_file_magic_test_file=
11932lt_cv_deplibs_check_method='unknown'
11933# Need to set the preceding variable on all platforms that support
11934# interlibrary dependencies.
11935# 'none' -- dependencies not supported.
11936# `unknown' -- same as none, but documents that we really don't know.
11937# 'pass_all' -- all dependencies passed with no checks.
11938# 'test_compile' -- check by making test program.
11939# 'file_magic [[regex]]' -- check by looking for files in library path
11940# which responds to the $file_magic_cmd with a given extended regex.
11941# If you have `file' or equivalent on your system and you're not sure
11942# whether `pass_all' will *always* work, you probably want this one.
11943
11944case $host_os in
11945aix[4-9]*)
11946 lt_cv_deplibs_check_method=pass_all
11947 ;;
11948
11949beos*)
11950 lt_cv_deplibs_check_method=pass_all
11951 ;;
11952
11953bsdi[45]*)
11954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11955 lt_cv_file_magic_cmd='/usr/bin/file -L'
11956 lt_cv_file_magic_test_file=/shlib/libc.so
11957 ;;
11958
11959cygwin*)
11960 # func_win32_libid is a shell function defined in ltmain.sh
11961 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11962 lt_cv_file_magic_cmd='func_win32_libid'
11963 ;;
11964
11965mingw* | pw32*)
11966 # Base MSYS/MinGW do not provide the 'file' command needed by
11967 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11968 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011969 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11970 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011971 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11972 lt_cv_file_magic_cmd='func_win32_libid'
11973 else
cristy0c60a692010-11-04 01:09:47 +000011974 # Keep this pattern in sync with the one in func_win32_libid.
11975 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 +000011976 lt_cv_file_magic_cmd='$OBJDUMP -f'
11977 fi
11978 ;;
11979
cristy0c60a692010-11-04 01:09:47 +000011980cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011981 # use the weaker test based on 'objdump'. See mingw*.
11982 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11983 lt_cv_file_magic_cmd='$OBJDUMP -f'
11984 ;;
11985
11986darwin* | rhapsody*)
11987 lt_cv_deplibs_check_method=pass_all
11988 ;;
11989
11990freebsd* | dragonfly*)
11991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11992 case $host_cpu in
11993 i*86 )
11994 # Not sure whether the presence of OpenBSD here was a mistake.
11995 # Let's accept both of them until this is cleared up.
11996 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11997 lt_cv_file_magic_cmd=/usr/bin/file
11998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11999 ;;
12000 esac
12001 else
12002 lt_cv_deplibs_check_method=pass_all
12003 fi
12004 ;;
12005
12006gnu*)
12007 lt_cv_deplibs_check_method=pass_all
12008 ;;
12009
cristy0c60a692010-11-04 01:09:47 +000012010haiku*)
12011 lt_cv_deplibs_check_method=pass_all
12012 ;;
12013
cristy73bd4a52010-10-05 11:24:23 +000012014hpux10.20* | hpux11*)
12015 lt_cv_file_magic_cmd=/usr/bin/file
12016 case $host_cpu in
12017 ia64*)
12018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12019 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12020 ;;
12021 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012022 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 +000012023 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12024 ;;
12025 *)
cristy0c60a692010-11-04 01:09:47 +000012026 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 +000012027 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12028 ;;
12029 esac
12030 ;;
12031
12032interix[3-9]*)
12033 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12035 ;;
12036
12037irix5* | irix6* | nonstopux*)
12038 case $LD in
12039 *-32|*"-32 ") libmagic=32-bit;;
12040 *-n32|*"-n32 ") libmagic=N32;;
12041 *-64|*"-64 ") libmagic=64-bit;;
12042 *) libmagic=never-match;;
12043 esac
12044 lt_cv_deplibs_check_method=pass_all
12045 ;;
12046
cristy99bd5232011-12-07 14:38:20 +000012047# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000012048linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012049 lt_cv_deplibs_check_method=pass_all
12050 ;;
12051
12052netbsd*)
12053 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12055 else
12056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12057 fi
12058 ;;
12059
12060newos6*)
12061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12062 lt_cv_file_magic_cmd=/usr/bin/file
12063 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12064 ;;
12065
12066*nto* | *qnx*)
12067 lt_cv_deplibs_check_method=pass_all
12068 ;;
12069
12070openbsd*)
12071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12073 else
12074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12075 fi
12076 ;;
12077
12078osf3* | osf4* | osf5*)
12079 lt_cv_deplibs_check_method=pass_all
12080 ;;
12081
12082rdos*)
12083 lt_cv_deplibs_check_method=pass_all
12084 ;;
12085
12086solaris*)
12087 lt_cv_deplibs_check_method=pass_all
12088 ;;
12089
12090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12091 lt_cv_deplibs_check_method=pass_all
12092 ;;
12093
12094sysv4 | sysv4.3*)
12095 case $host_vendor in
12096 motorola)
12097 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]'
12098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12099 ;;
12100 ncr)
12101 lt_cv_deplibs_check_method=pass_all
12102 ;;
12103 sequent)
12104 lt_cv_file_magic_cmd='/bin/file'
12105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12106 ;;
12107 sni)
12108 lt_cv_file_magic_cmd='/bin/file'
12109 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12110 lt_cv_file_magic_test_file=/lib/libc.so
12111 ;;
12112 siemens)
12113 lt_cv_deplibs_check_method=pass_all
12114 ;;
12115 pc)
12116 lt_cv_deplibs_check_method=pass_all
12117 ;;
12118 esac
12119 ;;
12120
12121tpf*)
12122 lt_cv_deplibs_check_method=pass_all
12123 ;;
12124esac
12125
12126fi
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12128$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012129
12130file_magic_glob=
12131want_nocaseglob=no
12132if test "$build" = "$host"; then
12133 case $host_os in
12134 mingw* | pw32*)
12135 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12136 want_nocaseglob=yes
12137 else
12138 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12139 fi
12140 ;;
12141 esac
12142fi
12143
cristy73bd4a52010-10-05 11:24:23 +000012144file_magic_cmd=$lt_cv_file_magic_cmd
12145deplibs_check_method=$lt_cv_deplibs_check_method
12146test -z "$deplibs_check_method" && deplibs_check_method=unknown
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
cristyda16f162011-02-19 23:52:17 +000012159
12160
12161
12162
12163
12164
12165
12166
12167
12168
cristy73bd4a52010-10-05 11:24:23 +000012169if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012170 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12171set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012174if ${ac_cv_prog_DLLTOOL+:} false; then :
12175 $as_echo_n "(cached) " >&6
12176else
12177 if test -n "$DLLTOOL"; then
12178 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12179else
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183 IFS=$as_save_IFS
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012187 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189 break 2
12190 fi
12191done
12192 done
12193IFS=$as_save_IFS
12194
12195fi
12196fi
12197DLLTOOL=$ac_cv_prog_DLLTOOL
12198if test -n "$DLLTOOL"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12200$as_echo "$DLLTOOL" >&6; }
12201else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204fi
12205
12206
12207fi
12208if test -z "$ac_cv_prog_DLLTOOL"; then
12209 ac_ct_DLLTOOL=$DLLTOOL
12210 # Extract the first word of "dlltool", so it can be a program name with args.
12211set dummy dlltool; ac_word=$2
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213$as_echo_n "checking for $ac_word... " >&6; }
12214if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12215 $as_echo_n "(cached) " >&6
12216else
12217 if test -n "$ac_ct_DLLTOOL"; then
12218 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12219else
12220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221for as_dir in $PATH
12222do
12223 IFS=$as_save_IFS
12224 test -z "$as_dir" && as_dir=.
12225 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012227 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229 break 2
12230 fi
12231done
12232 done
12233IFS=$as_save_IFS
12234
12235fi
12236fi
12237ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12238if test -n "$ac_ct_DLLTOOL"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12240$as_echo "$ac_ct_DLLTOOL" >&6; }
12241else
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
12244fi
12245
12246 if test "x$ac_ct_DLLTOOL" = x; then
12247 DLLTOOL="false"
12248 else
12249 case $cross_compiling:$ac_tool_warned in
12250yes:)
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12253ac_tool_warned=yes ;;
12254esac
12255 DLLTOOL=$ac_ct_DLLTOOL
12256 fi
12257else
12258 DLLTOOL="$ac_cv_prog_DLLTOOL"
12259fi
12260
12261test -z "$DLLTOOL" && DLLTOOL=dlltool
12262
12263
12264
12265
12266
12267
12268
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12270$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12271if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273else
12274 lt_cv_sharedlib_from_linklib_cmd='unknown'
12275
12276case $host_os in
12277cygwin* | mingw* | pw32* | cegcc*)
12278 # two different shell functions defined in ltmain.sh
12279 # decide which to use based on capabilities of $DLLTOOL
12280 case `$DLLTOOL --help 2>&1` in
12281 *--identify-strict*)
12282 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12283 ;;
12284 *)
12285 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12286 ;;
12287 esac
12288 ;;
12289*)
12290 # fallback: assume linklib IS sharedlib
12291 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12292 ;;
12293esac
12294
12295fi
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12297$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12298sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12299test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12300
12301
12302
12303
12304
12305
12306
12307if test -n "$ac_tool_prefix"; then
12308 for ac_prog in ar
12309 do
12310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313$as_echo_n "checking for $ac_word... " >&6; }
12314if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012315 $as_echo_n "(cached) " >&6
12316else
12317 if test -n "$AR"; then
12318 ac_cv_prog_AR="$AR" # Let the user override the test.
12319else
12320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $PATH
12322do
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012327 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12330 fi
12331done
12332 done
12333IFS=$as_save_IFS
12334
12335fi
12336fi
12337AR=$ac_cv_prog_AR
12338if test -n "$AR"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12340$as_echo "$AR" >&6; }
12341else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
12344fi
12345
12346
cristyda16f162011-02-19 23:52:17 +000012347 test -n "$AR" && break
12348 done
cristy73bd4a52010-10-05 11:24:23 +000012349fi
cristyda16f162011-02-19 23:52:17 +000012350if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012351 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012352 for ac_prog in ar
12353do
12354 # Extract the first word of "$ac_prog", so it can be a program name with args.
12355set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012358if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012359 $as_echo_n "(cached) " >&6
12360else
12361 if test -n "$ac_ct_AR"; then
12362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012371 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375done
12376 done
12377IFS=$as_save_IFS
12378
12379fi
12380fi
12381ac_ct_AR=$ac_cv_prog_ac_ct_AR
12382if test -n "$ac_ct_AR"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12384$as_echo "$ac_ct_AR" >&6; }
12385else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389
cristyda16f162011-02-19 23:52:17 +000012390
12391 test -n "$ac_ct_AR" && break
12392done
12393
cristy73bd4a52010-10-05 11:24:23 +000012394 if test "x$ac_ct_AR" = x; then
12395 AR="false"
12396 else
12397 case $cross_compiling:$ac_tool_warned in
12398yes:)
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401ac_tool_warned=yes ;;
12402esac
12403 AR=$ac_ct_AR
12404 fi
cristy73bd4a52010-10-05 11:24:23 +000012405fi
12406
cristyda16f162011-02-19 23:52:17 +000012407: ${AR=ar}
12408: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
cristyda16f162011-02-19 23:52:17 +000012420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12421$as_echo_n "checking for archiver @FILE support... " >&6; }
12422if ${lt_cv_ar_at_file+:} false; then :
12423 $as_echo_n "(cached) " >&6
12424else
12425 lt_cv_ar_at_file=no
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427/* end confdefs.h. */
12428
12429int
12430main ()
12431{
12432
12433 ;
12434 return 0;
12435}
12436_ACEOF
12437if ac_fn_c_try_compile "$LINENO"; then :
12438 echo conftest.$ac_objext > conftest.lst
12439 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12441 (eval $lt_ar_try) 2>&5
12442 ac_status=$?
12443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444 test $ac_status = 0; }
12445 if test "$ac_status" -eq 0; then
12446 # Ensure the archiver fails upon bogus file names.
12447 rm -f conftest.$ac_objext libconftest.a
12448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12449 (eval $lt_ar_try) 2>&5
12450 ac_status=$?
12451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12452 test $ac_status = 0; }
12453 if test "$ac_status" -ne 0; then
12454 lt_cv_ar_at_file=@
12455 fi
12456 fi
12457 rm -f conftest.* libconftest.a
12458
12459fi
12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461
12462fi
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12464$as_echo "$lt_cv_ar_at_file" >&6; }
12465
12466if test "x$lt_cv_ar_at_file" = xno; then
12467 archiver_list_spec=
12468else
12469 archiver_list_spec=$lt_cv_ar_at_file
12470fi
12471
12472
12473
12474
12475
12476
12477
cristy73bd4a52010-10-05 11:24:23 +000012478if test -n "$ac_tool_prefix"; then
12479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12480set dummy ${ac_tool_prefix}strip; ac_word=$2
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012483if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012484 $as_echo_n "(cached) " >&6
12485else
12486 if test -n "$STRIP"; then
12487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12488else
12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490for as_dir in $PATH
12491do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500done
12501 done
12502IFS=$as_save_IFS
12503
12504fi
12505fi
12506STRIP=$ac_cv_prog_STRIP
12507if test -n "$STRIP"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12509$as_echo "$STRIP" >&6; }
12510else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512$as_echo "no" >&6; }
12513fi
12514
12515
12516fi
12517if test -z "$ac_cv_prog_STRIP"; then
12518 ac_ct_STRIP=$STRIP
12519 # Extract the first word of "strip", so it can be a program name with args.
12520set dummy strip; ac_word=$2
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12522$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012523if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012524 $as_echo_n "(cached) " >&6
12525else
12526 if test -n "$ac_ct_STRIP"; then
12527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12528else
12529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530for as_dir in $PATH
12531do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012536 ac_cv_prog_ac_ct_STRIP="strip"
12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12539 fi
12540done
12541 done
12542IFS=$as_save_IFS
12543
12544fi
12545fi
12546ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12547if test -n "$ac_ct_STRIP"; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12549$as_echo "$ac_ct_STRIP" >&6; }
12550else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552$as_echo "no" >&6; }
12553fi
12554
12555 if test "x$ac_ct_STRIP" = x; then
12556 STRIP=":"
12557 else
12558 case $cross_compiling:$ac_tool_warned in
12559yes:)
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12562ac_tool_warned=yes ;;
12563esac
12564 STRIP=$ac_ct_STRIP
12565 fi
12566else
12567 STRIP="$ac_cv_prog_STRIP"
12568fi
12569
12570test -z "$STRIP" && STRIP=:
12571
12572
12573
12574
12575
12576
12577if test -n "$ac_tool_prefix"; then
12578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12579set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012582if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012583 $as_echo_n "(cached) " >&6
12584else
12585 if test -n "$RANLIB"; then
12586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12587else
12588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589for as_dir in $PATH
12590do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12598 fi
12599done
12600 done
12601IFS=$as_save_IFS
12602
12603fi
12604fi
12605RANLIB=$ac_cv_prog_RANLIB
12606if test -n "$RANLIB"; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12608$as_echo "$RANLIB" >&6; }
12609else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611$as_echo "no" >&6; }
12612fi
12613
12614
12615fi
12616if test -z "$ac_cv_prog_RANLIB"; then
12617 ac_ct_RANLIB=$RANLIB
12618 # Extract the first word of "ranlib", so it can be a program name with args.
12619set dummy ranlib; ac_word=$2
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012622if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012623 $as_echo_n "(cached) " >&6
12624else
12625 if test -n "$ac_ct_RANLIB"; then
12626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12627else
12628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629for as_dir in $PATH
12630do
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012635 ac_cv_prog_ac_ct_RANLIB="ranlib"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637 break 2
12638 fi
12639done
12640 done
12641IFS=$as_save_IFS
12642
12643fi
12644fi
12645ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12646if test -n "$ac_ct_RANLIB"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12648$as_echo "$ac_ct_RANLIB" >&6; }
12649else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651$as_echo "no" >&6; }
12652fi
12653
12654 if test "x$ac_ct_RANLIB" = x; then
12655 RANLIB=":"
12656 else
12657 case $cross_compiling:$ac_tool_warned in
12658yes:)
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12661ac_tool_warned=yes ;;
12662esac
12663 RANLIB=$ac_ct_RANLIB
12664 fi
12665else
12666 RANLIB="$ac_cv_prog_RANLIB"
12667fi
12668
12669test -z "$RANLIB" && RANLIB=:
12670
12671
12672
12673
12674
12675
12676# Determine commands to create old-style static archives.
12677old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12678old_postinstall_cmds='chmod 644 $oldlib'
12679old_postuninstall_cmds=
12680
12681if test -n "$RANLIB"; then
12682 case $host_os in
12683 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012685 ;;
12686 *)
cristy99bd5232011-12-07 14:38:20 +000012687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012688 ;;
12689 esac
cristy99bd5232011-12-07 14:38:20 +000012690 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012691fi
12692
cristy0c60a692010-11-04 01:09:47 +000012693case $host_os in
12694 darwin*)
12695 lock_old_archive_extraction=yes ;;
12696 *)
12697 lock_old_archive_extraction=no ;;
12698esac
12699
12700
12701
12702
12703
12704
cristy73bd4a52010-10-05 11:24:23 +000012705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738# If no C compiler was specified, use CC.
12739LTCC=${LTCC-"$CC"}
12740
12741# If no C compiler flags were specified, use CFLAGS.
12742LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12743
12744# Allow CC to be a program name with arguments.
12745compiler=$CC
12746
12747
12748# Check for command to grab the raw symbol name followed by C symbol from nm.
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12750$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012751if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012752 $as_echo_n "(cached) " >&6
12753else
12754
12755# These are sane defaults that work on at least a few old systems.
12756# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12757
12758# Character class describing NM global symbol codes.
12759symcode='[BCDEGRST]'
12760
12761# Regexp to match symbols that can be accessed directly from C.
12762sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12763
12764# Define system-specific variables.
12765case $host_os in
12766aix*)
12767 symcode='[BCDT]'
12768 ;;
12769cygwin* | mingw* | pw32* | cegcc*)
12770 symcode='[ABCDGISTW]'
12771 ;;
12772hpux*)
12773 if test "$host_cpu" = ia64; then
12774 symcode='[ABCDEGRST]'
12775 fi
12776 ;;
12777irix* | nonstopux*)
12778 symcode='[BCDEGRST]'
12779 ;;
12780osf*)
12781 symcode='[BCDEGQRST]'
12782 ;;
12783solaris*)
12784 symcode='[BDRT]'
12785 ;;
12786sco3.2v5*)
12787 symcode='[DT]'
12788 ;;
12789sysv4.2uw2*)
12790 symcode='[DT]'
12791 ;;
12792sysv5* | sco5v6* | unixware* | OpenUNIX*)
12793 symcode='[ABDT]'
12794 ;;
12795sysv4)
12796 symcode='[DFNSTU]'
12797 ;;
12798esac
12799
12800# If we're using GNU nm, then use its standard symbol codes.
12801case `$NM -V 2>&1` in
12802*GNU* | *'with BFD'*)
12803 symcode='[ABCDGIRSTW]' ;;
12804esac
12805
12806# Transform an extracted symbol line into a proper C declaration.
12807# Some systems (esp. on ia64) link data and code symbols differently,
12808# so use this general approach.
12809lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12810
12811# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000012812lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12813lt_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 +000012814
12815# Handle CRLF in mingw tool chain
12816opt_cr=
12817case $build_os in
12818mingw*)
12819 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12820 ;;
12821esac
12822
12823# Try without a prefix underscore, then with it.
12824for ac_symprfx in "" "_"; do
12825
12826 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12827 symxfrm="\\1 $ac_symprfx\\2 \\2"
12828
12829 # Write the raw and C identifiers.
12830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12831 # Fake it for dumpbin and say T for any non-static function
12832 # and D for any global variable.
12833 # Also find C++ and __fastcall symbols from MSVC++,
12834 # which start with @ or ?.
12835 lt_cv_sys_global_symbol_pipe="$AWK '"\
12836" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012837" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012838" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12839" \$ 0!~/External *\|/{next};"\
12840" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12841" {if(hide[section]) next};"\
12842" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12843" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12844" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12845" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12846" ' prfx=^$ac_symprfx"
12847 else
12848 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12849 fi
cristyda16f162011-02-19 23:52:17 +000012850 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012851
12852 # Check to see that the pipe works correctly.
12853 pipe_works=no
12854
12855 rm -f conftest*
12856 cat > conftest.$ac_ext <<_LT_EOF
12857#ifdef __cplusplus
12858extern "C" {
12859#endif
12860char nm_test_var;
12861void nm_test_func(void);
12862void nm_test_func(void){}
12863#ifdef __cplusplus
12864}
12865#endif
12866int main(){nm_test_var='a';nm_test_func();return(0);}
12867_LT_EOF
12868
12869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12870 (eval $ac_compile) 2>&5
12871 ac_status=$?
12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873 test $ac_status = 0; }; then
12874 # Now try to grab the symbols.
12875 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12877 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012878 ac_status=$?
12879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12880 test $ac_status = 0; } && test -s "$nlist"; then
12881 # Try sorting and uniquifying the output.
12882 if sort "$nlist" | uniq > "$nlist"T; then
12883 mv -f "$nlist"T "$nlist"
12884 else
12885 rm -f "$nlist"T
12886 fi
12887
12888 # Make sure that we snagged all the symbols we need.
12889 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12890 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12891 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012892/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12893#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12894/* DATA imports from DLLs on WIN32 con't be const, because runtime
12895 relocations are performed -- see ld's documentation on pseudo-relocs. */
12896# define LT_DLSYM_CONST
12897#elif defined(__osf__)
12898/* This system does not cope well with relocations in const data. */
12899# define LT_DLSYM_CONST
12900#else
12901# define LT_DLSYM_CONST const
12902#endif
12903
cristy73bd4a52010-10-05 11:24:23 +000012904#ifdef __cplusplus
12905extern "C" {
12906#endif
12907
12908_LT_EOF
12909 # Now generate the symbol file.
12910 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12911
12912 cat <<_LT_EOF >> conftest.$ac_ext
12913
12914/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012915LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012916 const char *name;
12917 void *address;
12918}
12919lt__PROGRAM__LTX_preloaded_symbols[] =
12920{
12921 { "@PROGRAM@", (void *) 0 },
12922_LT_EOF
12923 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12924 cat <<\_LT_EOF >> conftest.$ac_ext
12925 {0, (void *) 0}
12926};
12927
12928/* This works around a problem in FreeBSD linker */
12929#ifdef FREEBSD_WORKAROUND
12930static const void *lt_preloaded_setup() {
12931 return lt__PROGRAM__LTX_preloaded_symbols;
12932}
12933#endif
12934
12935#ifdef __cplusplus
12936}
12937#endif
12938_LT_EOF
12939 # Now try linking the two files.
12940 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012941 lt_globsym_save_LIBS=$LIBS
12942 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012943 LIBS="conftstm.$ac_objext"
12944 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12946 (eval $ac_link) 2>&5
12947 ac_status=$?
12948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12950 pipe_works=yes
12951 fi
cristyda16f162011-02-19 23:52:17 +000012952 LIBS=$lt_globsym_save_LIBS
12953 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012954 else
12955 echo "cannot find nm_test_func in $nlist" >&5
12956 fi
12957 else
12958 echo "cannot find nm_test_var in $nlist" >&5
12959 fi
12960 else
12961 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12962 fi
12963 else
12964 echo "$progname: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12966 fi
12967 rm -rf conftest* conftst*
12968
12969 # Do not use the global_symbol_pipe unless it works.
12970 if test "$pipe_works" = yes; then
12971 break
12972 else
12973 lt_cv_sys_global_symbol_pipe=
12974 fi
12975done
12976
12977fi
12978
12979if test -z "$lt_cv_sys_global_symbol_pipe"; then
12980 lt_cv_sys_global_symbol_to_cdecl=
12981fi
12982if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12984$as_echo "failed" >&6; }
12985else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12987$as_echo "ok" >&6; }
12988fi
12989
cristyda16f162011-02-19 23:52:17 +000012990# Response file support.
12991if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12992 nm_file_list_spec='@'
12993elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12994 nm_file_list_spec='@'
12995fi
cristy73bd4a52010-10-05 11:24:23 +000012996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
cristyda16f162011-02-19 23:52:17 +000013017
13018
13019
13020
13021
13022
13023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13024$as_echo_n "checking for sysroot... " >&6; }
13025
13026# Check whether --with-sysroot was given.
13027if test "${with_sysroot+set}" = set; then :
13028 withval=$with_sysroot;
13029else
13030 with_sysroot=no
13031fi
13032
13033
13034lt_sysroot=
13035case ${with_sysroot} in #(
13036 yes)
13037 if test "$GCC" = yes; then
13038 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13039 fi
13040 ;; #(
13041 /*)
13042 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13043 ;; #(
13044 no|'')
13045 ;; #(
13046 *)
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13048$as_echo "${with_sysroot}" >&6; }
13049 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13050 ;;
13051esac
13052
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13054$as_echo "${lt_sysroot:-no}" >&6; }
13055
13056
13057
13058
13059
cristy73bd4a52010-10-05 11:24:23 +000013060# Check whether --enable-libtool-lock was given.
13061if test "${enable_libtool_lock+set}" = set; then :
13062 enableval=$enable_libtool_lock;
13063fi
13064
13065test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13066
13067# Some flags need to be propagated to the compiler or linker for good
13068# libtool support.
13069case $host in
13070ia64-*-hpux*)
13071 # Find out which ABI we are using.
13072 echo 'int i;' > conftest.$ac_ext
13073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13074 (eval $ac_compile) 2>&5
13075 ac_status=$?
13076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13077 test $ac_status = 0; }; then
13078 case `/usr/bin/file conftest.$ac_objext` in
13079 *ELF-32*)
13080 HPUX_IA64_MODE="32"
13081 ;;
13082 *ELF-64*)
13083 HPUX_IA64_MODE="64"
13084 ;;
13085 esac
13086 fi
13087 rm -rf conftest*
13088 ;;
13089*-*-irix6*)
13090 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000013091 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13093 (eval $ac_compile) 2>&5
13094 ac_status=$?
13095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13096 test $ac_status = 0; }; then
13097 if test "$lt_cv_prog_gnu_ld" = yes; then
13098 case `/usr/bin/file conftest.$ac_objext` in
13099 *32-bit*)
13100 LD="${LD-ld} -melf32bsmip"
13101 ;;
13102 *N32*)
13103 LD="${LD-ld} -melf32bmipn32"
13104 ;;
13105 *64-bit*)
13106 LD="${LD-ld} -melf64bmip"
13107 ;;
13108 esac
13109 else
13110 case `/usr/bin/file conftest.$ac_objext` in
13111 *32-bit*)
13112 LD="${LD-ld} -32"
13113 ;;
13114 *N32*)
13115 LD="${LD-ld} -n32"
13116 ;;
13117 *64-bit*)
13118 LD="${LD-ld} -64"
13119 ;;
13120 esac
13121 fi
13122 fi
13123 rm -rf conftest*
13124 ;;
13125
cristyd95b7a52013-10-23 13:12:53 +000013126x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013127s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13128 # Find out which ABI we are using.
13129 echo 'int i;' > conftest.$ac_ext
13130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13131 (eval $ac_compile) 2>&5
13132 ac_status=$?
13133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13134 test $ac_status = 0; }; then
13135 case `/usr/bin/file conftest.o` in
13136 *32-bit*)
13137 case $host in
13138 x86_64-*kfreebsd*-gnu)
13139 LD="${LD-ld} -m elf_i386_fbsd"
13140 ;;
13141 x86_64-*linux*)
13142 LD="${LD-ld} -m elf_i386"
13143 ;;
cristya5bda012013-11-03 18:05:38 +000013144 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013145 LD="${LD-ld} -m elf32lppclinux"
13146 ;;
cristya5bda012013-11-03 18:05:38 +000013147 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013148 LD="${LD-ld} -m elf32ppclinux"
13149 ;;
13150 s390x-*linux*)
13151 LD="${LD-ld} -m elf_s390"
13152 ;;
13153 sparc64-*linux*)
13154 LD="${LD-ld} -m elf32_sparc"
13155 ;;
13156 esac
13157 ;;
13158 *64-bit*)
13159 case $host in
13160 x86_64-*kfreebsd*-gnu)
13161 LD="${LD-ld} -m elf_x86_64_fbsd"
13162 ;;
13163 x86_64-*linux*)
13164 LD="${LD-ld} -m elf_x86_64"
13165 ;;
cristyd95b7a52013-10-23 13:12:53 +000013166 powerpcle-*linux*)
13167 LD="${LD-ld} -m elf64lppc"
13168 ;;
13169 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013170 LD="${LD-ld} -m elf64ppc"
13171 ;;
13172 s390*-*linux*|s390*-*tpf*)
13173 LD="${LD-ld} -m elf64_s390"
13174 ;;
13175 sparc*-*linux*)
13176 LD="${LD-ld} -m elf64_sparc"
13177 ;;
13178 esac
13179 ;;
13180 esac
13181 fi
13182 rm -rf conftest*
13183 ;;
13184
13185*-*-sco3.2v5*)
13186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13187 SAVE_CFLAGS="$CFLAGS"
13188 CFLAGS="$CFLAGS -belf"
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13190$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013191if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013192 $as_echo_n "(cached) " >&6
13193else
13194 ac_ext=c
13195ac_cpp='$CPP $CPPFLAGS'
13196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13198ac_compiler_gnu=$ac_cv_c_compiler_gnu
13199
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201/* end confdefs.h. */
13202
13203int
13204main ()
13205{
13206
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211if ac_fn_c_try_link "$LINENO"; then :
13212 lt_cv_cc_needs_belf=yes
13213else
13214 lt_cv_cc_needs_belf=no
13215fi
13216rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 ac_ext=c
13219ac_cpp='$CPP $CPPFLAGS'
13220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13222ac_compiler_gnu=$ac_cv_c_compiler_gnu
13223
13224fi
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13226$as_echo "$lt_cv_cc_needs_belf" >&6; }
13227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13229 CFLAGS="$SAVE_CFLAGS"
13230 fi
13231 ;;
cristy99bd5232011-12-07 14:38:20 +000013232*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000013233 # Find out which ABI we are using.
13234 echo 'int i;' > conftest.$ac_ext
13235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13236 (eval $ac_compile) 2>&5
13237 ac_status=$?
13238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13239 test $ac_status = 0; }; then
13240 case `/usr/bin/file conftest.o` in
13241 *64-bit*)
13242 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013243 yes*)
13244 case $host in
13245 i?86-*-solaris*)
13246 LD="${LD-ld} -m elf_x86_64"
13247 ;;
13248 sparc*-*-solaris*)
13249 LD="${LD-ld} -m elf64_sparc"
13250 ;;
13251 esac
13252 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13253 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13254 LD="${LD-ld}_sol2"
13255 fi
13256 ;;
cristy73bd4a52010-10-05 11:24:23 +000013257 *)
13258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13259 LD="${LD-ld} -64"
13260 fi
13261 ;;
13262 esac
13263 ;;
13264 esac
13265 fi
13266 rm -rf conftest*
13267 ;;
13268esac
13269
13270need_locks="$enable_libtool_lock"
13271
cristyda16f162011-02-19 23:52:17 +000013272if test -n "$ac_tool_prefix"; then
13273 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13274set dummy ${ac_tool_prefix}mt; ac_word=$2
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276$as_echo_n "checking for $ac_word... " >&6; }
13277if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13278 $as_echo_n "(cached) " >&6
13279else
13280 if test -n "$MANIFEST_TOOL"; then
13281 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13282else
13283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284for as_dir in $PATH
13285do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013290 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13293 fi
13294done
13295 done
13296IFS=$as_save_IFS
13297
13298fi
13299fi
13300MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13301if test -n "$MANIFEST_TOOL"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13303$as_echo "$MANIFEST_TOOL" >&6; }
13304else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306$as_echo "no" >&6; }
13307fi
13308
13309
13310fi
13311if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13312 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13313 # Extract the first word of "mt", so it can be a program name with args.
13314set dummy mt; ac_word=$2
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316$as_echo_n "checking for $ac_word... " >&6; }
13317if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319else
13320 if test -n "$ac_ct_MANIFEST_TOOL"; then
13321 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13322else
13323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324for as_dir in $PATH
13325do
13326 IFS=$as_save_IFS
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013330 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13332 break 2
13333 fi
13334done
13335 done
13336IFS=$as_save_IFS
13337
13338fi
13339fi
13340ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13341if test -n "$ac_ct_MANIFEST_TOOL"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13343$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13344else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346$as_echo "no" >&6; }
13347fi
13348
13349 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13350 MANIFEST_TOOL=":"
13351 else
13352 case $cross_compiling:$ac_tool_warned in
13353yes:)
13354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13356ac_tool_warned=yes ;;
13357esac
13358 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13359 fi
13360else
13361 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13362fi
13363
13364test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13366$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13367if ${lt_cv_path_mainfest_tool+:} false; then :
13368 $as_echo_n "(cached) " >&6
13369else
13370 lt_cv_path_mainfest_tool=no
13371 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13372 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13373 cat conftest.err >&5
13374 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13375 lt_cv_path_mainfest_tool=yes
13376 fi
13377 rm -f conftest*
13378fi
13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13380$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13381if test "x$lt_cv_path_mainfest_tool" != xyes; then
13382 MANIFEST_TOOL=:
13383fi
13384
13385
13386
13387
13388
cristy73bd4a52010-10-05 11:24:23 +000013389
13390 case $host_os in
13391 rhapsody* | darwin*)
13392 if test -n "$ac_tool_prefix"; then
13393 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13394set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013397if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013398 $as_echo_n "(cached) " >&6
13399else
13400 if test -n "$DSYMUTIL"; then
13401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13402else
13403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404for as_dir in $PATH
13405do
13406 IFS=$as_save_IFS
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013410 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 break 2
13413 fi
13414done
13415 done
13416IFS=$as_save_IFS
13417
13418fi
13419fi
13420DSYMUTIL=$ac_cv_prog_DSYMUTIL
13421if test -n "$DSYMUTIL"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13423$as_echo "$DSYMUTIL" >&6; }
13424else
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426$as_echo "no" >&6; }
13427fi
13428
13429
13430fi
13431if test -z "$ac_cv_prog_DSYMUTIL"; then
13432 ac_ct_DSYMUTIL=$DSYMUTIL
13433 # Extract the first word of "dsymutil", so it can be a program name with args.
13434set dummy dsymutil; ac_word=$2
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013437if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013438 $as_echo_n "(cached) " >&6
13439else
13440 if test -n "$ac_ct_DSYMUTIL"; then
13441 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13442else
13443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444for as_dir in $PATH
13445do
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013450 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13453 fi
13454done
13455 done
13456IFS=$as_save_IFS
13457
13458fi
13459fi
13460ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13461if test -n "$ac_ct_DSYMUTIL"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13463$as_echo "$ac_ct_DSYMUTIL" >&6; }
13464else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466$as_echo "no" >&6; }
13467fi
13468
13469 if test "x$ac_ct_DSYMUTIL" = x; then
13470 DSYMUTIL=":"
13471 else
13472 case $cross_compiling:$ac_tool_warned in
13473yes:)
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13476ac_tool_warned=yes ;;
13477esac
13478 DSYMUTIL=$ac_ct_DSYMUTIL
13479 fi
13480else
13481 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13482fi
13483
13484 if test -n "$ac_tool_prefix"; then
13485 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13486set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013489if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013490 $as_echo_n "(cached) " >&6
13491else
13492 if test -n "$NMEDIT"; then
13493 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13494else
13495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496for as_dir in $PATH
13497do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504 break 2
13505 fi
13506done
13507 done
13508IFS=$as_save_IFS
13509
13510fi
13511fi
13512NMEDIT=$ac_cv_prog_NMEDIT
13513if test -n "$NMEDIT"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13515$as_echo "$NMEDIT" >&6; }
13516else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518$as_echo "no" >&6; }
13519fi
13520
13521
13522fi
13523if test -z "$ac_cv_prog_NMEDIT"; then
13524 ac_ct_NMEDIT=$NMEDIT
13525 # Extract the first word of "nmedit", so it can be a program name with args.
13526set dummy nmedit; ac_word=$2
13527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013529if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013530 $as_echo_n "(cached) " >&6
13531else
13532 if test -n "$ac_ct_NMEDIT"; then
13533 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13534else
13535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536for as_dir in $PATH
13537do
13538 IFS=$as_save_IFS
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013542 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 break 2
13545 fi
13546done
13547 done
13548IFS=$as_save_IFS
13549
13550fi
13551fi
13552ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13553if test -n "$ac_ct_NMEDIT"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13555$as_echo "$ac_ct_NMEDIT" >&6; }
13556else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558$as_echo "no" >&6; }
13559fi
13560
13561 if test "x$ac_ct_NMEDIT" = x; then
13562 NMEDIT=":"
13563 else
13564 case $cross_compiling:$ac_tool_warned in
13565yes:)
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13568ac_tool_warned=yes ;;
13569esac
13570 NMEDIT=$ac_ct_NMEDIT
13571 fi
13572else
13573 NMEDIT="$ac_cv_prog_NMEDIT"
13574fi
13575
13576 if test -n "$ac_tool_prefix"; then
13577 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13578set dummy ${ac_tool_prefix}lipo; ac_word=$2
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013581if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013582 $as_echo_n "(cached) " >&6
13583else
13584 if test -n "$LIPO"; then
13585 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13586else
13587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588for as_dir in $PATH
13589do
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13597 fi
13598done
13599 done
13600IFS=$as_save_IFS
13601
13602fi
13603fi
13604LIPO=$ac_cv_prog_LIPO
13605if test -n "$LIPO"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13607$as_echo "$LIPO" >&6; }
13608else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610$as_echo "no" >&6; }
13611fi
13612
13613
13614fi
13615if test -z "$ac_cv_prog_LIPO"; then
13616 ac_ct_LIPO=$LIPO
13617 # Extract the first word of "lipo", so it can be a program name with args.
13618set dummy lipo; ac_word=$2
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013621if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013622 $as_echo_n "(cached) " >&6
13623else
13624 if test -n "$ac_ct_LIPO"; then
13625 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13626else
13627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628for as_dir in $PATH
13629do
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013634 ac_cv_prog_ac_ct_LIPO="lipo"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13637 fi
13638done
13639 done
13640IFS=$as_save_IFS
13641
13642fi
13643fi
13644ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13645if test -n "$ac_ct_LIPO"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13647$as_echo "$ac_ct_LIPO" >&6; }
13648else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
13651fi
13652
13653 if test "x$ac_ct_LIPO" = x; then
13654 LIPO=":"
13655 else
13656 case $cross_compiling:$ac_tool_warned in
13657yes:)
13658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13660ac_tool_warned=yes ;;
13661esac
13662 LIPO=$ac_ct_LIPO
13663 fi
13664else
13665 LIPO="$ac_cv_prog_LIPO"
13666fi
13667
13668 if test -n "$ac_tool_prefix"; then
13669 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13670set dummy ${ac_tool_prefix}otool; ac_word=$2
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013673if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013674 $as_echo_n "(cached) " >&6
13675else
13676 if test -n "$OTOOL"; then
13677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13678else
13679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680for as_dir in $PATH
13681do
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 break 2
13689 fi
13690done
13691 done
13692IFS=$as_save_IFS
13693
13694fi
13695fi
13696OTOOL=$ac_cv_prog_OTOOL
13697if test -n "$OTOOL"; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13699$as_echo "$OTOOL" >&6; }
13700else
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702$as_echo "no" >&6; }
13703fi
13704
13705
13706fi
13707if test -z "$ac_cv_prog_OTOOL"; then
13708 ac_ct_OTOOL=$OTOOL
13709 # Extract the first word of "otool", so it can be a program name with args.
13710set dummy otool; ac_word=$2
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013713if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013714 $as_echo_n "(cached) " >&6
13715else
13716 if test -n "$ac_ct_OTOOL"; then
13717 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13718else
13719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720for as_dir in $PATH
13721do
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013726 ac_cv_prog_ac_ct_OTOOL="otool"
13727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13729 fi
13730done
13731 done
13732IFS=$as_save_IFS
13733
13734fi
13735fi
13736ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13737if test -n "$ac_ct_OTOOL"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13739$as_echo "$ac_ct_OTOOL" >&6; }
13740else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742$as_echo "no" >&6; }
13743fi
13744
13745 if test "x$ac_ct_OTOOL" = x; then
13746 OTOOL=":"
13747 else
13748 case $cross_compiling:$ac_tool_warned in
13749yes:)
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13752ac_tool_warned=yes ;;
13753esac
13754 OTOOL=$ac_ct_OTOOL
13755 fi
13756else
13757 OTOOL="$ac_cv_prog_OTOOL"
13758fi
13759
13760 if test -n "$ac_tool_prefix"; then
13761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13762set dummy ${ac_tool_prefix}otool64; ac_word=$2
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013765if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013766 $as_echo_n "(cached) " >&6
13767else
13768 if test -n "$OTOOL64"; then
13769 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13770else
13771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772for as_dir in $PATH
13773do
13774 IFS=$as_save_IFS
13775 test -z "$as_dir" && as_dir=.
13776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13780 break 2
13781 fi
13782done
13783 done
13784IFS=$as_save_IFS
13785
13786fi
13787fi
13788OTOOL64=$ac_cv_prog_OTOOL64
13789if test -n "$OTOOL64"; then
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13791$as_echo "$OTOOL64" >&6; }
13792else
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794$as_echo "no" >&6; }
13795fi
13796
13797
13798fi
13799if test -z "$ac_cv_prog_OTOOL64"; then
13800 ac_ct_OTOOL64=$OTOOL64
13801 # Extract the first word of "otool64", so it can be a program name with args.
13802set dummy otool64; ac_word=$2
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13804$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013805if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013806 $as_echo_n "(cached) " >&6
13807else
13808 if test -n "$ac_ct_OTOOL64"; then
13809 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13810else
13811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812for as_dir in $PATH
13813do
13814 IFS=$as_save_IFS
13815 test -z "$as_dir" && as_dir=.
13816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013818 ac_cv_prog_ac_ct_OTOOL64="otool64"
13819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13820 break 2
13821 fi
13822done
13823 done
13824IFS=$as_save_IFS
13825
13826fi
13827fi
13828ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13829if test -n "$ac_ct_OTOOL64"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13831$as_echo "$ac_ct_OTOOL64" >&6; }
13832else
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834$as_echo "no" >&6; }
13835fi
13836
13837 if test "x$ac_ct_OTOOL64" = x; then
13838 OTOOL64=":"
13839 else
13840 case $cross_compiling:$ac_tool_warned in
13841yes:)
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13844ac_tool_warned=yes ;;
13845esac
13846 OTOOL64=$ac_ct_OTOOL64
13847 fi
13848else
13849 OTOOL64="$ac_cv_prog_OTOOL64"
13850fi
13851
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
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13879$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013880if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013881 $as_echo_n "(cached) " >&6
13882else
13883 lt_cv_apple_cc_single_mod=no
13884 if test -z "${LT_MULTI_MODULE}"; then
13885 # By default we will add the -single_module flag. You can override
13886 # by either setting the environment variable LT_MULTI_MODULE
13887 # non-empty at configure time, or by adding -multi_module to the
13888 # link flags.
13889 rm -rf libconftest.dylib*
13890 echo "int foo(void){return 1;}" > conftest.c
13891 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13892-dynamiclib -Wl,-single_module conftest.c" >&5
13893 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13894 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13895 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013896 # If there is a non-empty error log, and "single_module"
13897 # appears in it, assume the flag caused a linker warning
13898 if test -s conftest.err && $GREP single_module conftest.err; then
13899 cat conftest.err >&5
13900 # Otherwise, if the output was created with a 0 exit code from
13901 # the compiler, it worked.
13902 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013903 lt_cv_apple_cc_single_mod=yes
13904 else
13905 cat conftest.err >&5
13906 fi
13907 rm -rf libconftest.dylib*
13908 rm -f conftest.*
13909 fi
13910fi
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13912$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013913
cristy73bd4a52010-10-05 11:24:23 +000013914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13915$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013916if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013917 $as_echo_n "(cached) " >&6
13918else
13919 lt_cv_ld_exported_symbols_list=no
13920 save_LDFLAGS=$LDFLAGS
13921 echo "_main" > conftest.sym
13922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h. */
13925
13926int
13927main ()
13928{
13929
13930 ;
13931 return 0;
13932}
13933_ACEOF
13934if ac_fn_c_try_link "$LINENO"; then :
13935 lt_cv_ld_exported_symbols_list=yes
13936else
13937 lt_cv_ld_exported_symbols_list=no
13938fi
13939rm -f core conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 LDFLAGS="$save_LDFLAGS"
13942
13943fi
13944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13945$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013946
cristy0c60a692010-11-04 01:09:47 +000013947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13948$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013949if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013950 $as_echo_n "(cached) " >&6
13951else
13952 lt_cv_ld_force_load=no
13953 cat > conftest.c << _LT_EOF
13954int forced_loaded() { return 2;}
13955_LT_EOF
13956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13958 echo "$AR cru libconftest.a conftest.o" >&5
13959 $AR cru libconftest.a conftest.o 2>&5
13960 echo "$RANLIB libconftest.a" >&5
13961 $RANLIB libconftest.a 2>&5
13962 cat > conftest.c << _LT_EOF
13963int main() { return 0;}
13964_LT_EOF
13965 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13966 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13967 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013968 if test -s conftest.err && $GREP force_load conftest.err; then
13969 cat conftest.err >&5
13970 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013971 lt_cv_ld_force_load=yes
13972 else
13973 cat conftest.err >&5
13974 fi
13975 rm -f conftest.err libconftest.a conftest conftest.c
13976 rm -rf conftest.dSYM
13977
13978fi
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13980$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013981 case $host_os in
13982 rhapsody* | darwin1.[012])
13983 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13984 darwin1.*)
13985 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13986 darwin*) # darwin 5.x on
13987 # if running on 10.5 or later, the deployment target defaults
13988 # to the OS version, if on x86, and 10.4, the deployment
13989 # target defaults to 10.4. Don't you love it?
13990 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13991 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13993 10.[012]*)
13994 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13995 10.*)
13996 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13997 esac
13998 ;;
13999 esac
14000 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14001 _lt_dar_single_mod='$single_module'
14002 fi
14003 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14004 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14005 else
14006 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14007 fi
cristy0c60a692010-11-04 01:09:47 +000014008 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000014009 _lt_dsymutil='~$DSYMUTIL $lib || :'
14010 else
14011 _lt_dsymutil=
14012 fi
14013 ;;
14014 esac
14015
14016for ac_header in dlfcn.h
14017do :
14018 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14019"
cristyda16f162011-02-19 23:52:17 +000014020if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014021 cat >>confdefs.h <<_ACEOF
14022#define HAVE_DLFCN_H 1
14023_ACEOF
14024
14025fi
14026
14027done
14028
14029
14030
cristy73bd4a52010-10-05 11:24:23 +000014031
cristyda16f162011-02-19 23:52:17 +000014032func_stripname_cnf ()
14033{
14034 case ${2} in
14035 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14036 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14037 esac
14038} # func_stripname_cnf
14039
14040
14041
cristy73bd4a52010-10-05 11:24:23 +000014042
14043
14044# Set options
14045enable_win32_dll=yes
14046
14047case $host in
cristy0c60a692010-11-04 01:09:47 +000014048*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014049 if test -n "$ac_tool_prefix"; then
14050 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14051set dummy ${ac_tool_prefix}as; ac_word=$2
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014054if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014055 $as_echo_n "(cached) " >&6
14056else
14057 if test -n "$AS"; then
14058 ac_cv_prog_AS="$AS" # Let the user override the test.
14059else
14060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061for as_dir in $PATH
14062do
14063 IFS=$as_save_IFS
14064 test -z "$as_dir" && as_dir=.
14065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014067 ac_cv_prog_AS="${ac_tool_prefix}as"
14068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 break 2
14070 fi
14071done
14072 done
14073IFS=$as_save_IFS
14074
14075fi
14076fi
14077AS=$ac_cv_prog_AS
14078if test -n "$AS"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14080$as_echo "$AS" >&6; }
14081else
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083$as_echo "no" >&6; }
14084fi
14085
14086
14087fi
14088if test -z "$ac_cv_prog_AS"; then
14089 ac_ct_AS=$AS
14090 # Extract the first word of "as", so it can be a program name with args.
14091set dummy as; ac_word=$2
14092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014094if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014095 $as_echo_n "(cached) " >&6
14096else
14097 if test -n "$ac_ct_AS"; then
14098 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14099else
14100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101for as_dir in $PATH
14102do
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014107 ac_cv_prog_ac_ct_AS="as"
14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14110 fi
14111done
14112 done
14113IFS=$as_save_IFS
14114
14115fi
14116fi
14117ac_ct_AS=$ac_cv_prog_ac_ct_AS
14118if test -n "$ac_ct_AS"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14120$as_echo "$ac_ct_AS" >&6; }
14121else
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123$as_echo "no" >&6; }
14124fi
14125
14126 if test "x$ac_ct_AS" = x; then
14127 AS="false"
14128 else
14129 case $cross_compiling:$ac_tool_warned in
14130yes:)
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14133ac_tool_warned=yes ;;
14134esac
14135 AS=$ac_ct_AS
14136 fi
14137else
14138 AS="$ac_cv_prog_AS"
14139fi
14140
14141 if test -n "$ac_tool_prefix"; then
14142 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14143set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014146if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014147 $as_echo_n "(cached) " >&6
14148else
14149 if test -n "$DLLTOOL"; then
14150 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14151else
14152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153for as_dir in $PATH
14154do
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014159 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 break 2
14162 fi
14163done
14164 done
14165IFS=$as_save_IFS
14166
14167fi
14168fi
14169DLLTOOL=$ac_cv_prog_DLLTOOL
14170if test -n "$DLLTOOL"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14172$as_echo "$DLLTOOL" >&6; }
14173else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175$as_echo "no" >&6; }
14176fi
14177
14178
14179fi
14180if test -z "$ac_cv_prog_DLLTOOL"; then
14181 ac_ct_DLLTOOL=$DLLTOOL
14182 # Extract the first word of "dlltool", so it can be a program name with args.
14183set dummy dlltool; ac_word=$2
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014186if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014187 $as_echo_n "(cached) " >&6
14188else
14189 if test -n "$ac_ct_DLLTOOL"; then
14190 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14191else
14192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14193for as_dir in $PATH
14194do
14195 IFS=$as_save_IFS
14196 test -z "$as_dir" && as_dir=.
14197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014199 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14201 break 2
14202 fi
14203done
14204 done
14205IFS=$as_save_IFS
14206
14207fi
14208fi
14209ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14210if test -n "$ac_ct_DLLTOOL"; then
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14212$as_echo "$ac_ct_DLLTOOL" >&6; }
14213else
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14215$as_echo "no" >&6; }
14216fi
14217
14218 if test "x$ac_ct_DLLTOOL" = x; then
14219 DLLTOOL="false"
14220 else
14221 case $cross_compiling:$ac_tool_warned in
14222yes:)
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14225ac_tool_warned=yes ;;
14226esac
14227 DLLTOOL=$ac_ct_DLLTOOL
14228 fi
14229else
14230 DLLTOOL="$ac_cv_prog_DLLTOOL"
14231fi
14232
14233 if test -n "$ac_tool_prefix"; then
14234 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14235set dummy ${ac_tool_prefix}objdump; ac_word=$2
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014238if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014239 $as_echo_n "(cached) " >&6
14240else
14241 if test -n "$OBJDUMP"; then
14242 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14243else
14244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14245for as_dir in $PATH
14246do
14247 IFS=$as_save_IFS
14248 test -z "$as_dir" && as_dir=.
14249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014251 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14253 break 2
14254 fi
14255done
14256 done
14257IFS=$as_save_IFS
14258
14259fi
14260fi
14261OBJDUMP=$ac_cv_prog_OBJDUMP
14262if test -n "$OBJDUMP"; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14264$as_echo "$OBJDUMP" >&6; }
14265else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267$as_echo "no" >&6; }
14268fi
14269
14270
14271fi
14272if test -z "$ac_cv_prog_OBJDUMP"; then
14273 ac_ct_OBJDUMP=$OBJDUMP
14274 # Extract the first word of "objdump", so it can be a program name with args.
14275set dummy objdump; ac_word=$2
14276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14277$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014278if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014279 $as_echo_n "(cached) " >&6
14280else
14281 if test -n "$ac_ct_OBJDUMP"; then
14282 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14283else
14284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285for as_dir in $PATH
14286do
14287 IFS=$as_save_IFS
14288 test -z "$as_dir" && as_dir=.
14289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014291 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 break 2
14294 fi
14295done
14296 done
14297IFS=$as_save_IFS
14298
14299fi
14300fi
14301ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14302if test -n "$ac_ct_OBJDUMP"; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14304$as_echo "$ac_ct_OBJDUMP" >&6; }
14305else
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307$as_echo "no" >&6; }
14308fi
14309
14310 if test "x$ac_ct_OBJDUMP" = x; then
14311 OBJDUMP="false"
14312 else
14313 case $cross_compiling:$ac_tool_warned in
14314yes:)
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14317ac_tool_warned=yes ;;
14318esac
14319 OBJDUMP=$ac_ct_OBJDUMP
14320 fi
14321else
14322 OBJDUMP="$ac_cv_prog_OBJDUMP"
14323fi
14324
14325 ;;
14326esac
14327
14328test -z "$AS" && AS=as
14329
14330
14331
14332
14333
14334test -z "$DLLTOOL" && DLLTOOL=dlltool
14335
14336
14337
14338
14339
14340test -z "$OBJDUMP" && OBJDUMP=objdump
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350 # Check whether --enable-shared was given.
14351if test "${enable_shared+set}" = set; then :
14352 enableval=$enable_shared; p=${PACKAGE-default}
14353 case $enableval in
14354 yes) enable_shared=yes ;;
14355 no) enable_shared=no ;;
14356 *)
14357 enable_shared=no
14358 # Look at the argument we got. We use all the common list separators.
14359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14360 for pkg in $enableval; do
14361 IFS="$lt_save_ifs"
14362 if test "X$pkg" = "X$p"; then
14363 enable_shared=yes
14364 fi
14365 done
14366 IFS="$lt_save_ifs"
14367 ;;
14368 esac
14369else
14370 enable_shared=yes
14371fi
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381 # Check whether --enable-static was given.
14382if test "${enable_static+set}" = set; then :
14383 enableval=$enable_static; p=${PACKAGE-default}
14384 case $enableval in
14385 yes) enable_static=yes ;;
14386 no) enable_static=no ;;
14387 *)
14388 enable_static=no
14389 # Look at the argument we got. We use all the common list separators.
14390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14391 for pkg in $enableval; do
14392 IFS="$lt_save_ifs"
14393 if test "X$pkg" = "X$p"; then
14394 enable_static=yes
14395 fi
14396 done
14397 IFS="$lt_save_ifs"
14398 ;;
14399 esac
14400else
14401 enable_static=yes
14402fi
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413# Check whether --with-pic was given.
14414if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014415 withval=$with_pic; lt_p=${PACKAGE-default}
14416 case $withval in
14417 yes|no) pic_mode=$withval ;;
14418 *)
14419 pic_mode=default
14420 # Look at the argument we got. We use all the common list separators.
14421 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14422 for lt_pkg in $withval; do
14423 IFS="$lt_save_ifs"
14424 if test "X$lt_pkg" = "X$lt_p"; then
14425 pic_mode=yes
14426 fi
14427 done
14428 IFS="$lt_save_ifs"
14429 ;;
14430 esac
cristy73bd4a52010-10-05 11:24:23 +000014431else
14432 pic_mode=default
14433fi
14434
14435
14436test -z "$pic_mode" && pic_mode=default
14437
14438
14439
14440
14441
14442
14443
14444 # Check whether --enable-fast-install was given.
14445if test "${enable_fast_install+set}" = set; then :
14446 enableval=$enable_fast_install; p=${PACKAGE-default}
14447 case $enableval in
14448 yes) enable_fast_install=yes ;;
14449 no) enable_fast_install=no ;;
14450 *)
14451 enable_fast_install=no
14452 # Look at the argument we got. We use all the common list separators.
14453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14454 for pkg in $enableval; do
14455 IFS="$lt_save_ifs"
14456 if test "X$pkg" = "X$p"; then
14457 enable_fast_install=yes
14458 fi
14459 done
14460 IFS="$lt_save_ifs"
14461 ;;
14462 esac
14463else
14464 enable_fast_install=yes
14465fi
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477# This can be used to rebuild libtool when needed
14478LIBTOOL_DEPS="$ltmain"
14479
14480# Always use our own libtool.
14481LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
cristy0c60a692010-11-04 01:09:47 +000014507
cristy99bd5232011-12-07 14:38:20 +000014508
14509
14510
14511
cristy73bd4a52010-10-05 11:24:23 +000014512test -z "$LN_S" && LN_S="ln -s"
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527if test -n "${ZSH_VERSION+set}" ; then
14528 setopt NO_GLOB_SUBST
14529fi
14530
14531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14532$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014533if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014534 $as_echo_n "(cached) " >&6
14535else
14536 rm -f .libs 2>/dev/null
14537mkdir .libs 2>/dev/null
14538if test -d .libs; then
14539 lt_cv_objdir=.libs
14540else
14541 # MS-DOS does not allow filenames that begin with a dot.
14542 lt_cv_objdir=_libs
14543fi
14544rmdir .libs 2>/dev/null
14545fi
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14547$as_echo "$lt_cv_objdir" >&6; }
14548objdir=$lt_cv_objdir
14549
14550
14551
14552
14553
14554cat >>confdefs.h <<_ACEOF
14555#define LT_OBJDIR "$lt_cv_objdir/"
14556_ACEOF
14557
14558
14559
14560
cristy73bd4a52010-10-05 11:24:23 +000014561case $host_os in
14562aix3*)
14563 # AIX sometimes has problems with the GCC collect2 program. For some
14564 # reason, if we set the COLLECT_NAMES environment variable, the problems
14565 # vanish in a puff of smoke.
14566 if test "X${COLLECT_NAMES+set}" != Xset; then
14567 COLLECT_NAMES=
14568 export COLLECT_NAMES
14569 fi
14570 ;;
14571esac
14572
cristy73bd4a52010-10-05 11:24:23 +000014573# Global variables:
14574ofile=libtool
14575can_build_shared=yes
14576
14577# All known linkers require a `.a' archive for static linking (except MSVC,
14578# which needs '.lib').
14579libext=a
14580
14581with_gnu_ld="$lt_cv_prog_gnu_ld"
14582
14583old_CC="$CC"
14584old_CFLAGS="$CFLAGS"
14585
14586# Set sane defaults for various variables
14587test -z "$CC" && CC=cc
14588test -z "$LTCC" && LTCC=$CC
14589test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14590test -z "$LD" && LD=ld
14591test -z "$ac_objext" && ac_objext=o
14592
14593for cc_temp in $compiler""; do
14594 case $cc_temp in
14595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14597 \-*) ;;
14598 *) break;;
14599 esac
14600done
cristy0c60a692010-11-04 01:09:47 +000014601cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000014602
14603
14604# Only perform the check for file, if the check method requires it
14605test -z "$MAGIC_CMD" && MAGIC_CMD=file
14606case $deplibs_check_method in
14607file_magic*)
14608 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14610$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014611if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014612 $as_echo_n "(cached) " >&6
14613else
14614 case $MAGIC_CMD in
14615[\\/*] | ?:[\\/]*)
14616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14617 ;;
14618*)
14619 lt_save_MAGIC_CMD="$MAGIC_CMD"
14620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14622 for ac_dir in $ac_dummy; do
14623 IFS="$lt_save_ifs"
14624 test -z "$ac_dir" && ac_dir=.
14625 if test -f $ac_dir/${ac_tool_prefix}file; then
14626 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14627 if test -n "$file_magic_test_file"; then
14628 case $deplibs_check_method in
14629 "file_magic "*)
14630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14633 $EGREP "$file_magic_regex" > /dev/null; then
14634 :
14635 else
14636 cat <<_LT_EOF 1>&2
14637
14638*** Warning: the command libtool uses to detect shared libraries,
14639*** $file_magic_cmd, produces output that libtool cannot recognize.
14640*** The result is that libtool may fail to recognize shared libraries
14641*** as such. This will affect the creation of libtool libraries that
14642*** depend on shared libraries, but programs linked with such libtool
14643*** libraries will work regardless of this problem. Nevertheless, you
14644*** may want to report the problem to your system manager and/or to
14645*** bug-libtool@gnu.org
14646
14647_LT_EOF
14648 fi ;;
14649 esac
14650 fi
14651 break
14652 fi
14653 done
14654 IFS="$lt_save_ifs"
14655 MAGIC_CMD="$lt_save_MAGIC_CMD"
14656 ;;
14657esac
14658fi
14659
14660MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14661if test -n "$MAGIC_CMD"; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14663$as_echo "$MAGIC_CMD" >&6; }
14664else
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666$as_echo "no" >&6; }
14667fi
14668
14669
14670
14671
14672
14673if test -z "$lt_cv_path_MAGIC_CMD"; then
14674 if test -n "$ac_tool_prefix"; then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14676$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014677if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014678 $as_echo_n "(cached) " >&6
14679else
14680 case $MAGIC_CMD in
14681[\\/*] | ?:[\\/]*)
14682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14683 ;;
14684*)
14685 lt_save_MAGIC_CMD="$MAGIC_CMD"
14686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14688 for ac_dir in $ac_dummy; do
14689 IFS="$lt_save_ifs"
14690 test -z "$ac_dir" && ac_dir=.
14691 if test -f $ac_dir/file; then
14692 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14693 if test -n "$file_magic_test_file"; then
14694 case $deplibs_check_method in
14695 "file_magic "*)
14696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14699 $EGREP "$file_magic_regex" > /dev/null; then
14700 :
14701 else
14702 cat <<_LT_EOF 1>&2
14703
14704*** Warning: the command libtool uses to detect shared libraries,
14705*** $file_magic_cmd, produces output that libtool cannot recognize.
14706*** The result is that libtool may fail to recognize shared libraries
14707*** as such. This will affect the creation of libtool libraries that
14708*** depend on shared libraries, but programs linked with such libtool
14709*** libraries will work regardless of this problem. Nevertheless, you
14710*** may want to report the problem to your system manager and/or to
14711*** bug-libtool@gnu.org
14712
14713_LT_EOF
14714 fi ;;
14715 esac
14716 fi
14717 break
14718 fi
14719 done
14720 IFS="$lt_save_ifs"
14721 MAGIC_CMD="$lt_save_MAGIC_CMD"
14722 ;;
14723esac
14724fi
14725
14726MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727if test -n "$MAGIC_CMD"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14729$as_echo "$MAGIC_CMD" >&6; }
14730else
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732$as_echo "no" >&6; }
14733fi
14734
14735
14736 else
14737 MAGIC_CMD=:
14738 fi
14739fi
14740
14741 fi
14742 ;;
14743esac
14744
14745# Use C for the default configuration in the libtool script
14746
14747lt_save_CC="$CC"
14748ac_ext=c
14749ac_cpp='$CPP $CPPFLAGS'
14750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14752ac_compiler_gnu=$ac_cv_c_compiler_gnu
14753
14754
14755# Source file extension for C test sources.
14756ac_ext=c
14757
14758# Object file extension for compiled C test sources.
14759objext=o
14760objext=$objext
14761
14762# Code to be used in simple compile tests
14763lt_simple_compile_test_code="int some_variable = 0;"
14764
14765# Code to be used in simple link tests
14766lt_simple_link_test_code='int main(){return(0);}'
14767
14768
14769
14770
14771
14772
14773
14774# If no C compiler was specified, use CC.
14775LTCC=${LTCC-"$CC"}
14776
14777# If no C compiler flags were specified, use CFLAGS.
14778LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14779
14780# Allow CC to be a program name with arguments.
14781compiler=$CC
14782
14783# Save the default compiler, since it gets overwritten when the other
14784# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14785compiler_DEFAULT=$CC
14786
14787# save warnings/boilerplate of simple test code
14788ac_outfile=conftest.$ac_objext
14789echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14790eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14791_lt_compiler_boilerplate=`cat conftest.err`
14792$RM conftest*
14793
14794ac_outfile=conftest.$ac_objext
14795echo "$lt_simple_link_test_code" >conftest.$ac_ext
14796eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14797_lt_linker_boilerplate=`cat conftest.err`
14798$RM -r conftest*
14799
14800
14801## CAVEAT EMPTOR:
14802## There is no encapsulation within the following macros, do not change
14803## the running order or otherwise move them around unless you know exactly
14804## what you are doing...
14805if test -n "$compiler"; then
14806
14807lt_prog_compiler_no_builtin_flag=
14808
14809if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014810 case $cc_basename in
14811 nvcc*)
14812 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14813 *)
14814 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14815 esac
cristy73bd4a52010-10-05 11:24:23 +000014816
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14818$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014819if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014820 $as_echo_n "(cached) " >&6
14821else
14822 lt_cv_prog_compiler_rtti_exceptions=no
14823 ac_outfile=conftest.$ac_objext
14824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14825 lt_compiler_flag="-fno-rtti -fno-exceptions"
14826 # Insert the option either (1) after the last *FLAGS variable, or
14827 # (2) before a word containing "conftest.", or (3) at the end.
14828 # Note that $ac_compile itself does not contain backslashes and begins
14829 # with a dollar sign (not a hyphen), so the echo should work correctly.
14830 # The option is referenced via a variable to avoid confusing sed.
14831 lt_compile=`echo "$ac_compile" | $SED \
14832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14834 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014836 (eval "$lt_compile" 2>conftest.err)
14837 ac_status=$?
14838 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014840 if (exit $ac_status) && test -s "$ac_outfile"; then
14841 # The compiler can only warn and ignore the option if not recognized
14842 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14845 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14846 lt_cv_prog_compiler_rtti_exceptions=yes
14847 fi
14848 fi
14849 $RM conftest*
14850
14851fi
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14853$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14854
14855if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14856 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14857else
14858 :
14859fi
14860
14861fi
14862
14863
14864
14865
14866
14867
14868 lt_prog_compiler_wl=
14869lt_prog_compiler_pic=
14870lt_prog_compiler_static=
14871
cristy73bd4a52010-10-05 11:24:23 +000014872
14873 if test "$GCC" = yes; then
14874 lt_prog_compiler_wl='-Wl,'
14875 lt_prog_compiler_static='-static'
14876
14877 case $host_os in
14878 aix*)
14879 # All AIX code is PIC.
14880 if test "$host_cpu" = ia64; then
14881 # AIX 5 now supports IA64 processor
14882 lt_prog_compiler_static='-Bstatic'
14883 fi
14884 ;;
14885
14886 amigaos*)
14887 case $host_cpu in
14888 powerpc)
14889 # see comment about AmigaOS4 .so support
14890 lt_prog_compiler_pic='-fPIC'
14891 ;;
14892 m68k)
14893 # FIXME: we need at least 68020 code to build shared libraries, but
14894 # adding the `-m68020' flag to GCC prevents building anything better,
14895 # like `-m68040'.
14896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14897 ;;
14898 esac
14899 ;;
14900
14901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14902 # PIC is the default for these OSes.
14903 ;;
14904
14905 mingw* | cygwin* | pw32* | os2* | cegcc*)
14906 # This hack is so that the source file can tell whether it is being
14907 # built for inclusion in a dll (and should export symbols for example).
14908 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14909 # (--disable-auto-import) libraries
14910 lt_prog_compiler_pic='-DDLL_EXPORT'
14911 ;;
14912
14913 darwin* | rhapsody*)
14914 # PIC is the default on this platform
14915 # Common symbols not allowed in MH_DYLIB files
14916 lt_prog_compiler_pic='-fno-common'
14917 ;;
14918
cristy0c60a692010-11-04 01:09:47 +000014919 haiku*)
14920 # PIC is the default for Haiku.
14921 # The "-static" flag exists, but is broken.
14922 lt_prog_compiler_static=
14923 ;;
14924
cristy73bd4a52010-10-05 11:24:23 +000014925 hpux*)
14926 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14927 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14928 # sets the default TLS model and affects inlining.
14929 case $host_cpu in
14930 hppa*64*)
14931 # +Z the default
14932 ;;
14933 *)
14934 lt_prog_compiler_pic='-fPIC'
14935 ;;
14936 esac
14937 ;;
14938
14939 interix[3-9]*)
14940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14941 # Instead, we relocate shared libraries at runtime.
14942 ;;
14943
14944 msdosdjgpp*)
14945 # Just because we use GCC doesn't mean we suddenly get shared libraries
14946 # on systems that don't support them.
14947 lt_prog_compiler_can_build_shared=no
14948 enable_shared=no
14949 ;;
14950
14951 *nto* | *qnx*)
14952 # QNX uses GNU C++, but need to define -shared option too, otherwise
14953 # it will coredump.
14954 lt_prog_compiler_pic='-fPIC -shared'
14955 ;;
14956
14957 sysv4*MP*)
14958 if test -d /usr/nec; then
14959 lt_prog_compiler_pic=-Kconform_pic
14960 fi
14961 ;;
14962
14963 *)
14964 lt_prog_compiler_pic='-fPIC'
14965 ;;
14966 esac
cristy0c60a692010-11-04 01:09:47 +000014967
14968 case $cc_basename in
14969 nvcc*) # Cuda Compiler Driver 2.2
14970 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014971 if test -n "$lt_prog_compiler_pic"; then
14972 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14973 fi
cristy0c60a692010-11-04 01:09:47 +000014974 ;;
14975 esac
cristy73bd4a52010-10-05 11:24:23 +000014976 else
14977 # PORTME Check for flag to pass linker flags through the system compiler.
14978 case $host_os in
14979 aix*)
14980 lt_prog_compiler_wl='-Wl,'
14981 if test "$host_cpu" = ia64; then
14982 # AIX 5 now supports IA64 processor
14983 lt_prog_compiler_static='-Bstatic'
14984 else
14985 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14986 fi
14987 ;;
14988
14989 mingw* | cygwin* | pw32* | os2* | cegcc*)
14990 # This hack is so that the source file can tell whether it is being
14991 # built for inclusion in a dll (and should export symbols for example).
14992 lt_prog_compiler_pic='-DDLL_EXPORT'
14993 ;;
14994
14995 hpux9* | hpux10* | hpux11*)
14996 lt_prog_compiler_wl='-Wl,'
14997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14998 # not for PA HP-UX.
14999 case $host_cpu in
15000 hppa*64*|ia64*)
15001 # +Z the default
15002 ;;
15003 *)
15004 lt_prog_compiler_pic='+Z'
15005 ;;
15006 esac
15007 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15008 lt_prog_compiler_static='${wl}-a ${wl}archive'
15009 ;;
15010
15011 irix5* | irix6* | nonstopux*)
15012 lt_prog_compiler_wl='-Wl,'
15013 # PIC (with -KPIC) is the default.
15014 lt_prog_compiler_static='-non_shared'
15015 ;;
15016
cristy0c60a692010-11-04 01:09:47 +000015017 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015018 case $cc_basename in
15019 # old Intel for x86_64 which still supported -KPIC.
15020 ecc*)
15021 lt_prog_compiler_wl='-Wl,'
15022 lt_prog_compiler_pic='-KPIC'
15023 lt_prog_compiler_static='-static'
15024 ;;
15025 # icc used to be incompatible with GCC.
15026 # ICC 10 doesn't accept -KPIC any more.
15027 icc* | ifort*)
15028 lt_prog_compiler_wl='-Wl,'
15029 lt_prog_compiler_pic='-fPIC'
15030 lt_prog_compiler_static='-static'
15031 ;;
15032 # Lahey Fortran 8.1.
15033 lf95*)
15034 lt_prog_compiler_wl='-Wl,'
15035 lt_prog_compiler_pic='--shared'
15036 lt_prog_compiler_static='--static'
15037 ;;
cristyda16f162011-02-19 23:52:17 +000015038 nagfor*)
15039 # NAG Fortran compiler
15040 lt_prog_compiler_wl='-Wl,-Wl,,'
15041 lt_prog_compiler_pic='-PIC'
15042 lt_prog_compiler_static='-Bstatic'
15043 ;;
cristy0c60a692010-11-04 01:09:47 +000015044 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015045 # Portland Group compilers (*not* the Pentium gcc compiler,
15046 # which looks to be a dead project)
15047 lt_prog_compiler_wl='-Wl,'
15048 lt_prog_compiler_pic='-fpic'
15049 lt_prog_compiler_static='-Bstatic'
15050 ;;
15051 ccc*)
15052 lt_prog_compiler_wl='-Wl,'
15053 # All Alpha code is PIC.
15054 lt_prog_compiler_static='-non_shared'
15055 ;;
cristy0c60a692010-11-04 01:09:47 +000015056 xl* | bgxl* | bgf* | mpixl*)
15057 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015058 lt_prog_compiler_wl='-Wl,'
15059 lt_prog_compiler_pic='-qpic'
15060 lt_prog_compiler_static='-qstaticlink'
15061 ;;
15062 *)
15063 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015064 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015065 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15066 lt_prog_compiler_pic='-KPIC'
15067 lt_prog_compiler_static='-Bstatic'
15068 lt_prog_compiler_wl=''
15069 ;;
cristy99bd5232011-12-07 14:38:20 +000015070 *Sun\ F* | *Sun*Fortran*)
15071 lt_prog_compiler_pic='-KPIC'
15072 lt_prog_compiler_static='-Bstatic'
15073 lt_prog_compiler_wl='-Qoption ld '
15074 ;;
cristy73bd4a52010-10-05 11:24:23 +000015075 *Sun\ C*)
15076 # Sun C 5.9
15077 lt_prog_compiler_pic='-KPIC'
15078 lt_prog_compiler_static='-Bstatic'
15079 lt_prog_compiler_wl='-Wl,'
15080 ;;
cristy99bd5232011-12-07 14:38:20 +000015081 *Intel*\ [CF]*Compiler*)
15082 lt_prog_compiler_wl='-Wl,'
15083 lt_prog_compiler_pic='-fPIC'
15084 lt_prog_compiler_static='-static'
15085 ;;
15086 *Portland\ Group*)
15087 lt_prog_compiler_wl='-Wl,'
15088 lt_prog_compiler_pic='-fpic'
15089 lt_prog_compiler_static='-Bstatic'
15090 ;;
cristy73bd4a52010-10-05 11:24:23 +000015091 esac
15092 ;;
15093 esac
15094 ;;
15095
15096 newsos6)
15097 lt_prog_compiler_pic='-KPIC'
15098 lt_prog_compiler_static='-Bstatic'
15099 ;;
15100
15101 *nto* | *qnx*)
15102 # QNX uses GNU C++, but need to define -shared option too, otherwise
15103 # it will coredump.
15104 lt_prog_compiler_pic='-fPIC -shared'
15105 ;;
15106
15107 osf3* | osf4* | osf5*)
15108 lt_prog_compiler_wl='-Wl,'
15109 # All OSF/1 code is PIC.
15110 lt_prog_compiler_static='-non_shared'
15111 ;;
15112
15113 rdos*)
15114 lt_prog_compiler_static='-non_shared'
15115 ;;
15116
15117 solaris*)
15118 lt_prog_compiler_pic='-KPIC'
15119 lt_prog_compiler_static='-Bstatic'
15120 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015121 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015122 lt_prog_compiler_wl='-Qoption ld ';;
15123 *)
15124 lt_prog_compiler_wl='-Wl,';;
15125 esac
15126 ;;
15127
15128 sunos4*)
15129 lt_prog_compiler_wl='-Qoption ld '
15130 lt_prog_compiler_pic='-PIC'
15131 lt_prog_compiler_static='-Bstatic'
15132 ;;
15133
15134 sysv4 | sysv4.2uw2* | sysv4.3*)
15135 lt_prog_compiler_wl='-Wl,'
15136 lt_prog_compiler_pic='-KPIC'
15137 lt_prog_compiler_static='-Bstatic'
15138 ;;
15139
15140 sysv4*MP*)
15141 if test -d /usr/nec ;then
15142 lt_prog_compiler_pic='-Kconform_pic'
15143 lt_prog_compiler_static='-Bstatic'
15144 fi
15145 ;;
15146
15147 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15148 lt_prog_compiler_wl='-Wl,'
15149 lt_prog_compiler_pic='-KPIC'
15150 lt_prog_compiler_static='-Bstatic'
15151 ;;
15152
15153 unicos*)
15154 lt_prog_compiler_wl='-Wl,'
15155 lt_prog_compiler_can_build_shared=no
15156 ;;
15157
15158 uts4*)
15159 lt_prog_compiler_pic='-pic'
15160 lt_prog_compiler_static='-Bstatic'
15161 ;;
15162
15163 *)
15164 lt_prog_compiler_can_build_shared=no
15165 ;;
15166 esac
15167 fi
15168
15169case $host_os in
15170 # For platforms which do not support PIC, -DPIC is meaningless:
15171 *djgpp*)
15172 lt_prog_compiler_pic=
15173 ;;
15174 *)
15175 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15176 ;;
15177esac
cristy73bd4a52010-10-05 11:24:23 +000015178
cristyda16f162011-02-19 23:52:17 +000015179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15180$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15181if ${lt_cv_prog_compiler_pic+:} false; then :
15182 $as_echo_n "(cached) " >&6
15183else
15184 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15185fi
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15187$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15188lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015189
15190#
15191# Check to make sure the PIC flag actually works.
15192#
15193if test -n "$lt_prog_compiler_pic"; then
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15195$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015196if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015197 $as_echo_n "(cached) " >&6
15198else
15199 lt_cv_prog_compiler_pic_works=no
15200 ac_outfile=conftest.$ac_objext
15201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15202 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15203 # Insert the option either (1) after the last *FLAGS variable, or
15204 # (2) before a word containing "conftest.", or (3) at the end.
15205 # Note that $ac_compile itself does not contain backslashes and begins
15206 # with a dollar sign (not a hyphen), so the echo should work correctly.
15207 # The option is referenced via a variable to avoid confusing sed.
15208 lt_compile=`echo "$ac_compile" | $SED \
15209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15211 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015213 (eval "$lt_compile" 2>conftest.err)
15214 ac_status=$?
15215 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015217 if (exit $ac_status) && test -s "$ac_outfile"; then
15218 # The compiler can only warn and ignore the option if not recognized
15219 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15222 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15223 lt_cv_prog_compiler_pic_works=yes
15224 fi
15225 fi
15226 $RM conftest*
15227
15228fi
15229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15230$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15231
15232if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15233 case $lt_prog_compiler_pic in
15234 "" | " "*) ;;
15235 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15236 esac
15237else
15238 lt_prog_compiler_pic=
15239 lt_prog_compiler_can_build_shared=no
15240fi
15241
15242fi
15243
15244
15245
15246
15247
15248
cristyda16f162011-02-19 23:52:17 +000015249
15250
15251
15252
15253
cristy73bd4a52010-10-05 11:24:23 +000015254#
15255# Check to make sure the static flag actually works.
15256#
15257wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15259$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015260if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015261 $as_echo_n "(cached) " >&6
15262else
15263 lt_cv_prog_compiler_static_works=no
15264 save_LDFLAGS="$LDFLAGS"
15265 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15266 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15267 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15268 # The linker can only warn and ignore the option if not recognized
15269 # So say no if there are warnings
15270 if test -s conftest.err; then
15271 # Append any errors to the config.log.
15272 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015273 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15275 if diff conftest.exp conftest.er2 >/dev/null; then
15276 lt_cv_prog_compiler_static_works=yes
15277 fi
15278 else
15279 lt_cv_prog_compiler_static_works=yes
15280 fi
15281 fi
15282 $RM -r conftest*
15283 LDFLAGS="$save_LDFLAGS"
15284
15285fi
15286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15287$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15288
15289if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15290 :
15291else
15292 lt_prog_compiler_static=
15293fi
15294
15295
15296
15297
15298
15299
15300
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15302$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015303if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015304 $as_echo_n "(cached) " >&6
15305else
15306 lt_cv_prog_compiler_c_o=no
15307 $RM -r conftest 2>/dev/null
15308 mkdir conftest
15309 cd conftest
15310 mkdir out
15311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15312
15313 lt_compiler_flag="-o out/conftest2.$ac_objext"
15314 # Insert the option either (1) after the last *FLAGS variable, or
15315 # (2) before a word containing "conftest.", or (3) at the end.
15316 # Note that $ac_compile itself does not contain backslashes and begins
15317 # with a dollar sign (not a hyphen), so the echo should work correctly.
15318 lt_compile=`echo "$ac_compile" | $SED \
15319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15321 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015323 (eval "$lt_compile" 2>out/conftest.err)
15324 ac_status=$?
15325 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015327 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15328 then
15329 # The compiler can only warn and ignore the option if not recognized
15330 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015332 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15333 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15334 lt_cv_prog_compiler_c_o=yes
15335 fi
15336 fi
15337 chmod u+w . 2>&5
15338 $RM conftest*
15339 # SGI C++ compiler will create directory out/ii_files/ for
15340 # template instantiation
15341 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15342 $RM out/* && rmdir out
15343 cd ..
15344 $RM -r conftest
15345 $RM conftest*
15346
15347fi
15348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15349$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15350
15351
15352
15353
15354
15355
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15357$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015358if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015359 $as_echo_n "(cached) " >&6
15360else
15361 lt_cv_prog_compiler_c_o=no
15362 $RM -r conftest 2>/dev/null
15363 mkdir conftest
15364 cd conftest
15365 mkdir out
15366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15367
15368 lt_compiler_flag="-o out/conftest2.$ac_objext"
15369 # Insert the option either (1) after the last *FLAGS variable, or
15370 # (2) before a word containing "conftest.", or (3) at the end.
15371 # Note that $ac_compile itself does not contain backslashes and begins
15372 # with a dollar sign (not a hyphen), so the echo should work correctly.
15373 lt_compile=`echo "$ac_compile" | $SED \
15374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15376 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015378 (eval "$lt_compile" 2>out/conftest.err)
15379 ac_status=$?
15380 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15383 then
15384 # The compiler can only warn and ignore the option if not recognized
15385 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15389 lt_cv_prog_compiler_c_o=yes
15390 fi
15391 fi
15392 chmod u+w . 2>&5
15393 $RM conftest*
15394 # SGI C++ compiler will create directory out/ii_files/ for
15395 # template instantiation
15396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15397 $RM out/* && rmdir out
15398 cd ..
15399 $RM -r conftest
15400 $RM conftest*
15401
15402fi
15403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15404$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15405
15406
15407
15408
15409hard_links="nottested"
15410if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15411 # do not overwrite the value of need_locks provided by the user
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15413$as_echo_n "checking if we can lock with hard links... " >&6; }
15414 hard_links=yes
15415 $RM conftest*
15416 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15417 touch conftest.a
15418 ln conftest.a conftest.b 2>&5 || hard_links=no
15419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15421$as_echo "$hard_links" >&6; }
15422 if test "$hard_links" = no; then
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15424$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15425 need_locks=warn
15426 fi
15427else
15428 need_locks=no
15429fi
15430
15431
15432
15433
15434
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15437$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15438
15439 runpath_var=
15440 allow_undefined_flag=
15441 always_export_symbols=no
15442 archive_cmds=
15443 archive_expsym_cmds=
15444 compiler_needs_object=no
15445 enable_shared_with_static_runtimes=no
15446 export_dynamic_flag_spec=
15447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15448 hardcode_automatic=no
15449 hardcode_direct=no
15450 hardcode_direct_absolute=no
15451 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015452 hardcode_libdir_separator=
15453 hardcode_minus_L=no
15454 hardcode_shlibpath_var=unsupported
15455 inherit_rpath=no
15456 link_all_deplibs=unknown
15457 module_cmds=
15458 module_expsym_cmds=
15459 old_archive_from_new_cmds=
15460 old_archive_from_expsyms_cmds=
15461 thread_safe_flag_spec=
15462 whole_archive_flag_spec=
15463 # include_expsyms should be a list of space-separated symbols to be *always*
15464 # included in the symbol list
15465 include_expsyms=
15466 # exclude_expsyms can be an extended regexp of symbols to exclude
15467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15469 # as well as any symbol that contains `d'.
15470 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15472 # platforms (ab)use it in PIC code, but their linkers get confused if
15473 # the symbol is explicitly referenced. Since portable code cannot
15474 # rely on this symbol name, it's probably fine to never include it in
15475 # preloaded symbol tables.
15476 # Exclude shared library initialization/finalization symbols.
15477 extract_expsyms_cmds=
15478
15479 case $host_os in
15480 cygwin* | mingw* | pw32* | cegcc*)
15481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15482 # When not using gcc, we currently assume that we are using
15483 # Microsoft Visual C++.
15484 if test "$GCC" != yes; then
15485 with_gnu_ld=no
15486 fi
15487 ;;
15488 interix*)
15489 # we just hope/assume this is gcc and not c89 (= MSVC++)
15490 with_gnu_ld=yes
15491 ;;
15492 openbsd*)
15493 with_gnu_ld=no
15494 ;;
15495 esac
15496
15497 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015498
15499 # On some targets, GNU ld is compatible enough with the native linker
15500 # that we're better off using the native interface for both.
15501 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000015502 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000015503 case $host_os in
15504 aix*)
15505 # The AIX port of GNU ld has always aspired to compatibility
15506 # with the native linker. However, as the warning in the GNU ld
15507 # block says, versions before 2.19.5* couldn't really create working
15508 # shared libraries, regardless of the interface used.
15509 case `$LD -v 2>&1` in
15510 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15511 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15512 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15513 *)
15514 lt_use_gnu_ld_interface=yes
15515 ;;
15516 esac
15517 ;;
15518 *)
15519 lt_use_gnu_ld_interface=yes
15520 ;;
15521 esac
15522 fi
15523
15524 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000015525 # If archive_cmds runs LD, not CC, wlarc should be empty
15526 wlarc='${wl}'
15527
15528 # Set some defaults for GNU ld with shared library support. These
15529 # are reset later if shared libraries are not supported. Putting them
15530 # here allows them to be overridden if necessary.
15531 runpath_var=LD_RUN_PATH
15532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15533 export_dynamic_flag_spec='${wl}--export-dynamic'
15534 # ancient GNU ld didn't support --whole-archive et. al.
15535 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15536 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15537 else
15538 whole_archive_flag_spec=
15539 fi
15540 supports_anon_versioning=no
15541 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015542 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15546 *\ 2.11.*) ;; # other 2.11 versions
15547 *) supports_anon_versioning=yes ;;
15548 esac
15549
15550 # See if GNU ld supports shared libraries.
15551 case $host_os in
15552 aix[3-9]*)
15553 # On AIX/PPC, the GNU linker is very broken
15554 if test "$host_cpu" != ia64; then
15555 ld_shlibs=no
15556 cat <<_LT_EOF 1>&2
15557
cristy0c60a692010-11-04 01:09:47 +000015558*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015559*** to be unable to reliably create shared libraries on AIX.
15560*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015561*** really care for shared libraries, you may want to install binutils
15562*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15563*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015564
15565_LT_EOF
15566 fi
15567 ;;
15568
15569 amigaos*)
15570 case $host_cpu in
15571 powerpc)
15572 # see comment about AmigaOS4 .so support
15573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15574 archive_expsym_cmds=''
15575 ;;
15576 m68k)
15577 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)'
15578 hardcode_libdir_flag_spec='-L$libdir'
15579 hardcode_minus_L=yes
15580 ;;
15581 esac
15582 ;;
15583
15584 beos*)
15585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15586 allow_undefined_flag=unsupported
15587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15588 # support --undefined. This deserves some investigation. FIXME
15589 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15590 else
15591 ld_shlibs=no
15592 fi
15593 ;;
15594
15595 cygwin* | mingw* | pw32* | cegcc*)
15596 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15597 # as there is no search path for DLLs.
15598 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000015599 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015600 allow_undefined_flag=unsupported
15601 always_export_symbols=no
15602 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015603 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'
15604 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 +000015605
15606 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15608 # If the export-symbols file already is a .def file (1st line
15609 # is EXPORTS), use it as is; otherwise, prepend...
15610 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15611 cp $export_symbols $output_objdir/$soname.def;
15612 else
15613 echo EXPORTS > $output_objdir/$soname.def;
15614 cat $export_symbols >> $output_objdir/$soname.def;
15615 fi~
15616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15617 else
15618 ld_shlibs=no
15619 fi
15620 ;;
15621
cristy0c60a692010-11-04 01:09:47 +000015622 haiku*)
15623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15624 link_all_deplibs=yes
15625 ;;
15626
cristy73bd4a52010-10-05 11:24:23 +000015627 interix[3-9]*)
15628 hardcode_direct=no
15629 hardcode_shlibpath_var=no
15630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15631 export_dynamic_flag_spec='${wl}-E'
15632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15633 # Instead, shared libraries are loaded at an image base (0x10000000 by
15634 # default) and relocated if they conflict, which is a slow very memory
15635 # consuming and fragmenting process. To avoid this, we pick a random,
15636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15638 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15639 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'
15640 ;;
15641
cristy0c60a692010-11-04 01:09:47 +000015642 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015643 tmp_diet=no
15644 if test "$host_os" = linux-dietlibc; then
15645 case $cc_basename in
15646 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15647 esac
15648 fi
15649 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15650 && test "$tmp_diet" = no
15651 then
cristyda16f162011-02-19 23:52:17 +000015652 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015653 tmp_sharedflag='-shared'
15654 case $cc_basename,$host_cpu in
15655 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000015656 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 +000015657 tmp_addflag=' $pic_flag'
15658 ;;
cristy0c60a692010-11-04 01:09:47 +000015659 pgf77* | pgf90* | pgf95* | pgfortran*)
15660 # Portland Group f77 and f90 compilers
15661 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 +000015662 tmp_addflag=' $pic_flag -Mnomain' ;;
15663 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15664 tmp_addflag=' -i_dynamic' ;;
15665 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15666 tmp_addflag=' -i_dynamic -nofor_main' ;;
15667 ifc* | ifort*) # Intel Fortran compiler
15668 tmp_addflag=' -nofor_main' ;;
15669 lf95*) # Lahey Fortran 8.1
15670 whole_archive_flag_spec=
15671 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000015672 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000015673 tmp_sharedflag='-qmkshrobj'
15674 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000015675 nvcc*) # Cuda Compiler Driver 2.2
15676 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'
15677 compiler_needs_object=yes
15678 ;;
cristy73bd4a52010-10-05 11:24:23 +000015679 esac
15680 case `$CC -V 2>&1 | sed 5q` in
15681 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000015682 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 +000015683 compiler_needs_object=yes
15684 tmp_sharedflag='-G' ;;
15685 *Sun\ F*) # Sun Fortran 8.3
15686 tmp_sharedflag='-G' ;;
15687 esac
15688 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15689
15690 if test "x$supports_anon_versioning" = xyes; then
15691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15693 echo "local: *; };" >> $output_objdir/$libname.ver~
15694 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15695 fi
15696
15697 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015698 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000015699 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15700 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000015701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000015702 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015703 if test "x$supports_anon_versioning" = xyes; then
15704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15706 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000015707 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015708 fi
15709 ;;
15710 esac
15711 else
15712 ld_shlibs=no
15713 fi
15714 ;;
15715
15716 netbsd*)
15717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15719 wlarc=
15720 else
cristyda16f162011-02-19 23:52:17 +000015721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15722 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 +000015723 fi
15724 ;;
15725
15726 solaris*)
15727 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15728 ld_shlibs=no
15729 cat <<_LT_EOF 1>&2
15730
15731*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15732*** create shared libraries on Solaris systems. Therefore, libtool
15733*** is disabling shared libraries support. We urge you to upgrade GNU
15734*** binutils to release 2.9.1 or newer. Another option is to modify
15735*** your PATH or compiler configuration so that the native linker is
15736*** used, and then restart.
15737
15738_LT_EOF
15739 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015740 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15741 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 +000015742 else
15743 ld_shlibs=no
15744 fi
15745 ;;
15746
15747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15748 case `$LD -v 2>&1` in
15749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15750 ld_shlibs=no
15751 cat <<_LT_EOF 1>&2
15752
15753*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15754*** reliably create shared libraries on SCO systems. Therefore, libtool
15755*** is disabling shared libraries support. We urge you to upgrade GNU
15756*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15757*** your PATH or compiler configuration so that the native linker is
15758*** used, and then restart.
15759
15760_LT_EOF
15761 ;;
15762 *)
15763 # For security reasons, it is highly recommended that you always
15764 # use absolute paths for naming shared libraries, and exclude the
15765 # DT_RUNPATH tag from executables and libraries. But doing so
15766 # requires that you compile everything twice, which is a pain.
15767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15771 else
15772 ld_shlibs=no
15773 fi
15774 ;;
15775 esac
15776 ;;
15777
15778 sunos4*)
15779 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15780 wlarc=
15781 hardcode_direct=yes
15782 hardcode_shlibpath_var=no
15783 ;;
15784
15785 *)
15786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000015787 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15788 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 +000015789 else
15790 ld_shlibs=no
15791 fi
15792 ;;
15793 esac
15794
15795 if test "$ld_shlibs" = no; then
15796 runpath_var=
15797 hardcode_libdir_flag_spec=
15798 export_dynamic_flag_spec=
15799 whole_archive_flag_spec=
15800 fi
15801 else
15802 # PORTME fill in a description of your system's linker (not GNU ld)
15803 case $host_os in
15804 aix3*)
15805 allow_undefined_flag=unsupported
15806 always_export_symbols=yes
15807 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'
15808 # Note: this linker hardcodes the directories in LIBPATH if there
15809 # are no directories specified by -L.
15810 hardcode_minus_L=yes
15811 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15812 # Neither direct hardcoding nor static linking is supported with a
15813 # broken collect2.
15814 hardcode_direct=unsupported
15815 fi
15816 ;;
15817
15818 aix[4-9]*)
15819 if test "$host_cpu" = ia64; then
15820 # On IA64, the linker does run time linking by default, so we don't
15821 # have to do anything special.
15822 aix_use_runtimelinking=no
15823 exp_sym_flag='-Bexport'
15824 no_entry_flag=""
15825 else
15826 # If we're using GNU nm, then we don't want the "-C" option.
15827 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000015828 # Also, AIX nm treats weak defined symbols like other global
15829 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000015830 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000015831 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 +000015832 else
15833 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'
15834 fi
15835 aix_use_runtimelinking=no
15836
15837 # Test if we are trying to use run time linking or normal
15838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15839 # need to do runtime linking.
15840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15841 for ld_flag in $LDFLAGS; do
15842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15843 aix_use_runtimelinking=yes
15844 break
15845 fi
15846 done
15847 ;;
15848 esac
15849
15850 exp_sym_flag='-bexport'
15851 no_entry_flag='-bnoentry'
15852 fi
15853
15854 # When large executables or shared objects are built, AIX ld can
15855 # have problems creating the table of contents. If linking a library
15856 # or program results in "error TOC overflow" add -mminimal-toc to
15857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15859
15860 archive_cmds=''
15861 hardcode_direct=yes
15862 hardcode_direct_absolute=yes
15863 hardcode_libdir_separator=':'
15864 link_all_deplibs=yes
15865 file_list_spec='${wl}-f,'
15866
15867 if test "$GCC" = yes; then
15868 case $host_os in aix4.[012]|aix4.[012].*)
15869 # We only want to do this on AIX 4.2 and lower, the check
15870 # below for broken collect2 doesn't work under 4.3+
15871 collect2name=`${CC} -print-prog-name=collect2`
15872 if test -f "$collect2name" &&
15873 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15874 then
15875 # We have reworked collect2
15876 :
15877 else
15878 # We have old collect2
15879 hardcode_direct=unsupported
15880 # It fails to find uninstalled libraries when the uninstalled
15881 # path is not listed in the libpath. Setting hardcode_minus_L
15882 # to unsupported forces relinking
15883 hardcode_minus_L=yes
15884 hardcode_libdir_flag_spec='-L$libdir'
15885 hardcode_libdir_separator=
15886 fi
15887 ;;
15888 esac
15889 shared_flag='-shared'
15890 if test "$aix_use_runtimelinking" = yes; then
15891 shared_flag="$shared_flag "'${wl}-G'
15892 fi
15893 else
15894 # not using gcc
15895 if test "$host_cpu" = ia64; then
15896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15897 # chokes on -Wl,-G. The following line is correct:
15898 shared_flag='-G'
15899 else
15900 if test "$aix_use_runtimelinking" = yes; then
15901 shared_flag='${wl}-G'
15902 else
15903 shared_flag='${wl}-bM:SRE'
15904 fi
15905 fi
15906 fi
15907
15908 export_dynamic_flag_spec='${wl}-bexpall'
15909 # It seems that -bexpall does not export symbols beginning with
15910 # underscore (_), so it is better to generate a list of symbols to export.
15911 always_export_symbols=yes
15912 if test "$aix_use_runtimelinking" = yes; then
15913 # Warning - without using the other runtime loading flags (-brtl),
15914 # -berok will link without error, but may produce a broken library.
15915 allow_undefined_flag='-berok'
15916 # Determine the default libpath from the value encoded in an
15917 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015918 if test "${lt_cv_aix_libpath+set}" = set; then
15919 aix_libpath=$lt_cv_aix_libpath
15920else
15921 if ${lt_cv_aix_libpath_+:} false; then :
15922 $as_echo_n "(cached) " >&6
15923else
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015925/* end confdefs.h. */
15926
15927int
15928main ()
15929{
15930
15931 ;
15932 return 0;
15933}
15934_ACEOF
15935if ac_fn_c_try_link "$LINENO"; then :
15936
cristyda16f162011-02-19 23:52:17 +000015937 lt_aix_libpath_sed='
15938 /Import File Strings/,/^$/ {
15939 /^0/ {
15940 s/^0 *\([^ ]*\) *$/\1/
15941 p
15942 }
15943 }'
15944 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15945 # Check for a 64-bit object if we didn't find anything.
15946 if test -z "$lt_cv_aix_libpath_"; then
15947 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15948 fi
cristy73bd4a52010-10-05 11:24:23 +000015949fi
15950rm -f core conftest.err conftest.$ac_objext \
15951 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015952 if test -z "$lt_cv_aix_libpath_"; then
15953 lt_cv_aix_libpath_="/usr/lib:/lib"
15954 fi
15955
15956fi
15957
15958 aix_libpath=$lt_cv_aix_libpath_
15959fi
cristy73bd4a52010-10-05 11:24:23 +000015960
15961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015962 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 +000015963 else
15964 if test "$host_cpu" = ia64; then
15965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15966 allow_undefined_flag="-z nodefs"
15967 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"
15968 else
15969 # Determine the default libpath from the value encoded in an
15970 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015971 if test "${lt_cv_aix_libpath+set}" = set; then
15972 aix_libpath=$lt_cv_aix_libpath
15973else
15974 if ${lt_cv_aix_libpath_+:} false; then :
15975 $as_echo_n "(cached) " >&6
15976else
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015978/* end confdefs.h. */
15979
15980int
15981main ()
15982{
15983
15984 ;
15985 return 0;
15986}
15987_ACEOF
15988if ac_fn_c_try_link "$LINENO"; then :
15989
cristyda16f162011-02-19 23:52:17 +000015990 lt_aix_libpath_sed='
15991 /Import File Strings/,/^$/ {
15992 /^0/ {
15993 s/^0 *\([^ ]*\) *$/\1/
15994 p
15995 }
15996 }'
15997 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15998 # Check for a 64-bit object if we didn't find anything.
15999 if test -z "$lt_cv_aix_libpath_"; then
16000 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16001 fi
cristy73bd4a52010-10-05 11:24:23 +000016002fi
16003rm -f core conftest.err conftest.$ac_objext \
16004 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016005 if test -z "$lt_cv_aix_libpath_"; then
16006 lt_cv_aix_libpath_="/usr/lib:/lib"
16007 fi
16008
16009fi
16010
16011 aix_libpath=$lt_cv_aix_libpath_
16012fi
cristy73bd4a52010-10-05 11:24:23 +000016013
16014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16015 # Warning - without using the other run time loading flags,
16016 # -berok will link without error, but may produce a broken library.
16017 no_undefined_flag=' ${wl}-bernotok'
16018 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016019 if test "$with_gnu_ld" = yes; then
16020 # We only use this code for GNU lds that support --whole-archive.
16021 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16022 else
16023 # Exported symbols can be pulled into shared objects from archives
16024 whole_archive_flag_spec='$convenience'
16025 fi
cristy73bd4a52010-10-05 11:24:23 +000016026 archive_cmds_need_lc=yes
16027 # This is similar to how AIX traditionally builds its shared libraries.
16028 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'
16029 fi
16030 fi
16031 ;;
16032
16033 amigaos*)
16034 case $host_cpu in
16035 powerpc)
16036 # see comment about AmigaOS4 .so support
16037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038 archive_expsym_cmds=''
16039 ;;
16040 m68k)
16041 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)'
16042 hardcode_libdir_flag_spec='-L$libdir'
16043 hardcode_minus_L=yes
16044 ;;
16045 esac
16046 ;;
16047
16048 bsdi[45]*)
16049 export_dynamic_flag_spec=-rdynamic
16050 ;;
16051
16052 cygwin* | mingw* | pw32* | cegcc*)
16053 # When not using gcc, we currently assume that we are using
16054 # Microsoft Visual C++.
16055 # hardcode_libdir_flag_spec is actually meaningless, as there is
16056 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016057 case $cc_basename in
16058 cl*)
16059 # Native MSVC
16060 hardcode_libdir_flag_spec=' '
16061 allow_undefined_flag=unsupported
16062 always_export_symbols=yes
16063 file_list_spec='@'
16064 # Tell ltmain to make .lib files, not .a files.
16065 libext=lib
16066 # Tell ltmain to make .dll files, not .so files.
16067 shrext_cmds=".dll"
16068 # FIXME: Setting linknames here is a bad hack.
16069 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
16070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16071 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16072 else
16073 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16074 fi~
16075 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16076 linknames='
16077 # The linker will not automatically build a static lib if we build a DLL.
16078 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16079 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016080 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016081 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16082 # Don't use ranlib
16083 old_postinstall_cmds='chmod 644 $oldlib'
16084 postlink_cmds='lt_outputfile="@OUTPUT@"~
16085 lt_tool_outputfile="@TOOL_OUTPUT@"~
16086 case $lt_outputfile in
16087 *.exe|*.EXE) ;;
16088 *)
16089 lt_outputfile="$lt_outputfile.exe"
16090 lt_tool_outputfile="$lt_tool_outputfile.exe"
16091 ;;
16092 esac~
16093 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16094 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16095 $RM "$lt_outputfile.manifest";
16096 fi'
16097 ;;
16098 *)
16099 # Assume MSVC wrapper
16100 hardcode_libdir_flag_spec=' '
16101 allow_undefined_flag=unsupported
16102 # Tell ltmain to make .lib files, not .a files.
16103 libext=lib
16104 # Tell ltmain to make .dll files, not .so files.
16105 shrext_cmds=".dll"
16106 # FIXME: Setting linknames here is a bad hack.
16107 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16108 # The linker will automatically build a .lib file if we build a DLL.
16109 old_archive_from_new_cmds='true'
16110 # FIXME: Should let the user specify the lib program.
16111 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16112 enable_shared_with_static_runtimes=yes
16113 ;;
16114 esac
cristy73bd4a52010-10-05 11:24:23 +000016115 ;;
16116
16117 darwin* | rhapsody*)
16118
16119
16120 archive_cmds_need_lc=no
16121 hardcode_direct=no
16122 hardcode_automatic=yes
16123 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000016124 if test "$lt_cv_ld_force_load" = "yes"; then
16125 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 +000016126
cristy0c60a692010-11-04 01:09:47 +000016127 else
16128 whole_archive_flag_spec=''
16129 fi
cristy73bd4a52010-10-05 11:24:23 +000016130 link_all_deplibs=yes
16131 allow_undefined_flag="$_lt_dar_allow_undefined"
16132 case $cc_basename in
16133 ifort*) _lt_dar_can_shared=yes ;;
16134 *) _lt_dar_can_shared=$GCC ;;
16135 esac
16136 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016137 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016138 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16139 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16140 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}"
16141 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}"
16142
16143 else
16144 ld_shlibs=no
16145 fi
16146
16147 ;;
16148
16149 dgux*)
16150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151 hardcode_libdir_flag_spec='-L$libdir'
16152 hardcode_shlibpath_var=no
16153 ;;
16154
cristy73bd4a52010-10-05 11:24:23 +000016155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16156 # support. Future versions do this automatically, but an explicit c++rt0.o
16157 # does not break anything, and helps significantly (at the cost of a little
16158 # extra space).
16159 freebsd2.2*)
16160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16161 hardcode_libdir_flag_spec='-R$libdir'
16162 hardcode_direct=yes
16163 hardcode_shlibpath_var=no
16164 ;;
16165
16166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016167 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16169 hardcode_direct=yes
16170 hardcode_minus_L=yes
16171 hardcode_shlibpath_var=no
16172 ;;
16173
16174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16175 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016177 hardcode_libdir_flag_spec='-R$libdir'
16178 hardcode_direct=yes
16179 hardcode_shlibpath_var=no
16180 ;;
16181
16182 hpux9*)
16183 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016184 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 +000016185 else
16186 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'
16187 fi
16188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16189 hardcode_libdir_separator=:
16190 hardcode_direct=yes
16191
16192 # hardcode_minus_L: Not really in the search PATH,
16193 # but as the default location of the library.
16194 hardcode_minus_L=yes
16195 export_dynamic_flag_spec='${wl}-E'
16196 ;;
16197
16198 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000016199 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000016200 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 +000016201 else
16202 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16203 fi
16204 if test "$with_gnu_ld" = no; then
16205 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016206 hardcode_libdir_separator=:
16207 hardcode_direct=yes
16208 hardcode_direct_absolute=yes
16209 export_dynamic_flag_spec='${wl}-E'
16210 # hardcode_minus_L: Not really in the search PATH,
16211 # but as the default location of the library.
16212 hardcode_minus_L=yes
16213 fi
16214 ;;
16215
16216 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000016217 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000016218 case $host_cpu in
16219 hppa*64*)
16220 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 ;;
16222 ia64*)
cristyda16f162011-02-19 23:52:17 +000016223 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016224 ;;
16225 *)
cristyda16f162011-02-19 23:52:17 +000016226 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 +000016227 ;;
16228 esac
16229 else
16230 case $host_cpu in
16231 hppa*64*)
16232 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16233 ;;
16234 ia64*)
16235 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16236 ;;
16237 *)
cristy0c60a692010-11-04 01:09:47 +000016238
16239 # Older versions of the 11.00 compiler do not understand -b yet
16240 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16242$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016243if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016244 $as_echo_n "(cached) " >&6
16245else
16246 lt_cv_prog_compiler__b=no
16247 save_LDFLAGS="$LDFLAGS"
16248 LDFLAGS="$LDFLAGS -b"
16249 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16250 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16251 # The linker can only warn and ignore the option if not recognized
16252 # So say no if there are warnings
16253 if test -s conftest.err; then
16254 # Append any errors to the config.log.
16255 cat conftest.err 1>&5
16256 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16258 if diff conftest.exp conftest.er2 >/dev/null; then
16259 lt_cv_prog_compiler__b=yes
16260 fi
16261 else
16262 lt_cv_prog_compiler__b=yes
16263 fi
16264 fi
16265 $RM -r conftest*
16266 LDFLAGS="$save_LDFLAGS"
16267
16268fi
16269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16270$as_echo "$lt_cv_prog_compiler__b" >&6; }
16271
16272if test x"$lt_cv_prog_compiler__b" = xyes; then
16273 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16274else
16275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16276fi
16277
cristy73bd4a52010-10-05 11:24:23 +000016278 ;;
16279 esac
16280 fi
16281 if test "$with_gnu_ld" = no; then
16282 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16283 hardcode_libdir_separator=:
16284
16285 case $host_cpu in
16286 hppa*64*|ia64*)
16287 hardcode_direct=no
16288 hardcode_shlibpath_var=no
16289 ;;
16290 *)
16291 hardcode_direct=yes
16292 hardcode_direct_absolute=yes
16293 export_dynamic_flag_spec='${wl}-E'
16294
16295 # hardcode_minus_L: Not really in the search PATH,
16296 # but as the default location of the library.
16297 hardcode_minus_L=yes
16298 ;;
16299 esac
16300 fi
16301 ;;
16302
16303 irix5* | irix6* | nonstopux*)
16304 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000016305 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 +000016306 # Try to use the -exported_symbol ld option, if it does not
16307 # work, assume that -exports_file does not work either and
16308 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016309 # This should be the same for all languages, so no per-tag cache variable.
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16311$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16312if ${lt_cv_irix_exported_symbol+:} false; then :
16313 $as_echo_n "(cached) " >&6
16314else
16315 save_LDFLAGS="$LDFLAGS"
16316 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016318/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016319int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016320_ACEOF
16321if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016322 lt_cv_irix_exported_symbol=yes
16323else
16324 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016325fi
16326rm -f core conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016328 LDFLAGS="$save_LDFLAGS"
16329fi
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16331$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16332 if test "$lt_cv_irix_exported_symbol" = yes; then
16333 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'
16334 fi
cristy73bd4a52010-10-05 11:24:23 +000016335 else
cristy0c60a692010-11-04 01:09:47 +000016336 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'
16337 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 +000016338 fi
16339 archive_cmds_need_lc='no'
16340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16341 hardcode_libdir_separator=:
16342 inherit_rpath=yes
16343 link_all_deplibs=yes
16344 ;;
16345
16346 netbsd*)
16347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16349 else
16350 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16351 fi
16352 hardcode_libdir_flag_spec='-R$libdir'
16353 hardcode_direct=yes
16354 hardcode_shlibpath_var=no
16355 ;;
16356
16357 newsos6)
16358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16359 hardcode_direct=yes
16360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16361 hardcode_libdir_separator=:
16362 hardcode_shlibpath_var=no
16363 ;;
16364
16365 *nto* | *qnx*)
16366 ;;
16367
16368 openbsd*)
16369 if test -f /usr/libexec/ld.so; then
16370 hardcode_direct=yes
16371 hardcode_shlibpath_var=no
16372 hardcode_direct_absolute=yes
16373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16375 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16377 export_dynamic_flag_spec='${wl}-E'
16378 else
16379 case $host_os in
16380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16382 hardcode_libdir_flag_spec='-R$libdir'
16383 ;;
16384 *)
16385 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16387 ;;
16388 esac
16389 fi
16390 else
16391 ld_shlibs=no
16392 fi
16393 ;;
16394
16395 os2*)
16396 hardcode_libdir_flag_spec='-L$libdir'
16397 hardcode_minus_L=yes
16398 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000016399 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 +000016400 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16401 ;;
16402
16403 osf3*)
16404 if test "$GCC" = yes; then
16405 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016406 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 +000016407 else
16408 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016409 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 +000016410 fi
16411 archive_cmds_need_lc='no'
16412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16413 hardcode_libdir_separator=:
16414 ;;
16415
16416 osf4* | osf5*) # as osf3* with the addition of -msym flag
16417 if test "$GCC" = yes; then
16418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000016419 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 +000016420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16421 else
16422 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016423 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 +000016424 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 +000016425 $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 +000016426
16427 # Both c and cxx compiler support -rpath directly
16428 hardcode_libdir_flag_spec='-rpath $libdir'
16429 fi
16430 archive_cmds_need_lc='no'
16431 hardcode_libdir_separator=:
16432 ;;
16433
16434 solaris*)
16435 no_undefined_flag=' -z defs'
16436 if test "$GCC" = yes; then
16437 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000016438 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 +000016439 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 +000016440 $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 +000016441 else
16442 case `$CC -V 2>&1` in
16443 *"Compilers 5.0"*)
16444 wlarc=''
16445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16448 ;;
16449 *)
16450 wlarc='${wl}'
16451 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16452 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16453 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16454 ;;
16455 esac
16456 fi
16457 hardcode_libdir_flag_spec='-R$libdir'
16458 hardcode_shlibpath_var=no
16459 case $host_os in
16460 solaris2.[0-5] | solaris2.[0-5].*) ;;
16461 *)
16462 # The compiler driver will combine and reorder linker options,
16463 # but understands `-z linker_flag'. GCC discards it without `$wl',
16464 # but is careful enough not to reorder.
16465 # Supported since Solaris 2.6 (maybe 2.5.1?)
16466 if test "$GCC" = yes; then
16467 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16468 else
16469 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16470 fi
16471 ;;
16472 esac
16473 link_all_deplibs=yes
16474 ;;
16475
16476 sunos4*)
16477 if test "x$host_vendor" = xsequent; then
16478 # Use $CC to link under sequent, because it throws in some extra .o
16479 # files that make .init and .fini sections work.
16480 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16481 else
16482 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16483 fi
16484 hardcode_libdir_flag_spec='-L$libdir'
16485 hardcode_direct=yes
16486 hardcode_minus_L=yes
16487 hardcode_shlibpath_var=no
16488 ;;
16489
16490 sysv4)
16491 case $host_vendor in
16492 sni)
16493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16494 hardcode_direct=yes # is this really true???
16495 ;;
16496 siemens)
16497 ## LD is ld it makes a PLAMLIB
16498 ## CC just makes a GrossModule.
16499 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16500 reload_cmds='$CC -r -o $output$reload_objs'
16501 hardcode_direct=no
16502 ;;
16503 motorola)
16504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16505 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16506 ;;
16507 esac
16508 runpath_var='LD_RUN_PATH'
16509 hardcode_shlibpath_var=no
16510 ;;
16511
16512 sysv4.3*)
16513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514 hardcode_shlibpath_var=no
16515 export_dynamic_flag_spec='-Bexport'
16516 ;;
16517
16518 sysv4*MP*)
16519 if test -d /usr/nec; then
16520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521 hardcode_shlibpath_var=no
16522 runpath_var=LD_RUN_PATH
16523 hardcode_runpath_var=yes
16524 ld_shlibs=yes
16525 fi
16526 ;;
16527
16528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16529 no_undefined_flag='${wl}-z,text'
16530 archive_cmds_need_lc=no
16531 hardcode_shlibpath_var=no
16532 runpath_var='LD_RUN_PATH'
16533
16534 if test "$GCC" = yes; then
16535 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16537 else
16538 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16540 fi
16541 ;;
16542
16543 sysv5* | sco3.2v5* | sco5v6*)
16544 # Note: We can NOT use -z defs as we might desire, because we do not
16545 # link with -lc, and that would cause any symbols used from libc to
16546 # always be unresolved, which means just about no library would
16547 # ever link correctly. If we're not using GNU ld we use -z text
16548 # though, which does catch some bad symbols but isn't as heavy-handed
16549 # as -z defs.
16550 no_undefined_flag='${wl}-z,text'
16551 allow_undefined_flag='${wl}-z,nodefs'
16552 archive_cmds_need_lc=no
16553 hardcode_shlibpath_var=no
16554 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16555 hardcode_libdir_separator=':'
16556 link_all_deplibs=yes
16557 export_dynamic_flag_spec='${wl}-Bexport'
16558 runpath_var='LD_RUN_PATH'
16559
16560 if test "$GCC" = yes; then
16561 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16562 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16563 else
16564 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 fi
16567 ;;
16568
16569 uts4*)
16570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571 hardcode_libdir_flag_spec='-L$libdir'
16572 hardcode_shlibpath_var=no
16573 ;;
16574
16575 *)
16576 ld_shlibs=no
16577 ;;
16578 esac
16579
16580 if test x$host_vendor = xsni; then
16581 case $host in
16582 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16583 export_dynamic_flag_spec='${wl}-Blargedynsym'
16584 ;;
16585 esac
16586 fi
16587 fi
16588
16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16590$as_echo "$ld_shlibs" >&6; }
16591test "$ld_shlibs" = no && can_build_shared=no
16592
16593with_gnu_ld=$with_gnu_ld
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609#
16610# Do we need to explicitly link libc?
16611#
16612case "x$archive_cmds_need_lc" in
16613x|xyes)
16614 # Assume -lc should be added
16615 archive_cmds_need_lc=yes
16616
16617 if test "$enable_shared" = yes && test "$GCC" = yes; then
16618 case $archive_cmds in
16619 *'~'*)
16620 # FIXME: we may have to deal with multi-command sequences.
16621 ;;
16622 '$CC '*)
16623 # Test whether the compiler implicitly links with -lc since on some
16624 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16625 # to ld, don't add -lc before -lgcc.
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16627$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016628if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016629 $as_echo_n "(cached) " >&6
16630else
16631 $RM conftest*
16632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016633
cristy0c60a692010-11-04 01:09:47 +000016634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000016635 (eval $ac_compile) 2>&5
16636 ac_status=$?
16637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16638 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000016639 soname=conftest
16640 lib=conftest
16641 libobjs=conftest.$ac_objext
16642 deplibs=
16643 wl=$lt_prog_compiler_wl
16644 pic_flag=$lt_prog_compiler_pic
16645 compiler_flags=-v
16646 linker_flags=-v
16647 verstring=
16648 output_objdir=.
16649 libname=conftest
16650 lt_save_allow_undefined_flag=$allow_undefined_flag
16651 allow_undefined_flag=
16652 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 +000016653 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16654 ac_status=$?
16655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16656 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000016657 then
16658 lt_cv_archive_cmds_need_lc=no
16659 else
16660 lt_cv_archive_cmds_need_lc=yes
16661 fi
16662 allow_undefined_flag=$lt_save_allow_undefined_flag
16663 else
16664 cat conftest.err 1>&5
16665 fi
16666 $RM conftest*
16667
16668fi
16669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16670$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16671 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000016672 ;;
16673 esac
16674 fi
16675 ;;
16676esac
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
cristy73bd4a52010-10-05 11:24:23 +000016829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16830$as_echo_n "checking dynamic linker characteristics... " >&6; }
16831
16832if test "$GCC" = yes; then
16833 case $host_os in
16834 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16835 *) lt_awk_arg="/^libraries:/" ;;
16836 esac
cristy0c60a692010-11-04 01:09:47 +000016837 case $host_os in
16838 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16839 *) lt_sed_strip_eq="s,=/,/,g" ;;
16840 esac
16841 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16842 case $lt_search_path_spec in
16843 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000016844 # if the path contains ";" then we assume it to be the separator
16845 # otherwise default to the standard path separator (i.e. ":") - it is
16846 # assumed that no part of a normal pathname contains ";" but that should
16847 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000016848 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16849 ;;
16850 *)
16851 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16852 ;;
16853 esac
cristy73bd4a52010-10-05 11:24:23 +000016854 # Ok, now we have the path, separated by spaces, we can step through it
16855 # and add multilib dir if necessary.
16856 lt_tmp_lt_search_path_spec=
16857 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16858 for lt_sys_path in $lt_search_path_spec; do
16859 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16861 else
16862 test -d "$lt_sys_path" && \
16863 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16864 fi
16865 done
cristy0c60a692010-11-04 01:09:47 +000016866 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016867BEGIN {RS=" "; FS="/|\n";} {
16868 lt_foo="";
16869 lt_count=0;
16870 for (lt_i = NF; lt_i > 0; lt_i--) {
16871 if ($lt_i != "" && $lt_i != ".") {
16872 if ($lt_i == "..") {
16873 lt_count++;
16874 } else {
16875 if (lt_count == 0) {
16876 lt_foo="/" $lt_i lt_foo;
16877 } else {
16878 lt_count--;
16879 }
16880 }
16881 }
16882 }
16883 if (lt_foo != "") { lt_freq[lt_foo]++; }
16884 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16885}'`
cristy0c60a692010-11-04 01:09:47 +000016886 # AWK program above erroneously prepends '/' to C:/dos/paths
16887 # for these hosts.
16888 case $host_os in
16889 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16890 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16891 esac
16892 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016893else
16894 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16895fi
16896library_names_spec=
16897libname_spec='lib$name'
16898soname_spec=
16899shrext_cmds=".so"
16900postinstall_cmds=
16901postuninstall_cmds=
16902finish_cmds=
16903finish_eval=
16904shlibpath_var=
16905shlibpath_overrides_runpath=unknown
16906version_type=none
16907dynamic_linker="$host_os ld.so"
16908sys_lib_dlsearch_path_spec="/lib /usr/lib"
16909need_lib_prefix=unknown
16910hardcode_into_libs=no
16911
16912# when you set need_version to no, make sure it does not cause -set_version
16913# flags to be left without arguments
16914need_version=unknown
16915
16916case $host_os in
16917aix3*)
cristy99bd5232011-12-07 14:38:20 +000016918 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16920 shlibpath_var=LIBPATH
16921
16922 # AIX 3 has no versioning support, so we append a major version to the name.
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 ;;
16925
16926aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016927 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016928 need_lib_prefix=no
16929 need_version=no
16930 hardcode_into_libs=yes
16931 if test "$host_cpu" = ia64; then
16932 # AIX 5 supports IA64
16933 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16934 shlibpath_var=LD_LIBRARY_PATH
16935 else
16936 # With GCC up to 2.95.x, collect2 would create an import file
16937 # for dependence libraries. The import file would start with
16938 # the line `#! .'. This would cause the generated library to
16939 # depend on `.', always an invalid library. This was fixed in
16940 # development snapshots of GCC prior to 3.0.
16941 case $host_os in
16942 aix4 | aix4.[01] | aix4.[01].*)
16943 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16944 echo ' yes '
16945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16946 :
16947 else
16948 can_build_shared=no
16949 fi
16950 ;;
16951 esac
16952 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16953 # soname into executable. Probably we can add versioning support to
16954 # collect2, so additional links can be useful in future.
16955 if test "$aix_use_runtimelinking" = yes; then
16956 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16957 # instead of lib<name>.a to let people know that these are not
16958 # typical AIX shared libraries.
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960 else
16961 # We preserve .a as extension for shared libraries through AIX4.2
16962 # and later when we are not doing run time linking.
16963 library_names_spec='${libname}${release}.a $libname.a'
16964 soname_spec='${libname}${release}${shared_ext}$major'
16965 fi
16966 shlibpath_var=LIBPATH
16967 fi
16968 ;;
16969
16970amigaos*)
16971 case $host_cpu in
16972 powerpc)
16973 # Since July 2007 AmigaOS4 officially supports .so libraries.
16974 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 ;;
16977 m68k)
16978 library_names_spec='$libname.ixlibrary $libname.a'
16979 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016980 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 +000016981 ;;
16982 esac
16983 ;;
16984
16985beos*)
16986 library_names_spec='${libname}${shared_ext}'
16987 dynamic_linker="$host_os ld.so"
16988 shlibpath_var=LIBRARY_PATH
16989 ;;
16990
16991bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016992 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016993 need_version=no
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16997 shlibpath_var=LD_LIBRARY_PATH
16998 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16999 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17000 # the default ld.so.conf also contains /usr/contrib/lib and
17001 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17002 # libtool to hard-code these into programs
17003 ;;
17004
17005cygwin* | mingw* | pw32* | cegcc*)
17006 version_type=windows
17007 shrext_cmds=".dll"
17008 need_version=no
17009 need_lib_prefix=no
17010
cristyda16f162011-02-19 23:52:17 +000017011 case $GCC,$cc_basename in
17012 yes,*)
17013 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017014 library_names_spec='$libname.dll.a'
17015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17016 postinstall_cmds='base_file=`basename \${file}`~
17017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17018 dldir=$destdir/`dirname \$dlpath`~
17019 test -d \$dldir || mkdir -p \$dldir~
17020 $install_prog $dir/$dlname \$dldir/$dlname~
17021 chmod a+x \$dldir/$dlname~
17022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17023 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17024 fi'
17025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17026 dlpath=$dir/\$dldll~
17027 $RM \$dlpath'
17028 shlibpath_overrides_runpath=yes
17029
17030 case $host_os in
17031 cygwin*)
17032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000017034
17035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017036 ;;
17037 mingw* | cegcc*)
17038 # MinGW DLLs use traditional 'lib' prefix
17039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000017040 ;;
17041 pw32*)
17042 # pw32 DLLs use 'pw' prefix rather than 'lib'
17043 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17044 ;;
17045 esac
cristyda16f162011-02-19 23:52:17 +000017046 dynamic_linker='Win32 ld.exe'
17047 ;;
17048
17049 *,cl*)
17050 # Native MSVC
17051 libname_spec='$name'
17052 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17053 library_names_spec='${libname}.dll.lib'
17054
17055 case $build_os in
17056 mingw*)
17057 sys_lib_search_path_spec=
17058 lt_save_ifs=$IFS
17059 IFS=';'
17060 for lt_path in $LIB
17061 do
17062 IFS=$lt_save_ifs
17063 # Let DOS variable expansion print the short 8.3 style file name.
17064 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17065 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17066 done
17067 IFS=$lt_save_ifs
17068 # Convert to MSYS style.
17069 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17070 ;;
17071 cygwin*)
17072 # Convert to unix form, then to dos form, then back to unix form
17073 # but this time dos style (no spaces!) so that the unix form looks
17074 # like /cygdrive/c/PROGRA~1:/cygdr...
17075 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17076 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17077 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17078 ;;
17079 *)
17080 sys_lib_search_path_spec="$LIB"
17081 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17082 # It is most probably a Windows format PATH.
17083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17084 else
17085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17086 fi
17087 # FIXME: find the short name or the path components, as spaces are
17088 # common. (e.g. "Program Files" -> "PROGRA~1")
17089 ;;
17090 esac
17091
17092 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17093 postinstall_cmds='base_file=`basename \${file}`~
17094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17095 dldir=$destdir/`dirname \$dlpath`~
17096 test -d \$dldir || mkdir -p \$dldir~
17097 $install_prog $dir/$dlname \$dldir/$dlname'
17098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17099 dlpath=$dir/\$dldll~
17100 $RM \$dlpath'
17101 shlibpath_overrides_runpath=yes
17102 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017103 ;;
17104
17105 *)
cristyda16f162011-02-19 23:52:17 +000017106 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000017107 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017108 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017109 ;;
17110 esac
cristy73bd4a52010-10-05 11:24:23 +000017111 # FIXME: first we should search . and the directory the executable is in
17112 shlibpath_var=PATH
17113 ;;
17114
17115darwin* | rhapsody*)
17116 dynamic_linker="$host_os dyld"
17117 version_type=darwin
17118 need_lib_prefix=no
17119 need_version=no
17120 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17121 soname_spec='${libname}${release}${major}$shared_ext'
17122 shlibpath_overrides_runpath=yes
17123 shlibpath_var=DYLD_LIBRARY_PATH
17124 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17125
17126 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17127 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17128 ;;
17129
17130dgux*)
cristy99bd5232011-12-07 14:38:20 +000017131 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017132 need_lib_prefix=no
17133 need_version=no
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 ;;
17138
cristy73bd4a52010-10-05 11:24:23 +000017139freebsd* | dragonfly*)
17140 # DragonFly does not have aout. When/if they implement a new
17141 # versioning mechanism, adjust this.
17142 if test -x /usr/bin/objformat; then
17143 objformat=`/usr/bin/objformat`
17144 else
17145 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017146 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017147 *) objformat=elf ;;
17148 esac
17149 fi
17150 version_type=freebsd-$objformat
17151 case $version_type in
17152 freebsd-elf*)
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17154 need_version=no
17155 need_lib_prefix=no
17156 ;;
17157 freebsd-*)
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17159 need_version=yes
17160 ;;
17161 esac
17162 shlibpath_var=LD_LIBRARY_PATH
17163 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017164 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017165 shlibpath_overrides_runpath=yes
17166 ;;
17167 freebsd3.[01]* | freebsdelf3.[01]*)
17168 shlibpath_overrides_runpath=yes
17169 hardcode_into_libs=yes
17170 ;;
17171 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17172 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17173 shlibpath_overrides_runpath=no
17174 hardcode_into_libs=yes
17175 ;;
17176 *) # from 4.6 on, and DragonFly
17177 shlibpath_overrides_runpath=yes
17178 hardcode_into_libs=yes
17179 ;;
17180 esac
17181 ;;
17182
17183gnu*)
cristy99bd5232011-12-07 14:38:20 +000017184 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017185 need_lib_prefix=no
17186 need_version=no
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17188 soname_spec='${libname}${release}${shared_ext}$major'
17189 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000017190 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000017191 hardcode_into_libs=yes
17192 ;;
17193
cristy0c60a692010-11-04 01:09:47 +000017194haiku*)
cristy99bd5232011-12-07 14:38:20 +000017195 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017196 need_lib_prefix=no
17197 need_version=no
17198 dynamic_linker="$host_os runtime_loader"
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 shlibpath_var=LIBRARY_PATH
17202 shlibpath_overrides_runpath=yes
17203 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17204 hardcode_into_libs=yes
17205 ;;
17206
cristy73bd4a52010-10-05 11:24:23 +000017207hpux9* | hpux10* | hpux11*)
17208 # Give a soname corresponding to the major version so that dld.sl refuses to
17209 # link against other versions.
17210 version_type=sunos
17211 need_lib_prefix=no
17212 need_version=no
17213 case $host_cpu in
17214 ia64*)
17215 shrext_cmds='.so'
17216 hardcode_into_libs=yes
17217 dynamic_linker="$host_os dld.so"
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 if test "X$HPUX_IA64_MODE" = X32; then
17223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17224 else
17225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17226 fi
17227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17228 ;;
17229 hppa*64*)
17230 shrext_cmds='.sl'
17231 hardcode_into_libs=yes
17232 dynamic_linker="$host_os dld.sl"
17233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17239 ;;
17240 *)
17241 shrext_cmds='.sl'
17242 dynamic_linker="$host_os dld.sl"
17243 shlibpath_var=SHLIB_PATH
17244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17247 ;;
17248 esac
cristy0c60a692010-11-04 01:09:47 +000017249 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017250 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017251 # or fails outright, so override atomically:
17252 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017253 ;;
17254
17255interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017256 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017257 need_lib_prefix=no
17258 need_version=no
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath=no
17264 hardcode_into_libs=yes
17265 ;;
17266
17267irix5* | irix6* | nonstopux*)
17268 case $host_os in
17269 nonstopux*) version_type=nonstopux ;;
17270 *)
17271 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000017272 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017273 else
17274 version_type=irix
17275 fi ;;
17276 esac
17277 need_lib_prefix=no
17278 need_version=no
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17281 case $host_os in
17282 irix5* | nonstopux*)
17283 libsuff= shlibsuff=
17284 ;;
17285 *)
17286 case $LD in # libtool.m4 will add one of these switches to LD
17287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17288 libsuff= shlibsuff= libmagic=32-bit;;
17289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17290 libsuff=32 shlibsuff=N32 libmagic=N32;;
17291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17293 *) libsuff= shlibsuff= libmagic=never-match;;
17294 esac
17295 ;;
17296 esac
17297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17298 shlibpath_overrides_runpath=no
17299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17301 hardcode_into_libs=yes
17302 ;;
17303
17304# No shared lib support for Linux oldld, aout, or coff.
17305linux*oldld* | linux*aout* | linux*coff*)
17306 dynamic_linker=no
17307 ;;
17308
cristy99bd5232011-12-07 14:38:20 +000017309# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000017310linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000017311 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017312 need_lib_prefix=no
17313 need_version=no
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017319
cristy73bd4a52010-10-05 11:24:23 +000017320 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017321 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017322 $as_echo_n "(cached) " >&6
17323else
17324 lt_cv_shlibpath_overrides_runpath=no
17325 save_LDFLAGS=$LDFLAGS
17326 save_libdir=$libdir
17327 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17328 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017330/* end confdefs.h. */
17331
17332int
17333main ()
17334{
17335
17336 ;
17337 return 0;
17338}
17339_ACEOF
17340if ac_fn_c_try_link "$LINENO"; then :
17341 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017342 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017343fi
17344fi
17345rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017347 LDFLAGS=$save_LDFLAGS
17348 libdir=$save_libdir
17349
17350fi
17351
17352 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017353
17354 # This implies no fast_install, which is unacceptable.
17355 # Some rework will be needed to allow for fast_install
17356 # before this can be enabled.
17357 hardcode_into_libs=yes
17358
17359 # Add ABI-specific directories to the system library path.
17360 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17361
17362 # Append ld.so.conf contents to the search path
17363 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017364 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 +000017365 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000017366
cristy73bd4a52010-10-05 11:24:23 +000017367 fi
17368
17369 # We used to test for /lib/ld.so.1 and disable shared libraries on
17370 # powerpc, because MkLinux only supported shared libraries with the
17371 # GNU dynamic linker. Since this was broken with cross compilers,
17372 # most powerpc-linux boxes support dynamic linking these days and
17373 # people can always --disable-shared, the test was removed, and we
17374 # assume the GNU/Linux dynamic linker is in use.
17375 dynamic_linker='GNU/Linux ld.so'
17376 ;;
17377
17378netbsd*)
17379 version_type=sunos
17380 need_lib_prefix=no
17381 need_version=no
17382 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17385 dynamic_linker='NetBSD (a.out) ld.so'
17386 else
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 dynamic_linker='NetBSD ld.elf_so'
17390 fi
17391 shlibpath_var=LD_LIBRARY_PATH
17392 shlibpath_overrides_runpath=yes
17393 hardcode_into_libs=yes
17394 ;;
17395
17396newsos6)
cristy99bd5232011-12-07 14:38:20 +000017397 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399 shlibpath_var=LD_LIBRARY_PATH
17400 shlibpath_overrides_runpath=yes
17401 ;;
17402
17403*nto* | *qnx*)
17404 version_type=qnx
17405 need_lib_prefix=no
17406 need_version=no
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 shlibpath_var=LD_LIBRARY_PATH
17410 shlibpath_overrides_runpath=no
17411 hardcode_into_libs=yes
17412 dynamic_linker='ldqnx.so'
17413 ;;
17414
17415openbsd*)
17416 version_type=sunos
17417 sys_lib_dlsearch_path_spec="/usr/lib"
17418 need_lib_prefix=no
17419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17420 case $host_os in
17421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17422 *) need_version=no ;;
17423 esac
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17426 shlibpath_var=LD_LIBRARY_PATH
17427 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17428 case $host_os in
17429 openbsd2.[89] | openbsd2.[89].*)
17430 shlibpath_overrides_runpath=no
17431 ;;
17432 *)
17433 shlibpath_overrides_runpath=yes
17434 ;;
17435 esac
17436 else
17437 shlibpath_overrides_runpath=yes
17438 fi
17439 ;;
17440
17441os2*)
17442 libname_spec='$name'
17443 shrext_cmds=".dll"
17444 need_lib_prefix=no
17445 library_names_spec='$libname${shared_ext} $libname.a'
17446 dynamic_linker='OS/2 ld.exe'
17447 shlibpath_var=LIBPATH
17448 ;;
17449
17450osf3* | osf4* | osf5*)
17451 version_type=osf
17452 need_lib_prefix=no
17453 need_version=no
17454 soname_spec='${libname}${release}${shared_ext}$major'
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17456 shlibpath_var=LD_LIBRARY_PATH
17457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17459 ;;
17460
17461rdos*)
17462 dynamic_linker=no
17463 ;;
17464
17465solaris*)
cristy99bd5232011-12-07 14:38:20 +000017466 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017467 need_lib_prefix=no
17468 need_version=no
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 shlibpath_overrides_runpath=yes
17473 hardcode_into_libs=yes
17474 # ldd complains unless libraries are executable
17475 postinstall_cmds='chmod +x $lib'
17476 ;;
17477
17478sunos4*)
17479 version_type=sunos
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17481 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath=yes
17484 if test "$with_gnu_ld" = yes; then
17485 need_lib_prefix=no
17486 fi
17487 need_version=yes
17488 ;;
17489
17490sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017491 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17493 soname_spec='${libname}${release}${shared_ext}$major'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 case $host_vendor in
17496 sni)
17497 shlibpath_overrides_runpath=no
17498 need_lib_prefix=no
17499 runpath_var=LD_RUN_PATH
17500 ;;
17501 siemens)
17502 need_lib_prefix=no
17503 ;;
17504 motorola)
17505 need_lib_prefix=no
17506 need_version=no
17507 shlibpath_overrides_runpath=no
17508 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17509 ;;
17510 esac
17511 ;;
17512
17513sysv4*MP*)
17514 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000017515 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017516 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17517 soname_spec='$libname${shared_ext}.$major'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 fi
17520 ;;
17521
17522sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17523 version_type=freebsd-elf
17524 need_lib_prefix=no
17525 need_version=no
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17527 soname_spec='${libname}${release}${shared_ext}$major'
17528 shlibpath_var=LD_LIBRARY_PATH
17529 shlibpath_overrides_runpath=yes
17530 hardcode_into_libs=yes
17531 if test "$with_gnu_ld" = yes; then
17532 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17533 else
17534 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17535 case $host_os in
17536 sco3.2v5*)
17537 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17538 ;;
17539 esac
17540 fi
17541 sys_lib_dlsearch_path_spec='/usr/lib'
17542 ;;
17543
17544tpf*)
17545 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000017546 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017547 need_lib_prefix=no
17548 need_version=no
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 shlibpath_var=LD_LIBRARY_PATH
17551 shlibpath_overrides_runpath=no
17552 hardcode_into_libs=yes
17553 ;;
17554
17555uts4*)
cristy99bd5232011-12-07 14:38:20 +000017556 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558 soname_spec='${libname}${release}${shared_ext}$major'
17559 shlibpath_var=LD_LIBRARY_PATH
17560 ;;
17561
17562*)
17563 dynamic_linker=no
17564 ;;
17565esac
17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17567$as_echo "$dynamic_linker" >&6; }
17568test "$dynamic_linker" = no && can_build_shared=no
17569
17570variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17571if test "$GCC" = yes; then
17572 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17573fi
17574
17575if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17576 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17577fi
17578if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17579 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17580fi
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
cristy0c60a692010-11-04 01:09:47 +000017668
17669
17670
17671
17672
cristy73bd4a52010-10-05 11:24:23 +000017673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17674$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17675hardcode_action=
17676if test -n "$hardcode_libdir_flag_spec" ||
17677 test -n "$runpath_var" ||
17678 test "X$hardcode_automatic" = "Xyes" ; then
17679
17680 # We can hardcode non-existent directories.
17681 if test "$hardcode_direct" != no &&
17682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17683 # have to relink, otherwise we might link with an installed library
17684 # when we should be linking with a yet-to-be-installed one
17685 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17686 test "$hardcode_minus_L" != no; then
17687 # Linking always hardcodes the temporary library directory.
17688 hardcode_action=relink
17689 else
17690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17691 hardcode_action=immediate
17692 fi
17693else
17694 # We cannot hardcode anything, or else we can only hardcode existing
17695 # directories.
17696 hardcode_action=unsupported
17697fi
17698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17699$as_echo "$hardcode_action" >&6; }
17700
17701if test "$hardcode_action" = relink ||
17702 test "$inherit_rpath" = yes; then
17703 # Fast installation is not supported
17704 enable_fast_install=no
17705elif test "$shlibpath_overrides_runpath" = yes ||
17706 test "$enable_shared" = no; then
17707 # Fast installation is not necessary
17708 enable_fast_install=needless
17709fi
17710
17711
17712
17713
17714
17715
17716 if test "x$enable_dlopen" != xyes; then
17717 enable_dlopen=unknown
17718 enable_dlopen_self=unknown
17719 enable_dlopen_self_static=unknown
17720else
17721 lt_cv_dlopen=no
17722 lt_cv_dlopen_libs=
17723
17724 case $host_os in
17725 beos*)
17726 lt_cv_dlopen="load_add_on"
17727 lt_cv_dlopen_libs=
17728 lt_cv_dlopen_self=yes
17729 ;;
17730
17731 mingw* | pw32* | cegcc*)
17732 lt_cv_dlopen="LoadLibrary"
17733 lt_cv_dlopen_libs=
17734 ;;
17735
17736 cygwin*)
17737 lt_cv_dlopen="dlopen"
17738 lt_cv_dlopen_libs=
17739 ;;
17740
17741 darwin*)
17742 # if libdl is installed we need to link against it
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17744$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017745if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017746 $as_echo_n "(cached) " >&6
17747else
17748 ac_check_lib_save_LIBS=$LIBS
17749LIBS="-ldl $LIBS"
17750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751/* end confdefs.h. */
17752
17753/* Override any GCC internal prototype to avoid an error.
17754 Use char because int might match the return type of a GCC
17755 builtin and then its argument prototype would still apply. */
17756#ifdef __cplusplus
17757extern "C"
17758#endif
17759char dlopen ();
17760int
17761main ()
17762{
17763return dlopen ();
17764 ;
17765 return 0;
17766}
17767_ACEOF
17768if ac_fn_c_try_link "$LINENO"; then :
17769 ac_cv_lib_dl_dlopen=yes
17770else
17771 ac_cv_lib_dl_dlopen=no
17772fi
17773rm -f core conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17775LIBS=$ac_check_lib_save_LIBS
17776fi
17777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17778$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017779if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17781else
17782
17783 lt_cv_dlopen="dyld"
17784 lt_cv_dlopen_libs=
17785 lt_cv_dlopen_self=yes
17786
17787fi
17788
17789 ;;
17790
17791 *)
17792 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000017793if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017794 lt_cv_dlopen="shl_load"
17795else
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17797$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017798if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017799 $as_echo_n "(cached) " >&6
17800else
17801 ac_check_lib_save_LIBS=$LIBS
17802LIBS="-ldld $LIBS"
17803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17804/* end confdefs.h. */
17805
17806/* Override any GCC internal prototype to avoid an error.
17807 Use char because int might match the return type of a GCC
17808 builtin and then its argument prototype would still apply. */
17809#ifdef __cplusplus
17810extern "C"
17811#endif
17812char shl_load ();
17813int
17814main ()
17815{
17816return shl_load ();
17817 ;
17818 return 0;
17819}
17820_ACEOF
17821if ac_fn_c_try_link "$LINENO"; then :
17822 ac_cv_lib_dld_shl_load=yes
17823else
17824 ac_cv_lib_dld_shl_load=no
17825fi
17826rm -f core conftest.err conftest.$ac_objext \
17827 conftest$ac_exeext conftest.$ac_ext
17828LIBS=$ac_check_lib_save_LIBS
17829fi
17830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17831$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000017832if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017833 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17834else
17835 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000017836if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017837 lt_cv_dlopen="dlopen"
17838else
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17840$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017841if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017842 $as_echo_n "(cached) " >&6
17843else
17844 ac_check_lib_save_LIBS=$LIBS
17845LIBS="-ldl $LIBS"
17846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847/* end confdefs.h. */
17848
17849/* Override any GCC internal prototype to avoid an error.
17850 Use char because int might match the return type of a GCC
17851 builtin and then its argument prototype would still apply. */
17852#ifdef __cplusplus
17853extern "C"
17854#endif
17855char dlopen ();
17856int
17857main ()
17858{
17859return dlopen ();
17860 ;
17861 return 0;
17862}
17863_ACEOF
17864if ac_fn_c_try_link "$LINENO"; then :
17865 ac_cv_lib_dl_dlopen=yes
17866else
17867 ac_cv_lib_dl_dlopen=no
17868fi
17869rm -f core conftest.err conftest.$ac_objext \
17870 conftest$ac_exeext conftest.$ac_ext
17871LIBS=$ac_check_lib_save_LIBS
17872fi
17873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17874$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017875if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17877else
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17879$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017880if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017881 $as_echo_n "(cached) " >&6
17882else
17883 ac_check_lib_save_LIBS=$LIBS
17884LIBS="-lsvld $LIBS"
17885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886/* end confdefs.h. */
17887
17888/* Override any GCC internal prototype to avoid an error.
17889 Use char because int might match the return type of a GCC
17890 builtin and then its argument prototype would still apply. */
17891#ifdef __cplusplus
17892extern "C"
17893#endif
17894char dlopen ();
17895int
17896main ()
17897{
17898return dlopen ();
17899 ;
17900 return 0;
17901}
17902_ACEOF
17903if ac_fn_c_try_link "$LINENO"; then :
17904 ac_cv_lib_svld_dlopen=yes
17905else
17906 ac_cv_lib_svld_dlopen=no
17907fi
17908rm -f core conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17910LIBS=$ac_check_lib_save_LIBS
17911fi
17912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17913$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017914if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17916else
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17918$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017919if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017920 $as_echo_n "(cached) " >&6
17921else
17922 ac_check_lib_save_LIBS=$LIBS
17923LIBS="-ldld $LIBS"
17924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925/* end confdefs.h. */
17926
17927/* Override any GCC internal prototype to avoid an error.
17928 Use char because int might match the return type of a GCC
17929 builtin and then its argument prototype would still apply. */
17930#ifdef __cplusplus
17931extern "C"
17932#endif
17933char dld_link ();
17934int
17935main ()
17936{
17937return dld_link ();
17938 ;
17939 return 0;
17940}
17941_ACEOF
17942if ac_fn_c_try_link "$LINENO"; then :
17943 ac_cv_lib_dld_dld_link=yes
17944else
17945 ac_cv_lib_dld_dld_link=no
17946fi
17947rm -f core conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17949LIBS=$ac_check_lib_save_LIBS
17950fi
17951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17952$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017953if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017954 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17955fi
17956
17957
17958fi
17959
17960
17961fi
17962
17963
17964fi
17965
17966
17967fi
17968
17969
17970fi
17971
17972 ;;
17973 esac
17974
17975 if test "x$lt_cv_dlopen" != xno; then
17976 enable_dlopen=yes
17977 else
17978 enable_dlopen=no
17979 fi
17980
17981 case $lt_cv_dlopen in
17982 dlopen)
17983 save_CPPFLAGS="$CPPFLAGS"
17984 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17985
17986 save_LDFLAGS="$LDFLAGS"
17987 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17988
17989 save_LIBS="$LIBS"
17990 LIBS="$lt_cv_dlopen_libs $LIBS"
17991
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17993$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017994if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017995 $as_echo_n "(cached) " >&6
17996else
17997 if test "$cross_compiling" = yes; then :
17998 lt_cv_dlopen_self=cross
17999else
18000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18001 lt_status=$lt_dlunknown
18002 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018003#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018004#include "confdefs.h"
18005
18006#if HAVE_DLFCN_H
18007#include <dlfcn.h>
18008#endif
18009
18010#include <stdio.h>
18011
18012#ifdef RTLD_GLOBAL
18013# define LT_DLGLOBAL RTLD_GLOBAL
18014#else
18015# ifdef DL_GLOBAL
18016# define LT_DLGLOBAL DL_GLOBAL
18017# else
18018# define LT_DLGLOBAL 0
18019# endif
18020#endif
18021
18022/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18023 find out it does not work in some platform. */
18024#ifndef LT_DLLAZY_OR_NOW
18025# ifdef RTLD_LAZY
18026# define LT_DLLAZY_OR_NOW RTLD_LAZY
18027# else
18028# ifdef DL_LAZY
18029# define LT_DLLAZY_OR_NOW DL_LAZY
18030# else
18031# ifdef RTLD_NOW
18032# define LT_DLLAZY_OR_NOW RTLD_NOW
18033# else
18034# ifdef DL_NOW
18035# define LT_DLLAZY_OR_NOW DL_NOW
18036# else
18037# define LT_DLLAZY_OR_NOW 0
18038# endif
18039# endif
18040# endif
18041# endif
18042#endif
18043
cristy0c60a692010-11-04 01:09:47 +000018044/* When -fvisbility=hidden is used, assume the code has been annotated
18045 correspondingly for the symbols needed. */
18046#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018047int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018048#endif
18049
cristyda16f162011-02-19 23:52:17 +000018050int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018051int main ()
18052{
18053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18054 int status = $lt_dlunknown;
18055
18056 if (self)
18057 {
18058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018059 else
18060 {
18061 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18062 else puts (dlerror ());
18063 }
cristy73bd4a52010-10-05 11:24:23 +000018064 /* dlclose (self); */
18065 }
18066 else
18067 puts (dlerror ());
18068
18069 return status;
18070}
18071_LT_EOF
18072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18073 (eval $ac_link) 2>&5
18074 ac_status=$?
18075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18076 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18077 (./conftest; exit; ) >&5 2>/dev/null
18078 lt_status=$?
18079 case x$lt_status in
18080 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18081 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18082 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18083 esac
18084 else :
18085 # compilation failed
18086 lt_cv_dlopen_self=no
18087 fi
18088fi
18089rm -fr conftest*
18090
18091
18092fi
18093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18094$as_echo "$lt_cv_dlopen_self" >&6; }
18095
18096 if test "x$lt_cv_dlopen_self" = xyes; then
18097 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18099$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018100if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018101 $as_echo_n "(cached) " >&6
18102else
18103 if test "$cross_compiling" = yes; then :
18104 lt_cv_dlopen_self_static=cross
18105else
18106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18107 lt_status=$lt_dlunknown
18108 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018109#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018110#include "confdefs.h"
18111
18112#if HAVE_DLFCN_H
18113#include <dlfcn.h>
18114#endif
18115
18116#include <stdio.h>
18117
18118#ifdef RTLD_GLOBAL
18119# define LT_DLGLOBAL RTLD_GLOBAL
18120#else
18121# ifdef DL_GLOBAL
18122# define LT_DLGLOBAL DL_GLOBAL
18123# else
18124# define LT_DLGLOBAL 0
18125# endif
18126#endif
18127
18128/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18129 find out it does not work in some platform. */
18130#ifndef LT_DLLAZY_OR_NOW
18131# ifdef RTLD_LAZY
18132# define LT_DLLAZY_OR_NOW RTLD_LAZY
18133# else
18134# ifdef DL_LAZY
18135# define LT_DLLAZY_OR_NOW DL_LAZY
18136# else
18137# ifdef RTLD_NOW
18138# define LT_DLLAZY_OR_NOW RTLD_NOW
18139# else
18140# ifdef DL_NOW
18141# define LT_DLLAZY_OR_NOW DL_NOW
18142# else
18143# define LT_DLLAZY_OR_NOW 0
18144# endif
18145# endif
18146# endif
18147# endif
18148#endif
18149
cristy0c60a692010-11-04 01:09:47 +000018150/* When -fvisbility=hidden is used, assume the code has been annotated
18151 correspondingly for the symbols needed. */
18152#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018153int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018154#endif
18155
cristyda16f162011-02-19 23:52:17 +000018156int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018157int main ()
18158{
18159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18160 int status = $lt_dlunknown;
18161
18162 if (self)
18163 {
18164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018165 else
18166 {
18167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18168 else puts (dlerror ());
18169 }
cristy73bd4a52010-10-05 11:24:23 +000018170 /* dlclose (self); */
18171 }
18172 else
18173 puts (dlerror ());
18174
18175 return status;
18176}
18177_LT_EOF
18178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18179 (eval $ac_link) 2>&5
18180 ac_status=$?
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18183 (./conftest; exit; ) >&5 2>/dev/null
18184 lt_status=$?
18185 case x$lt_status in
18186 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18187 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18188 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18189 esac
18190 else :
18191 # compilation failed
18192 lt_cv_dlopen_self_static=no
18193 fi
18194fi
18195rm -fr conftest*
18196
18197
18198fi
18199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18200$as_echo "$lt_cv_dlopen_self_static" >&6; }
18201 fi
18202
18203 CPPFLAGS="$save_CPPFLAGS"
18204 LDFLAGS="$save_LDFLAGS"
18205 LIBS="$save_LIBS"
18206 ;;
18207 esac
18208
18209 case $lt_cv_dlopen_self in
18210 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18211 *) enable_dlopen_self=unknown ;;
18212 esac
18213
18214 case $lt_cv_dlopen_self_static in
18215 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18216 *) enable_dlopen_self_static=unknown ;;
18217 esac
18218fi
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236striplib=
18237old_striplib=
18238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18239$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18240if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18241 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18242 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18244$as_echo "yes" >&6; }
18245else
18246# FIXME - insert some real tests, host_os isn't really good enough
18247 case $host_os in
18248 darwin*)
18249 if test -n "$STRIP" ; then
18250 striplib="$STRIP -x"
18251 old_striplib="$STRIP -S"
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18253$as_echo "yes" >&6; }
18254 else
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256$as_echo "no" >&6; }
18257 fi
18258 ;;
18259 *)
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261$as_echo "no" >&6; }
18262 ;;
18263 esac
18264fi
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277 # Report which library types will actually be built
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18279$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18281$as_echo "$can_build_shared" >&6; }
18282
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18284$as_echo_n "checking whether to build shared libraries... " >&6; }
18285 test "$can_build_shared" = "no" && enable_shared=no
18286
18287 # On AIX, shared libraries and static libraries use the same namespace, and
18288 # are all built from PIC.
18289 case $host_os in
18290 aix3*)
18291 test "$enable_shared" = yes && enable_static=no
18292 if test -n "$RANLIB"; then
18293 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18294 postinstall_cmds='$RANLIB $lib'
18295 fi
18296 ;;
18297
18298 aix[4-9]*)
18299 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18300 test "$enable_shared" = yes && enable_static=no
18301 fi
18302 ;;
18303 esac
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18305$as_echo "$enable_shared" >&6; }
18306
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18308$as_echo_n "checking whether to build static libraries... " >&6; }
18309 # Make sure either enable_shared or enable_static is yes.
18310 test "$enable_shared" = yes || enable_static=yes
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18312$as_echo "$enable_static" >&6; }
18313
18314
18315
18316
18317fi
18318ac_ext=c
18319ac_cpp='$CPP $CPPFLAGS'
18320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18322ac_compiler_gnu=$ac_cv_c_compiler_gnu
18323
18324CC="$lt_save_CC"
18325
cristy0c60a692010-11-04 01:09:47 +000018326 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18327 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18328 (test "X$CXX" != "Xg++"))) ; then
18329 ac_ext=cpp
18330ac_cpp='$CXXCPP $CPPFLAGS'
18331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18335$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18336if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018337 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018338 $as_echo_n "(cached) " >&6
18339else
18340 # Double quotes because CXXCPP needs to be expanded
18341 for CXXCPP in "$CXX -E" "/lib/cpp"
18342 do
18343 ac_preproc_ok=false
18344for ac_cxx_preproc_warn_flag in '' yes
18345do
18346 # Use a header file that comes with gcc, so configuring glibc
18347 # with a fresh cross-compiler works.
18348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18349 # <limits.h> exists even on freestanding compilers.
18350 # On the NeXT, cc -E runs the code through the compiler's parser,
18351 # not just through cpp. "Syntax error" is here to catch this case.
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353/* end confdefs.h. */
18354#ifdef __STDC__
18355# include <limits.h>
18356#else
18357# include <assert.h>
18358#endif
18359 Syntax error
18360_ACEOF
18361if ac_fn_cxx_try_cpp "$LINENO"; then :
18362
18363else
18364 # Broken: fails on valid input.
18365continue
18366fi
cristyda16f162011-02-19 23:52:17 +000018367rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018368
18369 # OK, works on sane cases. Now check whether nonexistent headers
18370 # can be detected and how.
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372/* end confdefs.h. */
18373#include <ac_nonexistent.h>
18374_ACEOF
18375if ac_fn_cxx_try_cpp "$LINENO"; then :
18376 # Broken: success on invalid input.
18377continue
18378else
18379 # Passes both tests.
18380ac_preproc_ok=:
18381break
18382fi
cristyda16f162011-02-19 23:52:17 +000018383rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018384
18385done
18386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018387rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018388if $ac_preproc_ok; then :
18389 break
18390fi
18391
18392 done
18393 ac_cv_prog_CXXCPP=$CXXCPP
18394
18395fi
18396 CXXCPP=$ac_cv_prog_CXXCPP
18397else
18398 ac_cv_prog_CXXCPP=$CXXCPP
18399fi
18400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18401$as_echo "$CXXCPP" >&6; }
18402ac_preproc_ok=false
18403for ac_cxx_preproc_warn_flag in '' yes
18404do
18405 # Use a header file that comes with gcc, so configuring glibc
18406 # with a fresh cross-compiler works.
18407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 # <limits.h> exists even on freestanding compilers.
18409 # On the NeXT, cc -E runs the code through the compiler's parser,
18410 # not just through cpp. "Syntax error" is here to catch this case.
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412/* end confdefs.h. */
18413#ifdef __STDC__
18414# include <limits.h>
18415#else
18416# include <assert.h>
18417#endif
18418 Syntax error
18419_ACEOF
18420if ac_fn_cxx_try_cpp "$LINENO"; then :
18421
18422else
18423 # Broken: fails on valid input.
18424continue
18425fi
cristyda16f162011-02-19 23:52:17 +000018426rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018427
18428 # OK, works on sane cases. Now check whether nonexistent headers
18429 # can be detected and how.
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431/* end confdefs.h. */
18432#include <ac_nonexistent.h>
18433_ACEOF
18434if ac_fn_cxx_try_cpp "$LINENO"; then :
18435 # Broken: success on invalid input.
18436continue
18437else
18438 # Passes both tests.
18439ac_preproc_ok=:
18440break
18441fi
cristyda16f162011-02-19 23:52:17 +000018442rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018443
18444done
18445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018446rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018447if $ac_preproc_ok; then :
18448
18449else
18450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18452as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18453See \`config.log' for more details" "$LINENO" 5; }
18454fi
18455
18456ac_ext=c
18457ac_cpp='$CPP $CPPFLAGS'
18458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18460ac_compiler_gnu=$ac_cv_c_compiler_gnu
18461
18462else
18463 _lt_caught_CXX_error=yes
18464fi
cristy73bd4a52010-10-05 11:24:23 +000018465
18466ac_ext=cpp
18467ac_cpp='$CXXCPP $CPPFLAGS'
18468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18471
18472archive_cmds_need_lc_CXX=no
18473allow_undefined_flag_CXX=
18474always_export_symbols_CXX=no
18475archive_expsym_cmds_CXX=
18476compiler_needs_object_CXX=no
18477export_dynamic_flag_spec_CXX=
18478hardcode_direct_CXX=no
18479hardcode_direct_absolute_CXX=no
18480hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000018481hardcode_libdir_separator_CXX=
18482hardcode_minus_L_CXX=no
18483hardcode_shlibpath_var_CXX=unsupported
18484hardcode_automatic_CXX=no
18485inherit_rpath_CXX=no
18486module_cmds_CXX=
18487module_expsym_cmds_CXX=
18488link_all_deplibs_CXX=unknown
18489old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000018490reload_flag_CXX=$reload_flag
18491reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000018492no_undefined_flag_CXX=
18493whole_archive_flag_spec_CXX=
18494enable_shared_with_static_runtimes_CXX=no
18495
18496# Source file extension for C++ test sources.
18497ac_ext=cpp
18498
18499# Object file extension for compiled C++ test sources.
18500objext=o
18501objext_CXX=$objext
18502
18503# No sense in running all these tests if we already determined that
18504# the CXX compiler isn't working. Some variables (like enable_shared)
18505# are currently assumed to apply to all compilers on this platform,
18506# and will be corrupted by setting them based on a non-working compiler.
18507if test "$_lt_caught_CXX_error" != yes; then
18508 # Code to be used in simple compile tests
18509 lt_simple_compile_test_code="int some_variable = 0;"
18510
18511 # Code to be used in simple link tests
18512 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18513
18514 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18515
18516
18517
18518
18519
18520
18521# If no C compiler was specified, use CC.
18522LTCC=${LTCC-"$CC"}
18523
18524# If no C compiler flags were specified, use CFLAGS.
18525LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18526
18527# Allow CC to be a program name with arguments.
18528compiler=$CC
18529
18530
18531 # save warnings/boilerplate of simple test code
18532 ac_outfile=conftest.$ac_objext
18533echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18535_lt_compiler_boilerplate=`cat conftest.err`
18536$RM conftest*
18537
18538 ac_outfile=conftest.$ac_objext
18539echo "$lt_simple_link_test_code" >conftest.$ac_ext
18540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18541_lt_linker_boilerplate=`cat conftest.err`
18542$RM -r conftest*
18543
18544
18545 # Allow CC to be a program name with arguments.
18546 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000018547 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018548 lt_save_LD=$LD
18549 lt_save_GCC=$GCC
18550 GCC=$GXX
18551 lt_save_with_gnu_ld=$with_gnu_ld
18552 lt_save_path_LD=$lt_cv_path_LD
18553 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18554 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18555 else
18556 $as_unset lt_cv_prog_gnu_ld
18557 fi
18558 if test -n "${lt_cv_path_LDCXX+set}"; then
18559 lt_cv_path_LD=$lt_cv_path_LDCXX
18560 else
18561 $as_unset lt_cv_path_LD
18562 fi
18563 test -z "${LDCXX+set}" || LD=$LDCXX
18564 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000018565 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018566 compiler=$CC
18567 compiler_CXX=$CC
18568 for cc_temp in $compiler""; do
18569 case $cc_temp in
18570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18572 \-*) ;;
18573 *) break;;
18574 esac
18575done
cristy0c60a692010-11-04 01:09:47 +000018576cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000018577
18578
18579 if test -n "$compiler"; then
18580 # We don't want -fno-exception when compiling C++ code, so set the
18581 # no_builtin_flag separately
18582 if test "$GXX" = yes; then
18583 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18584 else
18585 lt_prog_compiler_no_builtin_flag_CXX=
18586 fi
18587
18588 if test "$GXX" = yes; then
18589 # Set up default GNU C++ configuration
18590
18591
18592
18593# Check whether --with-gnu-ld was given.
18594if test "${with_gnu_ld+set}" = set; then :
18595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18596else
18597 with_gnu_ld=no
18598fi
18599
18600ac_prog=ld
18601if test "$GCC" = yes; then
18602 # Check if gcc -print-prog-name=ld gives a path.
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18604$as_echo_n "checking for ld used by $CC... " >&6; }
18605 case $host in
18606 *-*-mingw*)
18607 # gcc leaves a trailing carriage return which upsets mingw
18608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18609 *)
18610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18611 esac
18612 case $ac_prog in
18613 # Accept absolute paths.
18614 [\\/]* | ?:[\\/]*)
18615 re_direlt='/[^/][^/]*/\.\./'
18616 # Canonicalize the pathname of ld
18617 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18618 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18619 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18620 done
18621 test -z "$LD" && LD="$ac_prog"
18622 ;;
18623 "")
18624 # If it fails, then pretend we aren't using GCC.
18625 ac_prog=ld
18626 ;;
18627 *)
18628 # If it is relative, then search for the first ld in PATH.
18629 with_gnu_ld=unknown
18630 ;;
18631 esac
18632elif test "$with_gnu_ld" = yes; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18634$as_echo_n "checking for GNU ld... " >&6; }
18635else
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18637$as_echo_n "checking for non-GNU ld... " >&6; }
18638fi
cristyda16f162011-02-19 23:52:17 +000018639if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018640 $as_echo_n "(cached) " >&6
18641else
18642 if test -z "$LD"; then
18643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18644 for ac_dir in $PATH; do
18645 IFS="$lt_save_ifs"
18646 test -z "$ac_dir" && ac_dir=.
18647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18648 lt_cv_path_LD="$ac_dir/$ac_prog"
18649 # Check to see if the program is GNU ld. I'd rather use --version,
18650 # but apparently some variants of GNU ld only accept -v.
18651 # Break only if it was the GNU/non-GNU ld that we prefer.
18652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18653 *GNU* | *'with BFD'*)
18654 test "$with_gnu_ld" != no && break
18655 ;;
18656 *)
18657 test "$with_gnu_ld" != yes && break
18658 ;;
18659 esac
18660 fi
18661 done
18662 IFS="$lt_save_ifs"
18663else
18664 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18665fi
18666fi
18667
18668LD="$lt_cv_path_LD"
18669if test -n "$LD"; then
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18671$as_echo "$LD" >&6; }
18672else
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18674$as_echo "no" >&6; }
18675fi
cristy98dddb52010-11-04 00:30:15 +000018676test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000018677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18678$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018679if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018680 $as_echo_n "(cached) " >&6
18681else
18682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18683case `$LD -v 2>&1 </dev/null` in
18684*GNU* | *'with BFD'*)
18685 lt_cv_prog_gnu_ld=yes
18686 ;;
18687*)
18688 lt_cv_prog_gnu_ld=no
18689 ;;
18690esac
18691fi
18692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18693$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18694with_gnu_ld=$lt_cv_prog_gnu_ld
18695
18696
18697
18698
18699
18700
18701
18702 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18703 # archiving commands below assume that GNU ld is being used.
18704 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000018705 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18706 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 +000018707
18708 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18710
18711 # If archive_cmds runs LD, not CC, wlarc should be empty
18712 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18713 # investigate it a little bit more. (MM)
18714 wlarc='${wl}'
18715
18716 # ancient GNU ld didn't support --whole-archive et. al.
18717 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18718 $GREP 'no-whole-archive' > /dev/null; then
18719 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18720 else
18721 whole_archive_flag_spec_CXX=
18722 fi
18723 else
18724 with_gnu_ld=no
18725 wlarc=
18726
18727 # A generic and very simple default shared library creation
18728 # command for GNU C++ for the case where it uses the native
18729 # linker, instead of GNU ld. If possible, this setting should
18730 # overridden to take advantage of the native linker features on
18731 # the platform it is being used on.
18732 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18733 fi
18734
18735 # Commands to make compiler produce verbose output that lists
18736 # what "hidden" libraries, object files and flags are used when
18737 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018739
18740 else
18741 GXX=no
18742 with_gnu_ld=no
18743 wlarc=
18744 fi
18745
18746 # PORTME: fill in a description of your system's C++ link characteristics
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18748$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18749 ld_shlibs_CXX=yes
18750 case $host_os in
18751 aix3*)
18752 # FIXME: insert proper C++ library support
18753 ld_shlibs_CXX=no
18754 ;;
18755 aix[4-9]*)
18756 if test "$host_cpu" = ia64; then
18757 # On IA64, the linker does run time linking by default, so we don't
18758 # have to do anything special.
18759 aix_use_runtimelinking=no
18760 exp_sym_flag='-Bexport'
18761 no_entry_flag=""
18762 else
18763 aix_use_runtimelinking=no
18764
18765 # Test if we are trying to use run time linking or normal
18766 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18767 # need to do runtime linking.
18768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18769 for ld_flag in $LDFLAGS; do
18770 case $ld_flag in
18771 *-brtl*)
18772 aix_use_runtimelinking=yes
18773 break
18774 ;;
18775 esac
18776 done
18777 ;;
18778 esac
18779
18780 exp_sym_flag='-bexport'
18781 no_entry_flag='-bnoentry'
18782 fi
18783
18784 # When large executables or shared objects are built, AIX ld can
18785 # have problems creating the table of contents. If linking a library
18786 # or program results in "error TOC overflow" add -mminimal-toc to
18787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18789
18790 archive_cmds_CXX=''
18791 hardcode_direct_CXX=yes
18792 hardcode_direct_absolute_CXX=yes
18793 hardcode_libdir_separator_CXX=':'
18794 link_all_deplibs_CXX=yes
18795 file_list_spec_CXX='${wl}-f,'
18796
18797 if test "$GXX" = yes; then
18798 case $host_os in aix4.[012]|aix4.[012].*)
18799 # We only want to do this on AIX 4.2 and lower, the check
18800 # below for broken collect2 doesn't work under 4.3+
18801 collect2name=`${CC} -print-prog-name=collect2`
18802 if test -f "$collect2name" &&
18803 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18804 then
18805 # We have reworked collect2
18806 :
18807 else
18808 # We have old collect2
18809 hardcode_direct_CXX=unsupported
18810 # It fails to find uninstalled libraries when the uninstalled
18811 # path is not listed in the libpath. Setting hardcode_minus_L
18812 # to unsupported forces relinking
18813 hardcode_minus_L_CXX=yes
18814 hardcode_libdir_flag_spec_CXX='-L$libdir'
18815 hardcode_libdir_separator_CXX=
18816 fi
18817 esac
18818 shared_flag='-shared'
18819 if test "$aix_use_runtimelinking" = yes; then
18820 shared_flag="$shared_flag "'${wl}-G'
18821 fi
18822 else
18823 # not using gcc
18824 if test "$host_cpu" = ia64; then
18825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18826 # chokes on -Wl,-G. The following line is correct:
18827 shared_flag='-G'
18828 else
18829 if test "$aix_use_runtimelinking" = yes; then
18830 shared_flag='${wl}-G'
18831 else
18832 shared_flag='${wl}-bM:SRE'
18833 fi
18834 fi
18835 fi
18836
18837 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18838 # It seems that -bexpall does not export symbols beginning with
18839 # underscore (_), so it is better to generate a list of symbols to
18840 # export.
18841 always_export_symbols_CXX=yes
18842 if test "$aix_use_runtimelinking" = yes; then
18843 # Warning - without using the other runtime loading flags (-brtl),
18844 # -berok will link without error, but may produce a broken library.
18845 allow_undefined_flag_CXX='-berok'
18846 # Determine the default libpath from the value encoded in an empty
18847 # executable.
cristyda16f162011-02-19 23:52:17 +000018848 if test "${lt_cv_aix_libpath+set}" = set; then
18849 aix_libpath=$lt_cv_aix_libpath
18850else
18851 if ${lt_cv_aix_libpath__CXX+:} false; then :
18852 $as_echo_n "(cached) " >&6
18853else
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018855/* end confdefs.h. */
18856
18857int
18858main ()
18859{
18860
18861 ;
18862 return 0;
18863}
18864_ACEOF
18865if ac_fn_cxx_try_link "$LINENO"; then :
18866
cristyda16f162011-02-19 23:52:17 +000018867 lt_aix_libpath_sed='
18868 /Import File Strings/,/^$/ {
18869 /^0/ {
18870 s/^0 *\([^ ]*\) *$/\1/
18871 p
18872 }
18873 }'
18874 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18875 # Check for a 64-bit object if we didn't find anything.
18876 if test -z "$lt_cv_aix_libpath__CXX"; then
18877 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18878 fi
cristy73bd4a52010-10-05 11:24:23 +000018879fi
18880rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018882 if test -z "$lt_cv_aix_libpath__CXX"; then
18883 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18884 fi
18885
18886fi
18887
18888 aix_libpath=$lt_cv_aix_libpath__CXX
18889fi
cristy73bd4a52010-10-05 11:24:23 +000018890
18891 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18892
cristy0c60a692010-11-04 01:09:47 +000018893 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 +000018894 else
18895 if test "$host_cpu" = ia64; then
18896 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18897 allow_undefined_flag_CXX="-z nodefs"
18898 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"
18899 else
18900 # Determine the default libpath from the value encoded in an
18901 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018902 if test "${lt_cv_aix_libpath+set}" = set; then
18903 aix_libpath=$lt_cv_aix_libpath
18904else
18905 if ${lt_cv_aix_libpath__CXX+:} false; then :
18906 $as_echo_n "(cached) " >&6
18907else
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018909/* end confdefs.h. */
18910
18911int
18912main ()
18913{
18914
18915 ;
18916 return 0;
18917}
18918_ACEOF
18919if ac_fn_cxx_try_link "$LINENO"; then :
18920
cristyda16f162011-02-19 23:52:17 +000018921 lt_aix_libpath_sed='
18922 /Import File Strings/,/^$/ {
18923 /^0/ {
18924 s/^0 *\([^ ]*\) *$/\1/
18925 p
18926 }
18927 }'
18928 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18929 # Check for a 64-bit object if we didn't find anything.
18930 if test -z "$lt_cv_aix_libpath__CXX"; then
18931 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18932 fi
cristy73bd4a52010-10-05 11:24:23 +000018933fi
18934rm -f core conftest.err conftest.$ac_objext \
18935 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018936 if test -z "$lt_cv_aix_libpath__CXX"; then
18937 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18938 fi
18939
18940fi
18941
18942 aix_libpath=$lt_cv_aix_libpath__CXX
18943fi
cristy73bd4a52010-10-05 11:24:23 +000018944
18945 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18946 # Warning - without using the other run time loading flags,
18947 # -berok will link without error, but may produce a broken library.
18948 no_undefined_flag_CXX=' ${wl}-bernotok'
18949 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018950 if test "$with_gnu_ld" = yes; then
18951 # We only use this code for GNU lds that support --whole-archive.
18952 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18953 else
18954 # Exported symbols can be pulled into shared objects from archives
18955 whole_archive_flag_spec_CXX='$convenience'
18956 fi
cristy73bd4a52010-10-05 11:24:23 +000018957 archive_cmds_need_lc_CXX=yes
18958 # This is similar to how AIX traditionally builds its shared
18959 # libraries.
18960 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'
18961 fi
18962 fi
18963 ;;
18964
18965 beos*)
18966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18967 allow_undefined_flag_CXX=unsupported
18968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18969 # support --undefined. This deserves some investigation. FIXME
18970 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18971 else
18972 ld_shlibs_CXX=no
18973 fi
18974 ;;
18975
18976 chorus*)
18977 case $cc_basename in
18978 *)
18979 # FIXME: insert proper C++ library support
18980 ld_shlibs_CXX=no
18981 ;;
18982 esac
18983 ;;
18984
18985 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018986 case $GXX,$cc_basename in
18987 ,cl* | no,cl*)
18988 # Native MSVC
18989 # hardcode_libdir_flag_spec is actually meaningless, as there is
18990 # no search path for DLLs.
18991 hardcode_libdir_flag_spec_CXX=' '
18992 allow_undefined_flag_CXX=unsupported
18993 always_export_symbols_CXX=yes
18994 file_list_spec_CXX='@'
18995 # Tell ltmain to make .lib files, not .a files.
18996 libext=lib
18997 # Tell ltmain to make .dll files, not .so files.
18998 shrext_cmds=".dll"
18999 # FIXME: Setting linknames here is a bad hack.
19000 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
19001 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19002 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
19003 else
19004 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
19005 fi~
19006 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19007 linknames='
19008 # The linker will not automatically build a static lib if we build a DLL.
19009 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19010 enable_shared_with_static_runtimes_CXX=yes
19011 # Don't use ranlib
19012 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19013 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19014 lt_tool_outputfile="@TOOL_OUTPUT@"~
19015 case $lt_outputfile in
19016 *.exe|*.EXE) ;;
19017 *)
19018 lt_outputfile="$lt_outputfile.exe"
19019 lt_tool_outputfile="$lt_tool_outputfile.exe"
19020 ;;
19021 esac~
19022 func_to_tool_file "$lt_outputfile"~
19023 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
19024 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19025 $RM "$lt_outputfile.manifest";
19026 fi'
19027 ;;
19028 *)
19029 # g++
19030 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19031 # as there is no search path for DLLs.
19032 hardcode_libdir_flag_spec_CXX='-L$libdir'
19033 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19034 allow_undefined_flag_CXX=unsupported
19035 always_export_symbols_CXX=no
19036 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019037
cristyda16f162011-02-19 23:52:17 +000019038 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19039 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'
19040 # If the export-symbols file already is a .def file (1st line
19041 # is EXPORTS), use it as is; otherwise, prepend...
19042 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19043 cp $export_symbols $output_objdir/$soname.def;
19044 else
19045 echo EXPORTS > $output_objdir/$soname.def;
19046 cat $export_symbols >> $output_objdir/$soname.def;
19047 fi~
19048 $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'
19049 else
19050 ld_shlibs_CXX=no
19051 fi
19052 ;;
19053 esac
19054 ;;
cristy73bd4a52010-10-05 11:24:23 +000019055 darwin* | rhapsody*)
19056
19057
19058 archive_cmds_need_lc_CXX=no
19059 hardcode_direct_CXX=no
19060 hardcode_automatic_CXX=yes
19061 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000019062 if test "$lt_cv_ld_force_load" = "yes"; then
19063 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 +000019064
cristy0c60a692010-11-04 01:09:47 +000019065 else
19066 whole_archive_flag_spec_CXX=''
19067 fi
cristy73bd4a52010-10-05 11:24:23 +000019068 link_all_deplibs_CXX=yes
19069 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19070 case $cc_basename in
19071 ifort*) _lt_dar_can_shared=yes ;;
19072 *) _lt_dar_can_shared=$GCC ;;
19073 esac
19074 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000019075 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019076 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}"
19077 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19078 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}"
19079 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}"
19080 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19081 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}"
19082 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}"
19083 fi
19084
19085 else
19086 ld_shlibs_CXX=no
19087 fi
19088
19089 ;;
19090
19091 dgux*)
19092 case $cc_basename in
19093 ec++*)
19094 # FIXME: insert proper C++ library support
19095 ld_shlibs_CXX=no
19096 ;;
19097 ghcx*)
19098 # Green Hills C++ Compiler
19099 # FIXME: insert proper C++ library support
19100 ld_shlibs_CXX=no
19101 ;;
19102 *)
19103 # FIXME: insert proper C++ library support
19104 ld_shlibs_CXX=no
19105 ;;
19106 esac
19107 ;;
19108
cristy99bd5232011-12-07 14:38:20 +000019109 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019110 # C++ shared libraries reported to be fairly broken before
19111 # switch to ELF
19112 ld_shlibs_CXX=no
19113 ;;
19114
19115 freebsd-elf*)
19116 archive_cmds_need_lc_CXX=no
19117 ;;
19118
19119 freebsd* | dragonfly*)
19120 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19121 # conventions
19122 ld_shlibs_CXX=yes
19123 ;;
19124
19125 gnu*)
19126 ;;
19127
cristy0c60a692010-11-04 01:09:47 +000019128 haiku*)
19129 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130 link_all_deplibs_CXX=yes
19131 ;;
19132
cristy73bd4a52010-10-05 11:24:23 +000019133 hpux9*)
19134 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19135 hardcode_libdir_separator_CXX=:
19136 export_dynamic_flag_spec_CXX='${wl}-E'
19137 hardcode_direct_CXX=yes
19138 hardcode_minus_L_CXX=yes # Not in the search PATH,
19139 # but as the default
19140 # location of the library.
19141
19142 case $cc_basename in
19143 CC*)
19144 # FIXME: insert proper C++ library support
19145 ld_shlibs_CXX=no
19146 ;;
19147 aCC*)
19148 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'
19149 # Commands to make compiler produce verbose output that lists
19150 # what "hidden" libraries, object files and flags are used when
19151 # linking a shared library.
19152 #
19153 # There doesn't appear to be a way to prevent this compiler from
19154 # explicitly linking system object files so we need to strip them
19155 # from the output so that they don't get included in the library
19156 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019157 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 +000019158 ;;
19159 *)
19160 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000019161 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 +000019162 else
19163 # FIXME: insert proper C++ library support
19164 ld_shlibs_CXX=no
19165 fi
19166 ;;
19167 esac
19168 ;;
19169
19170 hpux10*|hpux11*)
19171 if test $with_gnu_ld = no; then
19172 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19173 hardcode_libdir_separator_CXX=:
19174
19175 case $host_cpu in
19176 hppa*64*|ia64*)
19177 ;;
19178 *)
19179 export_dynamic_flag_spec_CXX='${wl}-E'
19180 ;;
19181 esac
19182 fi
19183 case $host_cpu in
19184 hppa*64*|ia64*)
19185 hardcode_direct_CXX=no
19186 hardcode_shlibpath_var_CXX=no
19187 ;;
19188 *)
19189 hardcode_direct_CXX=yes
19190 hardcode_direct_absolute_CXX=yes
19191 hardcode_minus_L_CXX=yes # Not in the search PATH,
19192 # but as the default
19193 # location of the library.
19194 ;;
19195 esac
19196
19197 case $cc_basename in
19198 CC*)
19199 # FIXME: insert proper C++ library support
19200 ld_shlibs_CXX=no
19201 ;;
19202 aCC*)
19203 case $host_cpu in
19204 hppa*64*)
19205 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19206 ;;
19207 ia64*)
19208 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19209 ;;
19210 *)
19211 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19212 ;;
19213 esac
19214 # Commands to make compiler produce verbose output that lists
19215 # what "hidden" libraries, object files and flags are used when
19216 # linking a shared library.
19217 #
19218 # There doesn't appear to be a way to prevent this compiler from
19219 # explicitly linking system object files so we need to strip them
19220 # from the output so that they don't get included in the library
19221 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019222 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 +000019223 ;;
19224 *)
19225 if test "$GXX" = yes; then
19226 if test $with_gnu_ld = no; then
19227 case $host_cpu in
19228 hppa*64*)
19229 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 ;;
19231 ia64*)
cristyda16f162011-02-19 23:52:17 +000019232 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 +000019233 ;;
19234 *)
cristyda16f162011-02-19 23:52:17 +000019235 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 +000019236 ;;
19237 esac
19238 fi
19239 else
19240 # FIXME: insert proper C++ library support
19241 ld_shlibs_CXX=no
19242 fi
19243 ;;
19244 esac
19245 ;;
19246
19247 interix[3-9]*)
19248 hardcode_direct_CXX=no
19249 hardcode_shlibpath_var_CXX=no
19250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19251 export_dynamic_flag_spec_CXX='${wl}-E'
19252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19253 # Instead, shared libraries are loaded at an image base (0x10000000 by
19254 # default) and relocated if they conflict, which is a slow very memory
19255 # consuming and fragmenting process. To avoid this, we pick a random,
19256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19258 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'
19259 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'
19260 ;;
19261 irix5* | irix6*)
19262 case $cc_basename in
19263 CC*)
19264 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000019265 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 +000019266
19267 # Archives containing C++ object files must be created using
19268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19269 # necessary to make sure instantiated templates are included
19270 # in the archive.
19271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19272 ;;
19273 *)
19274 if test "$GXX" = yes; then
19275 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000019276 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 +000019277 else
cristyda16f162011-02-19 23:52:17 +000019278 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 +000019279 fi
19280 fi
19281 link_all_deplibs_CXX=yes
19282 ;;
19283 esac
19284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19285 hardcode_libdir_separator_CXX=:
19286 inherit_rpath_CXX=yes
19287 ;;
19288
cristy0c60a692010-11-04 01:09:47 +000019289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019290 case $cc_basename in
19291 KCC*)
19292 # Kuck and Associates, Inc. (KAI) C++ Compiler
19293
19294 # KCC will only create a shared library if the output file
19295 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19296 # to its proper name (with version) after linking.
19297 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'
19298 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'
19299 # Commands to make compiler produce verbose output that lists
19300 # what "hidden" libraries, object files and flags are used when
19301 # linking a shared library.
19302 #
19303 # There doesn't appear to be a way to prevent this compiler from
19304 # explicitly linking system object files so we need to strip them
19305 # from the output so that they don't get included in the library
19306 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019307 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 +000019308
19309 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19311
19312 # Archives containing C++ object files must be created using
19313 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19314 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19315 ;;
19316 icpc* | ecpc* )
19317 # Intel C++
19318 with_gnu_ld=yes
19319 # version 8.0 and above of icpc choke on multiply defined symbols
19320 # if we add $predep_objects and $postdep_objects, however 7.1 and
19321 # earlier do not add the objects themselves.
19322 case `$CC -V 2>&1` in
19323 *"Version 7."*)
19324 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 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'
19326 ;;
19327 *) # Version 8.0 or newer
19328 tmp_idyn=
19329 case $host_cpu in
19330 ia64*) tmp_idyn=' -i_dynamic';;
19331 esac
19332 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19333 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'
19334 ;;
19335 esac
19336 archive_cmds_need_lc_CXX=no
19337 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19339 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19340 ;;
19341 pgCC* | pgcpp*)
19342 # Portland Group C++ compiler
19343 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019344 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019345 prelink_cmds_CXX='tpldir=Template.dir~
19346 rm -rf $tpldir~
19347 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019348 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019349 old_archive_cmds_CXX='tpldir=Template.dir~
19350 rm -rf $tpldir~
19351 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000019352 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000019353 $RANLIB $oldlib'
19354 archive_cmds_CXX='tpldir=Template.dir~
19355 rm -rf $tpldir~
19356 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019357 $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 +000019358 archive_expsym_cmds_CXX='tpldir=Template.dir~
19359 rm -rf $tpldir~
19360 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000019361 $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 +000019362 ;;
cristy0c60a692010-11-04 01:09:47 +000019363 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000019364 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19365 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'
19366 ;;
19367 esac
19368
19369 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19370 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000019371 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 +000019372 ;;
19373 cxx*)
19374 # Compaq C++
19375 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19376 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'
19377
19378 runpath_var=LD_RUN_PATH
19379 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19380 hardcode_libdir_separator_CXX=:
19381
19382 # Commands to make compiler produce verbose output that lists
19383 # what "hidden" libraries, object files and flags are used when
19384 # linking a shared library.
19385 #
19386 # There doesn't appear to be a way to prevent this compiler from
19387 # explicitly linking system object files so we need to strip them
19388 # from the output so that they don't get included in the library
19389 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019390 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 +000019391 ;;
cristy0c60a692010-11-04 01:09:47 +000019392 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019393 # IBM XL 8.0 on PPC, with GNU ld
19394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19395 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19396 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397 if test "x$supports_anon_versioning" = xyes; then
19398 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19400 echo "local: *; };" >> $output_objdir/$libname.ver~
19401 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19402 fi
19403 ;;
19404 *)
19405 case `$CC -V 2>&1 | sed 5q` in
19406 *Sun\ C*)
19407 # Sun C++ 5.9
19408 no_undefined_flag_CXX=' -zdefs'
19409 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19410 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'
19411 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000019412 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 +000019413 compiler_needs_object_CXX=yes
19414
19415 # Not sure whether something based on
19416 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19417 # would be better.
cristy0c60a692010-11-04 01:09:47 +000019418 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019419
19420 # Archives containing C++ object files must be created using
19421 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19422 # necessary to make sure instantiated templates are included
19423 # in the archive.
19424 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19425 ;;
19426 esac
19427 ;;
19428 esac
19429 ;;
19430
19431 lynxos*)
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19434 ;;
19435
19436 m88k*)
19437 # FIXME: insert proper C++ library support
19438 ld_shlibs_CXX=no
19439 ;;
19440
19441 mvs*)
19442 case $cc_basename in
19443 cxx*)
19444 # FIXME: insert proper C++ library support
19445 ld_shlibs_CXX=no
19446 ;;
19447 *)
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19450 ;;
19451 esac
19452 ;;
19453
19454 netbsd*)
19455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19456 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19457 wlarc=
19458 hardcode_libdir_flag_spec_CXX='-R$libdir'
19459 hardcode_direct_CXX=yes
19460 hardcode_shlibpath_var_CXX=no
19461 fi
19462 # Workaround some broken pre-1.5 toolchains
19463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19464 ;;
19465
19466 *nto* | *qnx*)
19467 ld_shlibs_CXX=yes
19468 ;;
19469
19470 openbsd2*)
19471 # C++ shared libraries are fairly broken
19472 ld_shlibs_CXX=no
19473 ;;
19474
19475 openbsd*)
19476 if test -f /usr/libexec/ld.so; then
19477 hardcode_direct_CXX=yes
19478 hardcode_shlibpath_var_CXX=no
19479 hardcode_direct_absolute_CXX=yes
19480 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19482 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19483 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19484 export_dynamic_flag_spec_CXX='${wl}-E'
19485 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19486 fi
cristy0c60a692010-11-04 01:09:47 +000019487 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000019488 else
19489 ld_shlibs_CXX=no
19490 fi
19491 ;;
19492
19493 osf3* | osf4* | osf5*)
19494 case $cc_basename in
19495 KCC*)
19496 # Kuck and Associates, Inc. (KAI) C++ Compiler
19497
19498 # KCC will only create a shared library if the output file
19499 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19500 # to its proper name (with version) after linking.
19501 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'
19502
19503 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19504 hardcode_libdir_separator_CXX=:
19505
19506 # Archives containing C++ object files must be created using
19507 # the KAI C++ compiler.
19508 case $host in
19509 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19510 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19511 esac
19512 ;;
19513 RCC*)
19514 # Rational C++ 2.4.1
19515 # FIXME: insert proper C++ library support
19516 ld_shlibs_CXX=no
19517 ;;
19518 cxx*)
19519 case $host in
19520 osf3*)
19521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000019522 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 +000019523 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19524 ;;
19525 *)
19526 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000019527 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 +000019528 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19529 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000019530 $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 +000019531 $RM $lib.exp'
19532 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19533 ;;
19534 esac
19535
19536 hardcode_libdir_separator_CXX=:
19537
19538 # Commands to make compiler produce verbose output that lists
19539 # what "hidden" libraries, object files and flags are used when
19540 # linking a shared library.
19541 #
19542 # There doesn't appear to be a way to prevent this compiler from
19543 # explicitly linking system object files so we need to strip them
19544 # from the output so that they don't get included in the library
19545 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000019546 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 +000019547 ;;
19548 *)
19549 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19550 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19551 case $host in
19552 osf3*)
cristy0c60a692010-11-04 01:09:47 +000019553 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 +000019554 ;;
19555 *)
cristyda16f162011-02-19 23:52:17 +000019556 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 +000019557 ;;
19558 esac
19559
19560 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19561 hardcode_libdir_separator_CXX=:
19562
19563 # Commands to make compiler produce verbose output that lists
19564 # what "hidden" libraries, object files and flags are used when
19565 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019566 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019567
19568 else
19569 # FIXME: insert proper C++ library support
19570 ld_shlibs_CXX=no
19571 fi
19572 ;;
19573 esac
19574 ;;
19575
19576 psos*)
19577 # FIXME: insert proper C++ library support
19578 ld_shlibs_CXX=no
19579 ;;
19580
19581 sunos4*)
19582 case $cc_basename in
19583 CC*)
19584 # Sun C++ 4.x
19585 # FIXME: insert proper C++ library support
19586 ld_shlibs_CXX=no
19587 ;;
19588 lcc*)
19589 # Lucid
19590 # FIXME: insert proper C++ library support
19591 ld_shlibs_CXX=no
19592 ;;
19593 *)
19594 # FIXME: insert proper C++ library support
19595 ld_shlibs_CXX=no
19596 ;;
19597 esac
19598 ;;
19599
19600 solaris*)
19601 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019602 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019603 # Sun C++ 4.2, 5.x and Centerline C++
19604 archive_cmds_need_lc_CXX=yes
19605 no_undefined_flag_CXX=' -zdefs'
19606 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19607 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19608 $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'
19609
19610 hardcode_libdir_flag_spec_CXX='-R$libdir'
19611 hardcode_shlibpath_var_CXX=no
19612 case $host_os in
19613 solaris2.[0-5] | solaris2.[0-5].*) ;;
19614 *)
19615 # The compiler driver will combine and reorder linker options,
19616 # but understands `-z linker_flag'.
19617 # Supported since Solaris 2.6 (maybe 2.5.1?)
19618 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19619 ;;
19620 esac
19621 link_all_deplibs_CXX=yes
19622
cristy0c60a692010-11-04 01:09:47 +000019623 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000019624
19625 # Archives containing C++ object files must be created using
19626 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19627 # necessary to make sure instantiated templates are included
19628 # in the archive.
19629 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19630 ;;
19631 gcx*)
19632 # Green Hills C++ Compiler
19633 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19634
19635 # The C++ compiler must be used to create the archive.
19636 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19637 ;;
19638 *)
19639 # GNU C++ compiler with Solaris linker
19640 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19641 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19642 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000019643 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 +000019644 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 +000019645 $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 +000019646
19647 # Commands to make compiler produce verbose output that lists
19648 # what "hidden" libraries, object files and flags are used when
19649 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019651 else
19652 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19653 # platform.
19654 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19655 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19656 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19657
19658 # Commands to make compiler produce verbose output that lists
19659 # what "hidden" libraries, object files and flags are used when
19660 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019661 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019662 fi
19663
19664 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19665 case $host_os in
19666 solaris2.[0-5] | solaris2.[0-5].*) ;;
19667 *)
19668 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19669 ;;
19670 esac
19671 fi
19672 ;;
19673 esac
19674 ;;
19675
19676 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19677 no_undefined_flag_CXX='${wl}-z,text'
19678 archive_cmds_need_lc_CXX=no
19679 hardcode_shlibpath_var_CXX=no
19680 runpath_var='LD_RUN_PATH'
19681
19682 case $cc_basename in
19683 CC*)
19684 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 ;;
19687 *)
19688 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19689 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 ;;
19691 esac
19692 ;;
19693
19694 sysv5* | sco3.2v5* | sco5v6*)
19695 # Note: We can NOT use -z defs as we might desire, because we do not
19696 # link with -lc, and that would cause any symbols used from libc to
19697 # always be unresolved, which means just about no library would
19698 # ever link correctly. If we're not using GNU ld we use -z text
19699 # though, which does catch some bad symbols but isn't as heavy-handed
19700 # as -z defs.
19701 no_undefined_flag_CXX='${wl}-z,text'
19702 allow_undefined_flag_CXX='${wl}-z,nodefs'
19703 archive_cmds_need_lc_CXX=no
19704 hardcode_shlibpath_var_CXX=no
19705 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19706 hardcode_libdir_separator_CXX=':'
19707 link_all_deplibs_CXX=yes
19708 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19709 runpath_var='LD_RUN_PATH'
19710
19711 case $cc_basename in
19712 CC*)
19713 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19714 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 +000019715 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19716 '"$old_archive_cmds_CXX"
19717 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19718 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000019719 ;;
19720 *)
19721 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19722 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19723 ;;
19724 esac
19725 ;;
19726
19727 tandem*)
19728 case $cc_basename in
19729 NCC*)
19730 # NonStop-UX NCC 3.20
19731 # FIXME: insert proper C++ library support
19732 ld_shlibs_CXX=no
19733 ;;
19734 *)
19735 # FIXME: insert proper C++ library support
19736 ld_shlibs_CXX=no
19737 ;;
19738 esac
19739 ;;
19740
19741 vxworks*)
19742 # FIXME: insert proper C++ library support
19743 ld_shlibs_CXX=no
19744 ;;
19745
19746 *)
19747 # FIXME: insert proper C++ library support
19748 ld_shlibs_CXX=no
19749 ;;
19750 esac
19751
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19753$as_echo "$ld_shlibs_CXX" >&6; }
19754 test "$ld_shlibs_CXX" = no && can_build_shared=no
19755
19756 GCC_CXX="$GXX"
19757 LD_CXX="$LD"
19758
19759 ## CAVEAT EMPTOR:
19760 ## There is no encapsulation within the following macros, do not change
19761 ## the running order or otherwise move them around unless you know exactly
19762 ## what you are doing...
19763 # Dependencies to place before and after the object being linked:
19764predep_objects_CXX=
19765postdep_objects_CXX=
19766predeps_CXX=
19767postdeps_CXX=
19768compiler_lib_search_path_CXX=
19769
19770cat > conftest.$ac_ext <<_LT_EOF
19771class Foo
19772{
19773public:
19774 Foo (void) { a = 0; }
19775private:
19776 int a;
19777};
19778_LT_EOF
19779
cristyda16f162011-02-19 23:52:17 +000019780
19781_lt_libdeps_save_CFLAGS=$CFLAGS
19782case "$CC $CFLAGS " in #(
19783*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19784*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000019785*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000019786esac
19787
cristy73bd4a52010-10-05 11:24:23 +000019788if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19789 (eval $ac_compile) 2>&5
19790 ac_status=$?
19791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19792 test $ac_status = 0; }; then
19793 # Parse the compiler output and extract the necessary
19794 # objects, libraries and library flags.
19795
19796 # Sentinel used to keep track of whether or not we are before
19797 # the conftest object file.
19798 pre_test_object_deps_done=no
19799
19800 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000019801 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000019802
19803 -L* | -R* | -l*)
19804 # Some compilers place space between "-{L,R}" and the path.
19805 # Remove the space.
19806 if test $p = "-L" ||
19807 test $p = "-R"; then
19808 prev=$p
19809 continue
cristy73bd4a52010-10-05 11:24:23 +000019810 fi
19811
cristyda16f162011-02-19 23:52:17 +000019812 # Expand the sysroot to ease extracting the directories later.
19813 if test -z "$prev"; then
19814 case $p in
19815 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19816 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19817 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19818 esac
19819 fi
19820 case $p in
19821 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19822 esac
cristy73bd4a52010-10-05 11:24:23 +000019823 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000019824 case ${prev} in
19825 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000019826 # Internal compiler library paths should come after those
19827 # provided the user. The postdeps already come after the
19828 # user supplied libs so there is no need to process them.
19829 if test -z "$compiler_lib_search_path_CXX"; then
19830 compiler_lib_search_path_CXX="${prev}${p}"
19831 else
19832 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19833 fi
19834 ;;
19835 # The "-l" case would never come before the object being
19836 # linked, so don't bother handling this case.
19837 esac
19838 else
19839 if test -z "$postdeps_CXX"; then
19840 postdeps_CXX="${prev}${p}"
19841 else
19842 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19843 fi
19844 fi
cristyda16f162011-02-19 23:52:17 +000019845 prev=
cristy73bd4a52010-10-05 11:24:23 +000019846 ;;
19847
cristyda16f162011-02-19 23:52:17 +000019848 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000019849 *.$objext)
19850 # This assumes that the test object file only shows up
19851 # once in the compiler output.
19852 if test "$p" = "conftest.$objext"; then
19853 pre_test_object_deps_done=yes
19854 continue
19855 fi
19856
19857 if test "$pre_test_object_deps_done" = no; then
19858 if test -z "$predep_objects_CXX"; then
19859 predep_objects_CXX="$p"
19860 else
19861 predep_objects_CXX="$predep_objects_CXX $p"
19862 fi
19863 else
19864 if test -z "$postdep_objects_CXX"; then
19865 postdep_objects_CXX="$p"
19866 else
19867 postdep_objects_CXX="$postdep_objects_CXX $p"
19868 fi
19869 fi
19870 ;;
19871
19872 *) ;; # Ignore the rest.
19873
19874 esac
19875 done
19876
19877 # Clean up.
19878 rm -f a.out a.exe
19879else
19880 echo "libtool.m4: error: problem compiling CXX test program"
19881fi
19882
19883$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019884CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019885
19886# PORTME: override above test on systems where it is broken
19887case $host_os in
19888interix[3-9]*)
19889 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19890 # hack all around it, let's just trust "g++" to DTRT.
19891 predep_objects_CXX=
19892 postdep_objects_CXX=
19893 postdeps_CXX=
19894 ;;
19895
19896linux*)
19897 case `$CC -V 2>&1 | sed 5q` in
19898 *Sun\ C*)
19899 # Sun C++ 5.9
19900
19901 # The more standards-conforming stlport4 library is
19902 # incompatible with the Cstd library. Avoid specifying
19903 # it if it's in CXXFLAGS. Ignore libCrun as
19904 # -library=stlport4 depends on it.
19905 case " $CXX $CXXFLAGS " in
19906 *" -library=stlport4 "*)
19907 solaris_use_stlport4=yes
19908 ;;
19909 esac
19910
19911 if test "$solaris_use_stlport4" != yes; then
19912 postdeps_CXX='-library=Cstd -library=Crun'
19913 fi
19914 ;;
19915 esac
19916 ;;
19917
19918solaris*)
19919 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019920 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019921 # The more standards-conforming stlport4 library is
19922 # incompatible with the Cstd library. Avoid specifying
19923 # it if it's in CXXFLAGS. Ignore libCrun as
19924 # -library=stlport4 depends on it.
19925 case " $CXX $CXXFLAGS " in
19926 *" -library=stlport4 "*)
19927 solaris_use_stlport4=yes
19928 ;;
19929 esac
19930
19931 # Adding this requires a known-good setup of shared libraries for
19932 # Sun compiler versions before 5.6, else PIC objects from an old
19933 # archive will be linked into the output, leading to subtle bugs.
19934 if test "$solaris_use_stlport4" != yes; then
19935 postdeps_CXX='-library=Cstd -library=Crun'
19936 fi
19937 ;;
19938 esac
19939 ;;
19940esac
19941
19942
19943case " $postdeps_CXX " in
19944*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19945esac
19946 compiler_lib_search_dirs_CXX=
19947if test -n "${compiler_lib_search_path_CXX}"; then
19948 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19949fi
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981 lt_prog_compiler_wl_CXX=
19982lt_prog_compiler_pic_CXX=
19983lt_prog_compiler_static_CXX=
19984
cristy73bd4a52010-10-05 11:24:23 +000019985
19986 # C++ specific cases for pic, static, wl, etc.
19987 if test "$GXX" = yes; then
19988 lt_prog_compiler_wl_CXX='-Wl,'
19989 lt_prog_compiler_static_CXX='-static'
19990
19991 case $host_os in
19992 aix*)
19993 # All AIX code is PIC.
19994 if test "$host_cpu" = ia64; then
19995 # AIX 5 now supports IA64 processor
19996 lt_prog_compiler_static_CXX='-Bstatic'
19997 fi
19998 ;;
19999
20000 amigaos*)
20001 case $host_cpu in
20002 powerpc)
20003 # see comment about AmigaOS4 .so support
20004 lt_prog_compiler_pic_CXX='-fPIC'
20005 ;;
20006 m68k)
20007 # FIXME: we need at least 68020 code to build shared libraries, but
20008 # adding the `-m68020' flag to GCC prevents building anything better,
20009 # like `-m68040'.
20010 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20011 ;;
20012 esac
20013 ;;
20014
20015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20016 # PIC is the default for these OSes.
20017 ;;
20018 mingw* | cygwin* | os2* | pw32* | cegcc*)
20019 # This hack is so that the source file can tell whether it is being
20020 # built for inclusion in a dll (and should export symbols for example).
20021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20022 # (--disable-auto-import) libraries
20023 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20024 ;;
20025 darwin* | rhapsody*)
20026 # PIC is the default on this platform
20027 # Common symbols not allowed in MH_DYLIB files
20028 lt_prog_compiler_pic_CXX='-fno-common'
20029 ;;
20030 *djgpp*)
20031 # DJGPP does not support shared libraries at all
20032 lt_prog_compiler_pic_CXX=
20033 ;;
cristy0c60a692010-11-04 01:09:47 +000020034 haiku*)
20035 # PIC is the default for Haiku.
20036 # The "-static" flag exists, but is broken.
20037 lt_prog_compiler_static_CXX=
20038 ;;
cristy73bd4a52010-10-05 11:24:23 +000020039 interix[3-9]*)
20040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20041 # Instead, we relocate shared libraries at runtime.
20042 ;;
20043 sysv4*MP*)
20044 if test -d /usr/nec; then
20045 lt_prog_compiler_pic_CXX=-Kconform_pic
20046 fi
20047 ;;
20048 hpux*)
20049 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20050 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20051 # sets the default TLS model and affects inlining.
20052 case $host_cpu in
20053 hppa*64*)
20054 ;;
20055 *)
20056 lt_prog_compiler_pic_CXX='-fPIC'
20057 ;;
20058 esac
20059 ;;
20060 *qnx* | *nto*)
20061 # QNX uses GNU C++, but need to define -shared option too, otherwise
20062 # it will coredump.
20063 lt_prog_compiler_pic_CXX='-fPIC -shared'
20064 ;;
20065 *)
20066 lt_prog_compiler_pic_CXX='-fPIC'
20067 ;;
20068 esac
20069 else
20070 case $host_os in
20071 aix[4-9]*)
20072 # All AIX code is PIC.
20073 if test "$host_cpu" = ia64; then
20074 # AIX 5 now supports IA64 processor
20075 lt_prog_compiler_static_CXX='-Bstatic'
20076 else
20077 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20078 fi
20079 ;;
20080 chorus*)
20081 case $cc_basename in
20082 cxch68*)
20083 # Green Hills C++ Compiler
20084 # _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"
20085 ;;
20086 esac
20087 ;;
cristyda16f162011-02-19 23:52:17 +000020088 mingw* | cygwin* | os2* | pw32* | cegcc*)
20089 # This hack is so that the source file can tell whether it is being
20090 # built for inclusion in a dll (and should export symbols for example).
20091 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20092 ;;
cristy73bd4a52010-10-05 11:24:23 +000020093 dgux*)
20094 case $cc_basename in
20095 ec++*)
20096 lt_prog_compiler_pic_CXX='-KPIC'
20097 ;;
20098 ghcx*)
20099 # Green Hills C++ Compiler
20100 lt_prog_compiler_pic_CXX='-pic'
20101 ;;
20102 *)
20103 ;;
20104 esac
20105 ;;
20106 freebsd* | dragonfly*)
20107 # FreeBSD uses GNU C++
20108 ;;
20109 hpux9* | hpux10* | hpux11*)
20110 case $cc_basename in
20111 CC*)
20112 lt_prog_compiler_wl_CXX='-Wl,'
20113 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20114 if test "$host_cpu" != ia64; then
20115 lt_prog_compiler_pic_CXX='+Z'
20116 fi
20117 ;;
20118 aCC*)
20119 lt_prog_compiler_wl_CXX='-Wl,'
20120 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20121 case $host_cpu in
20122 hppa*64*|ia64*)
20123 # +Z the default
20124 ;;
20125 *)
20126 lt_prog_compiler_pic_CXX='+Z'
20127 ;;
20128 esac
20129 ;;
20130 *)
20131 ;;
20132 esac
20133 ;;
20134 interix*)
20135 # This is c89, which is MS Visual C++ (no shared libs)
20136 # Anyone wants to do a port?
20137 ;;
20138 irix5* | irix6* | nonstopux*)
20139 case $cc_basename in
20140 CC*)
20141 lt_prog_compiler_wl_CXX='-Wl,'
20142 lt_prog_compiler_static_CXX='-non_shared'
20143 # CC pic flag -KPIC is the default.
20144 ;;
20145 *)
20146 ;;
20147 esac
20148 ;;
cristy0c60a692010-11-04 01:09:47 +000020149 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020150 case $cc_basename in
20151 KCC*)
20152 # KAI C++ Compiler
20153 lt_prog_compiler_wl_CXX='--backend -Wl,'
20154 lt_prog_compiler_pic_CXX='-fPIC'
20155 ;;
20156 ecpc* )
20157 # old Intel C++ for x86_64 which still supported -KPIC.
20158 lt_prog_compiler_wl_CXX='-Wl,'
20159 lt_prog_compiler_pic_CXX='-KPIC'
20160 lt_prog_compiler_static_CXX='-static'
20161 ;;
20162 icpc* )
20163 # Intel C++, used to be incompatible with GCC.
20164 # ICC 10 doesn't accept -KPIC any more.
20165 lt_prog_compiler_wl_CXX='-Wl,'
20166 lt_prog_compiler_pic_CXX='-fPIC'
20167 lt_prog_compiler_static_CXX='-static'
20168 ;;
20169 pgCC* | pgcpp*)
20170 # Portland Group C++ compiler
20171 lt_prog_compiler_wl_CXX='-Wl,'
20172 lt_prog_compiler_pic_CXX='-fpic'
20173 lt_prog_compiler_static_CXX='-Bstatic'
20174 ;;
20175 cxx*)
20176 # Compaq C++
20177 # Make sure the PIC flag is empty. It appears that all Alpha
20178 # Linux and Compaq Tru64 Unix objects are PIC.
20179 lt_prog_compiler_pic_CXX=
20180 lt_prog_compiler_static_CXX='-non_shared'
20181 ;;
cristy0c60a692010-11-04 01:09:47 +000020182 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20183 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020184 lt_prog_compiler_wl_CXX='-Wl,'
20185 lt_prog_compiler_pic_CXX='-qpic'
20186 lt_prog_compiler_static_CXX='-qstaticlink'
20187 ;;
20188 *)
20189 case `$CC -V 2>&1 | sed 5q` in
20190 *Sun\ C*)
20191 # Sun C++ 5.9
20192 lt_prog_compiler_pic_CXX='-KPIC'
20193 lt_prog_compiler_static_CXX='-Bstatic'
20194 lt_prog_compiler_wl_CXX='-Qoption ld '
20195 ;;
20196 esac
20197 ;;
20198 esac
20199 ;;
20200 lynxos*)
20201 ;;
20202 m88k*)
20203 ;;
20204 mvs*)
20205 case $cc_basename in
20206 cxx*)
20207 lt_prog_compiler_pic_CXX='-W c,exportall'
20208 ;;
20209 *)
20210 ;;
20211 esac
20212 ;;
20213 netbsd*)
20214 ;;
20215 *qnx* | *nto*)
20216 # QNX uses GNU C++, but need to define -shared option too, otherwise
20217 # it will coredump.
20218 lt_prog_compiler_pic_CXX='-fPIC -shared'
20219 ;;
20220 osf3* | osf4* | osf5*)
20221 case $cc_basename in
20222 KCC*)
20223 lt_prog_compiler_wl_CXX='--backend -Wl,'
20224 ;;
20225 RCC*)
20226 # Rational C++ 2.4.1
20227 lt_prog_compiler_pic_CXX='-pic'
20228 ;;
20229 cxx*)
20230 # Digital/Compaq C++
20231 lt_prog_compiler_wl_CXX='-Wl,'
20232 # Make sure the PIC flag is empty. It appears that all Alpha
20233 # Linux and Compaq Tru64 Unix objects are PIC.
20234 lt_prog_compiler_pic_CXX=
20235 lt_prog_compiler_static_CXX='-non_shared'
20236 ;;
20237 *)
20238 ;;
20239 esac
20240 ;;
20241 psos*)
20242 ;;
20243 solaris*)
20244 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020245 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020246 # Sun C++ 4.2, 5.x and Centerline C++
20247 lt_prog_compiler_pic_CXX='-KPIC'
20248 lt_prog_compiler_static_CXX='-Bstatic'
20249 lt_prog_compiler_wl_CXX='-Qoption ld '
20250 ;;
20251 gcx*)
20252 # Green Hills C++ Compiler
20253 lt_prog_compiler_pic_CXX='-PIC'
20254 ;;
20255 *)
20256 ;;
20257 esac
20258 ;;
20259 sunos4*)
20260 case $cc_basename in
20261 CC*)
20262 # Sun C++ 4.x
20263 lt_prog_compiler_pic_CXX='-pic'
20264 lt_prog_compiler_static_CXX='-Bstatic'
20265 ;;
20266 lcc*)
20267 # Lucid
20268 lt_prog_compiler_pic_CXX='-pic'
20269 ;;
20270 *)
20271 ;;
20272 esac
20273 ;;
20274 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20275 case $cc_basename in
20276 CC*)
20277 lt_prog_compiler_wl_CXX='-Wl,'
20278 lt_prog_compiler_pic_CXX='-KPIC'
20279 lt_prog_compiler_static_CXX='-Bstatic'
20280 ;;
20281 esac
20282 ;;
20283 tandem*)
20284 case $cc_basename in
20285 NCC*)
20286 # NonStop-UX NCC 3.20
20287 lt_prog_compiler_pic_CXX='-KPIC'
20288 ;;
20289 *)
20290 ;;
20291 esac
20292 ;;
20293 vxworks*)
20294 ;;
20295 *)
20296 lt_prog_compiler_can_build_shared_CXX=no
20297 ;;
20298 esac
20299 fi
20300
20301case $host_os in
20302 # For platforms which do not support PIC, -DPIC is meaningless:
20303 *djgpp*)
20304 lt_prog_compiler_pic_CXX=
20305 ;;
20306 *)
20307 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20308 ;;
20309esac
cristy73bd4a52010-10-05 11:24:23 +000020310
cristyda16f162011-02-19 23:52:17 +000020311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20312$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20313if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20314 $as_echo_n "(cached) " >&6
20315else
20316 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20317fi
20318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20319$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20320lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020321
20322#
20323# Check to make sure the PIC flag actually works.
20324#
20325if test -n "$lt_prog_compiler_pic_CXX"; then
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20327$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020328if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020329 $as_echo_n "(cached) " >&6
20330else
20331 lt_cv_prog_compiler_pic_works_CXX=no
20332 ac_outfile=conftest.$ac_objext
20333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20334 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20335 # Insert the option either (1) after the last *FLAGS variable, or
20336 # (2) before a word containing "conftest.", or (3) at the end.
20337 # Note that $ac_compile itself does not contain backslashes and begins
20338 # with a dollar sign (not a hyphen), so the echo should work correctly.
20339 # The option is referenced via a variable to avoid confusing sed.
20340 lt_compile=`echo "$ac_compile" | $SED \
20341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20343 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020345 (eval "$lt_compile" 2>conftest.err)
20346 ac_status=$?
20347 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020349 if (exit $ac_status) && test -s "$ac_outfile"; then
20350 # The compiler can only warn and ignore the option if not recognized
20351 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20355 lt_cv_prog_compiler_pic_works_CXX=yes
20356 fi
20357 fi
20358 $RM conftest*
20359
20360fi
20361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20362$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20363
20364if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20365 case $lt_prog_compiler_pic_CXX in
20366 "" | " "*) ;;
20367 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20368 esac
20369else
20370 lt_prog_compiler_pic_CXX=
20371 lt_prog_compiler_can_build_shared_CXX=no
20372fi
20373
20374fi
20375
20376
20377
cristyda16f162011-02-19 23:52:17 +000020378
20379
cristy73bd4a52010-10-05 11:24:23 +000020380#
20381# Check to make sure the static flag actually works.
20382#
20383wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20385$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020386if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020387 $as_echo_n "(cached) " >&6
20388else
20389 lt_cv_prog_compiler_static_works_CXX=no
20390 save_LDFLAGS="$LDFLAGS"
20391 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20392 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20393 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20394 # The linker can only warn and ignore the option if not recognized
20395 # So say no if there are warnings
20396 if test -s conftest.err; then
20397 # Append any errors to the config.log.
20398 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020399 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20401 if diff conftest.exp conftest.er2 >/dev/null; then
20402 lt_cv_prog_compiler_static_works_CXX=yes
20403 fi
20404 else
20405 lt_cv_prog_compiler_static_works_CXX=yes
20406 fi
20407 fi
20408 $RM -r conftest*
20409 LDFLAGS="$save_LDFLAGS"
20410
20411fi
20412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20413$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20414
20415if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20416 :
20417else
20418 lt_prog_compiler_static_CXX=
20419fi
20420
20421
20422
20423
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20425$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020426if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020427 $as_echo_n "(cached) " >&6
20428else
20429 lt_cv_prog_compiler_c_o_CXX=no
20430 $RM -r conftest 2>/dev/null
20431 mkdir conftest
20432 cd conftest
20433 mkdir out
20434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20435
20436 lt_compiler_flag="-o out/conftest2.$ac_objext"
20437 # Insert the option either (1) after the last *FLAGS variable, or
20438 # (2) before a word containing "conftest.", or (3) at the end.
20439 # Note that $ac_compile itself does not contain backslashes and begins
20440 # with a dollar sign (not a hyphen), so the echo should work correctly.
20441 lt_compile=`echo "$ac_compile" | $SED \
20442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20444 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020446 (eval "$lt_compile" 2>out/conftest.err)
20447 ac_status=$?
20448 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20451 then
20452 # The compiler can only warn and ignore the option if not recognized
20453 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20457 lt_cv_prog_compiler_c_o_CXX=yes
20458 fi
20459 fi
20460 chmod u+w . 2>&5
20461 $RM conftest*
20462 # SGI C++ compiler will create directory out/ii_files/ for
20463 # template instantiation
20464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20465 $RM out/* && rmdir out
20466 cd ..
20467 $RM -r conftest
20468 $RM conftest*
20469
20470fi
20471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20472$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20473
20474
20475
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20477$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020478if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020479 $as_echo_n "(cached) " >&6
20480else
20481 lt_cv_prog_compiler_c_o_CXX=no
20482 $RM -r conftest 2>/dev/null
20483 mkdir conftest
20484 cd conftest
20485 mkdir out
20486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20487
20488 lt_compiler_flag="-o out/conftest2.$ac_objext"
20489 # Insert the option either (1) after the last *FLAGS variable, or
20490 # (2) before a word containing "conftest.", or (3) at the end.
20491 # Note that $ac_compile itself does not contain backslashes and begins
20492 # with a dollar sign (not a hyphen), so the echo should work correctly.
20493 lt_compile=`echo "$ac_compile" | $SED \
20494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20496 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020498 (eval "$lt_compile" 2>out/conftest.err)
20499 ac_status=$?
20500 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20503 then
20504 # The compiler can only warn and ignore the option if not recognized
20505 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000020506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20509 lt_cv_prog_compiler_c_o_CXX=yes
20510 fi
20511 fi
20512 chmod u+w . 2>&5
20513 $RM conftest*
20514 # SGI C++ compiler will create directory out/ii_files/ for
20515 # template instantiation
20516 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20517 $RM out/* && rmdir out
20518 cd ..
20519 $RM -r conftest
20520 $RM conftest*
20521
20522fi
20523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20524$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20525
20526
20527
20528
20529hard_links="nottested"
20530if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20531 # do not overwrite the value of need_locks provided by the user
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20533$as_echo_n "checking if we can lock with hard links... " >&6; }
20534 hard_links=yes
20535 $RM conftest*
20536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20537 touch conftest.a
20538 ln conftest.a conftest.b 2>&5 || hard_links=no
20539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20541$as_echo "$hard_links" >&6; }
20542 if test "$hard_links" = no; then
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20544$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20545 need_locks=warn
20546 fi
20547else
20548 need_locks=no
20549fi
20550
20551
20552
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20554$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20555
20556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020557 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000020558 case $host_os in
20559 aix[4-9]*)
20560 # If we're using GNU nm, then we don't want the "-C" option.
20561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000020562 # Also, AIX nm treats weak defined symbols like other global defined
20563 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000020564 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000020565 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 +000020566 else
20567 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'
20568 fi
20569 ;;
20570 pw32*)
20571 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000020572 ;;
cristy73bd4a52010-10-05 11:24:23 +000020573 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000020574 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000020575 cl*)
20576 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20577 ;;
cristyda16f162011-02-19 23:52:17 +000020578 *)
20579 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'
20580 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20581 ;;
20582 esac
20583 ;;
cristy73bd4a52010-10-05 11:24:23 +000020584 *)
20585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000020586 ;;
cristy73bd4a52010-10-05 11:24:23 +000020587 esac
cristy73bd4a52010-10-05 11:24:23 +000020588
20589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20590$as_echo "$ld_shlibs_CXX" >&6; }
20591test "$ld_shlibs_CXX" = no && can_build_shared=no
20592
20593with_gnu_ld_CXX=$with_gnu_ld
20594
20595
20596
20597
20598
20599
20600#
20601# Do we need to explicitly link libc?
20602#
20603case "x$archive_cmds_need_lc_CXX" in
20604x|xyes)
20605 # Assume -lc should be added
20606 archive_cmds_need_lc_CXX=yes
20607
20608 if test "$enable_shared" = yes && test "$GCC" = yes; then
20609 case $archive_cmds_CXX in
20610 *'~'*)
20611 # FIXME: we may have to deal with multi-command sequences.
20612 ;;
20613 '$CC '*)
20614 # Test whether the compiler implicitly links with -lc since on some
20615 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20616 # to ld, don't add -lc before -lgcc.
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20618$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020619if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020620 $as_echo_n "(cached) " >&6
20621else
20622 $RM conftest*
20623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020624
cristy0c60a692010-11-04 01:09:47 +000020625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000020626 (eval $ac_compile) 2>&5
20627 ac_status=$?
20628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20629 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000020630 soname=conftest
20631 lib=conftest
20632 libobjs=conftest.$ac_objext
20633 deplibs=
20634 wl=$lt_prog_compiler_wl_CXX
20635 pic_flag=$lt_prog_compiler_pic_CXX
20636 compiler_flags=-v
20637 linker_flags=-v
20638 verstring=
20639 output_objdir=.
20640 libname=conftest
20641 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20642 allow_undefined_flag_CXX=
20643 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 +000020644 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20645 ac_status=$?
20646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20647 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000020648 then
20649 lt_cv_archive_cmds_need_lc_CXX=no
20650 else
20651 lt_cv_archive_cmds_need_lc_CXX=yes
20652 fi
20653 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20654 else
20655 cat conftest.err 1>&5
20656 fi
20657 $RM conftest*
20658
20659fi
20660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20661$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20662 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000020663 ;;
20664 esac
20665 fi
20666 ;;
20667esac
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
cristy73bd4a52010-10-05 11:24:23 +000020730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20731$as_echo_n "checking dynamic linker characteristics... " >&6; }
20732
20733library_names_spec=
20734libname_spec='lib$name'
20735soname_spec=
20736shrext_cmds=".so"
20737postinstall_cmds=
20738postuninstall_cmds=
20739finish_cmds=
20740finish_eval=
20741shlibpath_var=
20742shlibpath_overrides_runpath=unknown
20743version_type=none
20744dynamic_linker="$host_os ld.so"
20745sys_lib_dlsearch_path_spec="/lib /usr/lib"
20746need_lib_prefix=unknown
20747hardcode_into_libs=no
20748
20749# when you set need_version to no, make sure it does not cause -set_version
20750# flags to be left without arguments
20751need_version=unknown
20752
20753case $host_os in
20754aix3*)
cristy99bd5232011-12-07 14:38:20 +000020755 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20757 shlibpath_var=LIBPATH
20758
20759 # AIX 3 has no versioning support, so we append a major version to the name.
20760 soname_spec='${libname}${release}${shared_ext}$major'
20761 ;;
20762
20763aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000020764 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020765 need_lib_prefix=no
20766 need_version=no
20767 hardcode_into_libs=yes
20768 if test "$host_cpu" = ia64; then
20769 # AIX 5 supports IA64
20770 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20771 shlibpath_var=LD_LIBRARY_PATH
20772 else
20773 # With GCC up to 2.95.x, collect2 would create an import file
20774 # for dependence libraries. The import file would start with
20775 # the line `#! .'. This would cause the generated library to
20776 # depend on `.', always an invalid library. This was fixed in
20777 # development snapshots of GCC prior to 3.0.
20778 case $host_os in
20779 aix4 | aix4.[01] | aix4.[01].*)
20780 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20781 echo ' yes '
20782 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20783 :
20784 else
20785 can_build_shared=no
20786 fi
20787 ;;
20788 esac
20789 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20790 # soname into executable. Probably we can add versioning support to
20791 # collect2, so additional links can be useful in future.
20792 if test "$aix_use_runtimelinking" = yes; then
20793 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20794 # instead of lib<name>.a to let people know that these are not
20795 # typical AIX shared libraries.
20796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20797 else
20798 # We preserve .a as extension for shared libraries through AIX4.2
20799 # and later when we are not doing run time linking.
20800 library_names_spec='${libname}${release}.a $libname.a'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 fi
20803 shlibpath_var=LIBPATH
20804 fi
20805 ;;
20806
20807amigaos*)
20808 case $host_cpu in
20809 powerpc)
20810 # Since July 2007 AmigaOS4 officially supports .so libraries.
20811 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 ;;
20814 m68k)
20815 library_names_spec='$libname.ixlibrary $libname.a'
20816 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000020817 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 +000020818 ;;
20819 esac
20820 ;;
20821
20822beos*)
20823 library_names_spec='${libname}${shared_ext}'
20824 dynamic_linker="$host_os ld.so"
20825 shlibpath_var=LIBRARY_PATH
20826 ;;
20827
20828bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000020829 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020830 need_version=no
20831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20832 soname_spec='${libname}${release}${shared_ext}$major'
20833 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20834 shlibpath_var=LD_LIBRARY_PATH
20835 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20836 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20837 # the default ld.so.conf also contains /usr/contrib/lib and
20838 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20839 # libtool to hard-code these into programs
20840 ;;
20841
20842cygwin* | mingw* | pw32* | cegcc*)
20843 version_type=windows
20844 shrext_cmds=".dll"
20845 need_version=no
20846 need_lib_prefix=no
20847
cristyda16f162011-02-19 23:52:17 +000020848 case $GCC,$cc_basename in
20849 yes,*)
20850 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020851 library_names_spec='$libname.dll.a'
20852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20853 postinstall_cmds='base_file=`basename \${file}`~
20854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20855 dldir=$destdir/`dirname \$dlpath`~
20856 test -d \$dldir || mkdir -p \$dldir~
20857 $install_prog $dir/$dlname \$dldir/$dlname~
20858 chmod a+x \$dldir/$dlname~
20859 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20860 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20861 fi'
20862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20863 dlpath=$dir/\$dldll~
20864 $RM \$dlpath'
20865 shlibpath_overrides_runpath=yes
20866
20867 case $host_os in
20868 cygwin*)
20869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020871
cristy73bd4a52010-10-05 11:24:23 +000020872 ;;
20873 mingw* | cegcc*)
20874 # MinGW DLLs use traditional 'lib' prefix
20875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020876 ;;
20877 pw32*)
20878 # pw32 DLLs use 'pw' prefix rather than 'lib'
20879 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20880 ;;
20881 esac
cristyda16f162011-02-19 23:52:17 +000020882 dynamic_linker='Win32 ld.exe'
20883 ;;
20884
20885 *,cl*)
20886 # Native MSVC
20887 libname_spec='$name'
20888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20889 library_names_spec='${libname}.dll.lib'
20890
20891 case $build_os in
20892 mingw*)
20893 sys_lib_search_path_spec=
20894 lt_save_ifs=$IFS
20895 IFS=';'
20896 for lt_path in $LIB
20897 do
20898 IFS=$lt_save_ifs
20899 # Let DOS variable expansion print the short 8.3 style file name.
20900 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20901 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20902 done
20903 IFS=$lt_save_ifs
20904 # Convert to MSYS style.
20905 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20906 ;;
20907 cygwin*)
20908 # Convert to unix form, then to dos form, then back to unix form
20909 # but this time dos style (no spaces!) so that the unix form looks
20910 # like /cygdrive/c/PROGRA~1:/cygdr...
20911 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20912 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20913 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20914 ;;
20915 *)
20916 sys_lib_search_path_spec="$LIB"
20917 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20918 # It is most probably a Windows format PATH.
20919 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20920 else
20921 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20922 fi
20923 # FIXME: find the short name or the path components, as spaces are
20924 # common. (e.g. "Program Files" -> "PROGRA~1")
20925 ;;
20926 esac
20927
20928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20929 postinstall_cmds='base_file=`basename \${file}`~
20930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20931 dldir=$destdir/`dirname \$dlpath`~
20932 test -d \$dldir || mkdir -p \$dldir~
20933 $install_prog $dir/$dlname \$dldir/$dlname'
20934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20935 dlpath=$dir/\$dldll~
20936 $RM \$dlpath'
20937 shlibpath_overrides_runpath=yes
20938 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020939 ;;
20940
20941 *)
cristyda16f162011-02-19 23:52:17 +000020942 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020943 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020944 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020945 ;;
20946 esac
cristy73bd4a52010-10-05 11:24:23 +000020947 # FIXME: first we should search . and the directory the executable is in
20948 shlibpath_var=PATH
20949 ;;
20950
20951darwin* | rhapsody*)
20952 dynamic_linker="$host_os dyld"
20953 version_type=darwin
20954 need_lib_prefix=no
20955 need_version=no
20956 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20957 soname_spec='${libname}${release}${major}$shared_ext'
20958 shlibpath_overrides_runpath=yes
20959 shlibpath_var=DYLD_LIBRARY_PATH
20960 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20961
20962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20963 ;;
20964
20965dgux*)
cristy99bd5232011-12-07 14:38:20 +000020966 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020967 need_lib_prefix=no
20968 need_version=no
20969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20970 soname_spec='${libname}${release}${shared_ext}$major'
20971 shlibpath_var=LD_LIBRARY_PATH
20972 ;;
20973
cristy73bd4a52010-10-05 11:24:23 +000020974freebsd* | dragonfly*)
20975 # DragonFly does not have aout. When/if they implement a new
20976 # versioning mechanism, adjust this.
20977 if test -x /usr/bin/objformat; then
20978 objformat=`/usr/bin/objformat`
20979 else
20980 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020981 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020982 *) objformat=elf ;;
20983 esac
20984 fi
20985 version_type=freebsd-$objformat
20986 case $version_type in
20987 freebsd-elf*)
20988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20989 need_version=no
20990 need_lib_prefix=no
20991 ;;
20992 freebsd-*)
20993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20994 need_version=yes
20995 ;;
20996 esac
20997 shlibpath_var=LD_LIBRARY_PATH
20998 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020999 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021000 shlibpath_overrides_runpath=yes
21001 ;;
21002 freebsd3.[01]* | freebsdelf3.[01]*)
21003 shlibpath_overrides_runpath=yes
21004 hardcode_into_libs=yes
21005 ;;
21006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21008 shlibpath_overrides_runpath=no
21009 hardcode_into_libs=yes
21010 ;;
21011 *) # from 4.6 on, and DragonFly
21012 shlibpath_overrides_runpath=yes
21013 hardcode_into_libs=yes
21014 ;;
21015 esac
21016 ;;
21017
21018gnu*)
cristy99bd5232011-12-07 14:38:20 +000021019 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021020 need_lib_prefix=no
21021 need_version=no
21022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21023 soname_spec='${libname}${release}${shared_ext}$major'
21024 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000021025 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000021026 hardcode_into_libs=yes
21027 ;;
21028
cristy0c60a692010-11-04 01:09:47 +000021029haiku*)
cristy99bd5232011-12-07 14:38:20 +000021030 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021031 need_lib_prefix=no
21032 need_version=no
21033 dynamic_linker="$host_os runtime_loader"
21034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21035 soname_spec='${libname}${release}${shared_ext}$major'
21036 shlibpath_var=LIBRARY_PATH
21037 shlibpath_overrides_runpath=yes
21038 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21039 hardcode_into_libs=yes
21040 ;;
21041
cristy73bd4a52010-10-05 11:24:23 +000021042hpux9* | hpux10* | hpux11*)
21043 # Give a soname corresponding to the major version so that dld.sl refuses to
21044 # link against other versions.
21045 version_type=sunos
21046 need_lib_prefix=no
21047 need_version=no
21048 case $host_cpu in
21049 ia64*)
21050 shrext_cmds='.so'
21051 hardcode_into_libs=yes
21052 dynamic_linker="$host_os dld.so"
21053 shlibpath_var=LD_LIBRARY_PATH
21054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21056 soname_spec='${libname}${release}${shared_ext}$major'
21057 if test "X$HPUX_IA64_MODE" = X32; then
21058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21059 else
21060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21061 fi
21062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21063 ;;
21064 hppa*64*)
21065 shrext_cmds='.sl'
21066 hardcode_into_libs=yes
21067 dynamic_linker="$host_os dld.sl"
21068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21071 soname_spec='${libname}${release}${shared_ext}$major'
21072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21074 ;;
21075 *)
21076 shrext_cmds='.sl'
21077 dynamic_linker="$host_os dld.sl"
21078 shlibpath_var=SHLIB_PATH
21079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21081 soname_spec='${libname}${release}${shared_ext}$major'
21082 ;;
21083 esac
cristy0c60a692010-11-04 01:09:47 +000021084 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021085 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021086 # or fails outright, so override atomically:
21087 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021088 ;;
21089
21090interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021091 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021092 need_lib_prefix=no
21093 need_version=no
21094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21095 soname_spec='${libname}${release}${shared_ext}$major'
21096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21097 shlibpath_var=LD_LIBRARY_PATH
21098 shlibpath_overrides_runpath=no
21099 hardcode_into_libs=yes
21100 ;;
21101
21102irix5* | irix6* | nonstopux*)
21103 case $host_os in
21104 nonstopux*) version_type=nonstopux ;;
21105 *)
21106 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000021107 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021108 else
21109 version_type=irix
21110 fi ;;
21111 esac
21112 need_lib_prefix=no
21113 need_version=no
21114 soname_spec='${libname}${release}${shared_ext}$major'
21115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21116 case $host_os in
21117 irix5* | nonstopux*)
21118 libsuff= shlibsuff=
21119 ;;
21120 *)
21121 case $LD in # libtool.m4 will add one of these switches to LD
21122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21123 libsuff= shlibsuff= libmagic=32-bit;;
21124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21125 libsuff=32 shlibsuff=N32 libmagic=N32;;
21126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21128 *) libsuff= shlibsuff= libmagic=never-match;;
21129 esac
21130 ;;
21131 esac
21132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21133 shlibpath_overrides_runpath=no
21134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21136 hardcode_into_libs=yes
21137 ;;
21138
21139# No shared lib support for Linux oldld, aout, or coff.
21140linux*oldld* | linux*aout* | linux*coff*)
21141 dynamic_linker=no
21142 ;;
21143
cristy99bd5232011-12-07 14:38:20 +000021144# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000021145linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000021146 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021147 need_lib_prefix=no
21148 need_version=no
21149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21150 soname_spec='${libname}${release}${shared_ext}$major'
21151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21152 shlibpath_var=LD_LIBRARY_PATH
21153 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021154
cristy73bd4a52010-10-05 11:24:23 +000021155 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021156 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021157 $as_echo_n "(cached) " >&6
21158else
21159 lt_cv_shlibpath_overrides_runpath=no
21160 save_LDFLAGS=$LDFLAGS
21161 save_libdir=$libdir
21162 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21163 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021165/* end confdefs.h. */
21166
21167int
21168main ()
21169{
21170
21171 ;
21172 return 0;
21173}
21174_ACEOF
21175if ac_fn_cxx_try_link "$LINENO"; then :
21176 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021177 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021178fi
21179fi
21180rm -f core conftest.err conftest.$ac_objext \
21181 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021182 LDFLAGS=$save_LDFLAGS
21183 libdir=$save_libdir
21184
21185fi
21186
21187 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021188
21189 # This implies no fast_install, which is unacceptable.
21190 # Some rework will be needed to allow for fast_install
21191 # before this can be enabled.
21192 hardcode_into_libs=yes
21193
21194 # Add ABI-specific directories to the system library path.
21195 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21196
21197 # Append ld.so.conf contents to the search path
21198 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021199 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 +000021200 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000021201
cristy73bd4a52010-10-05 11:24:23 +000021202 fi
21203
21204 # We used to test for /lib/ld.so.1 and disable shared libraries on
21205 # powerpc, because MkLinux only supported shared libraries with the
21206 # GNU dynamic linker. Since this was broken with cross compilers,
21207 # most powerpc-linux boxes support dynamic linking these days and
21208 # people can always --disable-shared, the test was removed, and we
21209 # assume the GNU/Linux dynamic linker is in use.
21210 dynamic_linker='GNU/Linux ld.so'
21211 ;;
21212
21213netbsd*)
21214 version_type=sunos
21215 need_lib_prefix=no
21216 need_version=no
21217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21220 dynamic_linker='NetBSD (a.out) ld.so'
21221 else
21222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21223 soname_spec='${libname}${release}${shared_ext}$major'
21224 dynamic_linker='NetBSD ld.elf_so'
21225 fi
21226 shlibpath_var=LD_LIBRARY_PATH
21227 shlibpath_overrides_runpath=yes
21228 hardcode_into_libs=yes
21229 ;;
21230
21231newsos6)
cristy99bd5232011-12-07 14:38:20 +000021232 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21234 shlibpath_var=LD_LIBRARY_PATH
21235 shlibpath_overrides_runpath=yes
21236 ;;
21237
21238*nto* | *qnx*)
21239 version_type=qnx
21240 need_lib_prefix=no
21241 need_version=no
21242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21243 soname_spec='${libname}${release}${shared_ext}$major'
21244 shlibpath_var=LD_LIBRARY_PATH
21245 shlibpath_overrides_runpath=no
21246 hardcode_into_libs=yes
21247 dynamic_linker='ldqnx.so'
21248 ;;
21249
21250openbsd*)
21251 version_type=sunos
21252 sys_lib_dlsearch_path_spec="/usr/lib"
21253 need_lib_prefix=no
21254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21255 case $host_os in
21256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21257 *) need_version=no ;;
21258 esac
21259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21261 shlibpath_var=LD_LIBRARY_PATH
21262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21263 case $host_os in
21264 openbsd2.[89] | openbsd2.[89].*)
21265 shlibpath_overrides_runpath=no
21266 ;;
21267 *)
21268 shlibpath_overrides_runpath=yes
21269 ;;
21270 esac
21271 else
21272 shlibpath_overrides_runpath=yes
21273 fi
21274 ;;
21275
21276os2*)
21277 libname_spec='$name'
21278 shrext_cmds=".dll"
21279 need_lib_prefix=no
21280 library_names_spec='$libname${shared_ext} $libname.a'
21281 dynamic_linker='OS/2 ld.exe'
21282 shlibpath_var=LIBPATH
21283 ;;
21284
21285osf3* | osf4* | osf5*)
21286 version_type=osf
21287 need_lib_prefix=no
21288 need_version=no
21289 soname_spec='${libname}${release}${shared_ext}$major'
21290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21291 shlibpath_var=LD_LIBRARY_PATH
21292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21294 ;;
21295
21296rdos*)
21297 dynamic_linker=no
21298 ;;
21299
21300solaris*)
cristy99bd5232011-12-07 14:38:20 +000021301 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021302 need_lib_prefix=no
21303 need_version=no
21304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21305 soname_spec='${libname}${release}${shared_ext}$major'
21306 shlibpath_var=LD_LIBRARY_PATH
21307 shlibpath_overrides_runpath=yes
21308 hardcode_into_libs=yes
21309 # ldd complains unless libraries are executable
21310 postinstall_cmds='chmod +x $lib'
21311 ;;
21312
21313sunos4*)
21314 version_type=sunos
21315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21317 shlibpath_var=LD_LIBRARY_PATH
21318 shlibpath_overrides_runpath=yes
21319 if test "$with_gnu_ld" = yes; then
21320 need_lib_prefix=no
21321 fi
21322 need_version=yes
21323 ;;
21324
21325sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021326 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21328 soname_spec='${libname}${release}${shared_ext}$major'
21329 shlibpath_var=LD_LIBRARY_PATH
21330 case $host_vendor in
21331 sni)
21332 shlibpath_overrides_runpath=no
21333 need_lib_prefix=no
21334 runpath_var=LD_RUN_PATH
21335 ;;
21336 siemens)
21337 need_lib_prefix=no
21338 ;;
21339 motorola)
21340 need_lib_prefix=no
21341 need_version=no
21342 shlibpath_overrides_runpath=no
21343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21344 ;;
21345 esac
21346 ;;
21347
21348sysv4*MP*)
21349 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000021350 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21352 soname_spec='$libname${shared_ext}.$major'
21353 shlibpath_var=LD_LIBRARY_PATH
21354 fi
21355 ;;
21356
21357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21358 version_type=freebsd-elf
21359 need_lib_prefix=no
21360 need_version=no
21361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21362 soname_spec='${libname}${release}${shared_ext}$major'
21363 shlibpath_var=LD_LIBRARY_PATH
21364 shlibpath_overrides_runpath=yes
21365 hardcode_into_libs=yes
21366 if test "$with_gnu_ld" = yes; then
21367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21368 else
21369 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21370 case $host_os in
21371 sco3.2v5*)
21372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21373 ;;
21374 esac
21375 fi
21376 sys_lib_dlsearch_path_spec='/usr/lib'
21377 ;;
21378
21379tpf*)
21380 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000021381 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021382 need_lib_prefix=no
21383 need_version=no
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21385 shlibpath_var=LD_LIBRARY_PATH
21386 shlibpath_overrides_runpath=no
21387 hardcode_into_libs=yes
21388 ;;
21389
21390uts4*)
cristy99bd5232011-12-07 14:38:20 +000021391 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21393 soname_spec='${libname}${release}${shared_ext}$major'
21394 shlibpath_var=LD_LIBRARY_PATH
21395 ;;
21396
21397*)
21398 dynamic_linker=no
21399 ;;
21400esac
21401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21402$as_echo "$dynamic_linker" >&6; }
21403test "$dynamic_linker" = no && can_build_shared=no
21404
21405variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21406if test "$GCC" = yes; then
21407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21408fi
21409
21410if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21412fi
21413if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21415fi
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
cristy0c60a692010-11-04 01:09:47 +000021452
21453
cristy73bd4a52010-10-05 11:24:23 +000021454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21455$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21456hardcode_action_CXX=
21457if test -n "$hardcode_libdir_flag_spec_CXX" ||
21458 test -n "$runpath_var_CXX" ||
21459 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21460
21461 # We can hardcode non-existent directories.
21462 if test "$hardcode_direct_CXX" != no &&
21463 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21464 # have to relink, otherwise we might link with an installed library
21465 # when we should be linking with a yet-to-be-installed one
21466 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21467 test "$hardcode_minus_L_CXX" != no; then
21468 # Linking always hardcodes the temporary library directory.
21469 hardcode_action_CXX=relink
21470 else
21471 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21472 hardcode_action_CXX=immediate
21473 fi
21474else
21475 # We cannot hardcode anything, or else we can only hardcode existing
21476 # directories.
21477 hardcode_action_CXX=unsupported
21478fi
21479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21480$as_echo "$hardcode_action_CXX" >&6; }
21481
21482if test "$hardcode_action_CXX" = relink ||
21483 test "$inherit_rpath_CXX" = yes; then
21484 # Fast installation is not supported
21485 enable_fast_install=no
21486elif test "$shlibpath_overrides_runpath" = yes ||
21487 test "$enable_shared" = no; then
21488 # Fast installation is not necessary
21489 enable_fast_install=needless
21490fi
21491
21492
21493
21494
21495
21496
21497
21498 fi # test -n "$compiler"
21499
21500 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000021501 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021502 LDCXX=$LD
21503 LD=$lt_save_LD
21504 GCC=$lt_save_GCC
21505 with_gnu_ld=$lt_save_with_gnu_ld
21506 lt_cv_path_LDCXX=$lt_cv_path_LD
21507 lt_cv_path_LD=$lt_save_path_LD
21508 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21509 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21510fi # test "$_lt_caught_CXX_error" != yes
21511
21512ac_ext=c
21513ac_cpp='$CPP $CPPFLAGS'
21514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21516ac_compiler_gnu=$ac_cv_c_compiler_gnu
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
cristy99bd5232011-12-07 14:38:20 +000021530
21531
cristy73bd4a52010-10-05 11:24:23 +000021532 ac_config_commands="$ac_config_commands libtool"
21533
21534
21535
21536
21537# Only expand once:
21538
21539
21540
cristy3ed852e2009-09-05 21:47:34 +000021541
21542
cristy3ed852e2009-09-05 21:47:34 +000021543# Check to see if building shared libraries
21544libtool_build_shared_libs='no'
21545if test "$enable_shared" = 'yes'; then
21546 libtool_build_shared_libs='yes'
21547fi
21548
21549# Check to see if building static libraries
21550libtool_build_static_libs='no'
21551if test "$enable_static" = 'yes'; then
21552 libtool_build_static_libs='yes'
21553fi
21554
cristy73bd4a52010-10-05 11:24:23 +000021555 if test "${libtool_build_shared_libs}" = 'yes'; then
21556 WITH_SHARED_LIBS_TRUE=
21557 WITH_SHARED_LIBS_FALSE='#'
21558else
21559 WITH_SHARED_LIBS_TRUE='#'
21560 WITH_SHARED_LIBS_FALSE=
21561fi
21562
cristy3ed852e2009-09-05 21:47:34 +000021563#
21564# Enable support for building loadable modules
21565#
cristyaf4cbf32012-10-16 23:47:41 +000021566build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021567
21568# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021569if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021570 withval=$with_modules; with_modules=$withval
21571else
cristy5a1cefd2010-01-06 20:42:35 +000021572 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021573fi
21574
21575
21576# Only allow building loadable modules if we are building shared libraries
21577if test "$with_modules" != 'no' ; then
21578 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021579 { $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 +000021580$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021581 build_modules='no'
21582 else
21583 build_modules='yes'
21584 fi
cristy3ed852e2009-09-05 21:47:34 +000021585fi
cristyc6722092012-10-14 00:19:31 +000021586if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021587
cristy8b350f62009-11-15 23:12:43 +000021588$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021589
cristyfa161182012-12-19 15:45:28 +000021590 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000021591fi
cristyc6722092012-10-14 00:19:31 +000021592 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021593 WITH_MODULES_TRUE=
21594 WITH_MODULES_FALSE='#'
21595else
21596 WITH_MODULES_TRUE='#'
21597 WITH_MODULES_FALSE=
21598fi
21599
cristy3ed852e2009-09-05 21:47:34 +000021600
cristy3ed852e2009-09-05 21:47:34 +000021601# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021602# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021603# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021604if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021605 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21606else
21607 enable_delegate_build='no'
21608fi
21609
21610
21611# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021612if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021613 enableval=$enable_deprecated; enable_deprecated=$enableval
21614else
21615 enable_deprecated='no'
21616fi
21617
21618
21619if test "$enable_deprecated" = 'yes'; then
21620
cristy8b350f62009-11-15 23:12:43 +000021621$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021622
21623else
21624 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21625fi
21626
21627# Build a version of ImageMagick which operates uninstalled.
21628# Used to build distributions located via MAGICK_HOME / executable path
21629# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021630if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021631 enableval=$enable_installed; enable_installed=$enableval
21632else
21633 enable_installed='yes'
21634fi
21635
21636
21637if test "$enable_installed" = 'yes'; then
21638
cristy8b350f62009-11-15 23:12:43 +000021639$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021640
21641else
21642 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21643fi
21644
21645# Permit enciphering and deciphering image pixels.
21646# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021647if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021648 enableval=$enable_cipher; enable_cipher=$enableval
21649else
21650 enable_cipher='yes'
21651fi
21652
21653
21654if test "$enable_cipher" = 'yes'; then
21655
cristy8b350f62009-11-15 23:12:43 +000021656$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021657
21658fi
21659
cristy6e3607c2011-09-13 13:59:17 +000021660# Build a zero-configuration version of ImageMagick.
21661# Check whether --enable-zero-configuration was given.
21662if test "${enable_zero_configuration+set}" = set; then :
21663 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021664else
cristy6e3607c2011-09-13 13:59:17 +000021665 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021666fi
21667
21668
cristy6e3607c2011-09-13 13:59:17 +000021669if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021670
cristy6e3607c2011-09-13 13:59:17 +000021671$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021672
cristy81af5702011-09-13 14:20:58 +000021673 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021674fi
21675
21676# Build a high dynamic range version of ImageMagick.
21677# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021678if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021679 enableval=$enable_hdri; enable_hdri=$enableval
21680else
cristy191c0b72012-08-12 16:29:52 +000021681 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021682fi
21683
21684
21685MAGICK_HDRI=""
21686if test "$enable_hdri" = 'yes'; then
21687 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000021688 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000021689 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000021690else
21691 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000021692fi
21693
cristye52f12f2012-12-31 15:32:36 +000021694cat >>confdefs.h <<_ACEOF
21695#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
21696_ACEOF
21697
21698MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
21699CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000021700CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000021701
cristy3ed852e2009-09-05 21:47:34 +000021702# Build a version of ImageMagick with assert statements.
21703# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021704if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021705 enableval=$enable_assert; enable_assert=$enableval
21706else
21707 enable_assert='yes'
21708fi
21709
21710
21711if test "$enable_assert" = 'no'; then
21712
cristy8b350f62009-11-15 23:12:43 +000021713$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021714
21715fi
21716
cristya448bd22011-10-14 12:38:13 +000021717# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021718
21719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21720$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21721 # Check whether --enable-maintainer-mode was given.
21722if test "${enable_maintainer_mode+set}" = set; then :
21723 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21724else
21725 USE_MAINTAINER_MODE=no
21726fi
21727
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21729$as_echo "$USE_MAINTAINER_MODE" >&6; }
21730 if test $USE_MAINTAINER_MODE = yes; then
21731 MAINTAINER_MODE_TRUE=
21732 MAINTAINER_MODE_FALSE='#'
21733else
21734 MAINTAINER_MODE_TRUE='#'
21735 MAINTAINER_MODE_FALSE=
21736fi
21737
21738 MAINT=$MAINTAINER_MODE_TRUE
21739
21740
cristy3ed852e2009-09-05 21:47:34 +000021741
cristy944e51f2013-04-16 18:45:02 +000021742# Enable hugepages support
21743# Check whether --enable-hugepages was given.
21744if test "${enable_hugepages+set}" = set; then :
21745 enableval=$enable_hugepages; enable_hugepages=$enableval
21746else
21747 enable_hugepages='no'
21748fi
21749
21750
cristy3ed852e2009-09-05 21:47:34 +000021751# Enable ccmalloc memory debugging support
21752# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021753if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021754 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21755else
21756 enable_ccmalloc='no'
21757fi
21758
21759
21760# Enable Electric Fence memory debugging support
21761# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021762if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021763 enableval=$enable_efence; enable_efence=$enableval
21764else
21765 enable_efence='no'
21766fi
21767
21768
21769# Enable prof-based profiling support
21770# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021771if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021772 enableval=$enable_prof; enable_prof=$enableval
21773else
21774 enable_prof='no'
21775fi
21776
21777
21778# Enable gprof-based profiling support
21779# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021780if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021781 enableval=$enable_gprof; enable_gprof=$enableval
21782else
21783 enable_gprof='no'
21784fi
21785
21786
21787# Enable gcov-based profiling support
21788# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021789if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021790 enableval=$enable_gcov; enable_gcov=$enableval
21791else
21792 enable_gcov='no'
21793fi
21794
21795
21796enable_profiling='no'
21797if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21798 enable_profiling='yes'
21799 if test "$libtool_build_shared_libs" = 'yes'; then
21800 echo "Warning: Can not profile code using shared libraries"
21801 fi
21802fi
21803
21804# Magick API method prefix
21805
21806# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021807if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021808 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021809else
cristyfc3d0222012-02-07 15:05:57 +000021810 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021811fi
21812
21813
cristyfc3d0222012-02-07 15:05:57 +000021814if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021815
21816cat >>confdefs.h <<_ACEOF
21817#define NAMESPACE_PREFIX $with_method_prefix
21818_ACEOF
21819
cristyfc3d0222012-02-07 15:05:57 +000021820 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021821fi
21822
cristy71d8c202012-03-20 17:05:01 +000021823# Enable legacy support (default no)
21824# Check whether --enable-legacy-support was given.
21825if test "${enable_legacy_support+set}" = set; then :
21826 enableval=$enable_legacy_support; with_legacy_support=$enableval
21827else
21828 with_legacy_support='no'
21829fi
21830
21831 if test "$with_legacy_support" != 'no'; then
21832 LEGACY_SUPPORT_TRUE=
21833 LEGACY_SUPPORT_FALSE='#'
21834else
21835 LEGACY_SUPPORT_TRUE='#'
21836 LEGACY_SUPPORT_FALSE=
21837fi
21838
21839
cristy3ed852e2009-09-05 21:47:34 +000021840# Number of bits in a Quantum
21841
21842# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021843if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021844 withval=$with_quantum_depth; with_quantum_depth=$withval
21845else
21846 with_quantum_depth=16
21847fi
21848
21849
21850if test "$with_quantum_depth" != '8'; then
21851 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21852fi
21853
21854case "${with_quantum_depth}" in
21855 8 ) ;;
21856 16 ) ;;
21857 32 ) ;;
21858 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021859 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021860esac
21861QUANTUM_DEPTH="$with_quantum_depth"
21862
21863cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000021864#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000021865_ACEOF
21866
cristya371edf2013-02-06 13:42:17 +000021867MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000021868CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000021869CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000021870
cristy01ff9f32012-12-01 18:15:29 +000021871# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000021872MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000021873if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000021874 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000021875fi
cristy01ff9f32012-12-01 18:15:29 +000021876
21877
cristy3ed852e2009-09-05 21:47:34 +000021878# Set pixel cache threshold
21879
21880# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021881if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021882 withval=$with_cache; with_cache=$withval
21883else
21884 with_cache=''
21885fi
21886
21887
21888if test "$with_cache" != ''; then
21889
21890cat >>confdefs.h <<_ACEOF
21891#define PixelCacheThreshold $with_cache
21892_ACEOF
21893
21894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21895fi
21896
21897# Disable/Enable support for full delegate paths
21898
21899# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021900if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021901 withval=$with_frozenpaths; with_frozenpaths=$withval
21902else
21903 with_frozenpaths='no'
21904fi
21905
21906
21907# Enable build/install of Magick++
21908
21909# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021910if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021911 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21912else
21913 with_magick_plus_plus='yes'
21914fi
21915
21916
cristy3a75f062012-09-08 23:29:40 +000021917# Encode the this name into the shared library.
21918
21919# Check whether --with-package-release-name was given.
21920if test "${with_package_release_name+set}" = set; then :
21921 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21922fi
21923
21924
21925
cristy3ed852e2009-09-05 21:47:34 +000021926# Disable build/install of PerlMagick.
21927
21928# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021929if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021930 withval=$with_perl; with_perl=$withval
21931else
cristyb5f4e2f2010-04-25 00:49:11 +000021932 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021933fi
21934
21935
21936# Options to pass when configuring PerlMagick
21937
21938# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021939if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021940 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021941fi
21942
21943
cristy3ed852e2009-09-05 21:47:34 +000021944
cristy3b0097d2014-11-04 15:34:47 +000021945# Enable jemalloc, object-caching memory allocation library.
21946
21947# Check whether --with-jemalloc was given.
21948if test "${with_jemalloc+set}" = set; then :
21949 withval=$with_jemalloc; with_jemalloc=$withval
21950else
21951 with_jemalloc='no'
21952fi
21953
21954if test "$with_jemalloc" != 'yes' ; then
21955 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
21956fi
21957
cristy3ed852e2009-09-05 21:47:34 +000021958# Enable umem, object-caching memory allocation library.
21959
21960# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021961if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021962 withval=$with_umem; with_umem=$withval
21963else
21964 with_umem='no'
21965fi
21966
21967if test "$with_umem" != 'yes' ; then
21968 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21969fi
21970
21971#
21972# Specify path to shared libstdc++ if not in normal location
21973#
21974
21975# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021976if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021977 withval=$with_libstdc; with_libstdc=$withval
21978else
21979 with_libstdc=''
21980fi
21981
21982
21983if test "$with_libstdc" != ''; then
21984 if test -d "$with_libstdc"; then
21985 LIBSTDCLDFLAGS="-L$with_libstdc"
21986 fi
21987fi
21988
21989
21990# Does gcc required -traditional?
21991if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021993$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021994if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021995 $as_echo_n "(cached) " >&6
21996else
21997 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021999/* end confdefs.h. */
22000#include <sgtty.h>
22001Autoconf TIOCGETP
22002_ACEOF
22003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022004 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022005 ac_cv_prog_gcc_traditional=yes
22006else
22007 ac_cv_prog_gcc_traditional=no
22008fi
22009rm -f conftest*
22010
22011
22012 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022014/* end confdefs.h. */
22015#include <termio.h>
22016Autoconf TCGETA
22017_ACEOF
22018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022019 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022020 ac_cv_prog_gcc_traditional=yes
22021fi
22022rm -f conftest*
22023
22024 fi
22025fi
cristy8b350f62009-11-15 23:12:43 +000022026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022027$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22028 if test $ac_cv_prog_gcc_traditional = yes; then
22029 CC="$CC -traditional"
22030 fi
22031fi
22032
22033
22034########
22035#
22036# Set defines required to build DLLs and modules using MinGW
22037#
22038########
22039# These options are set for multi-thread DLL module build
22040# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22041# module: _DLL
22042# executable/Magick++: _DLL _MAGICKMOD_
22043MODULE_EXTRA_CPPFLAGS=''
22044LIBRARY_EXTRA_CPPFLAGS=''
22045if test "${native_win32_build}" = 'yes'; then
22046 if test "${libtool_build_shared_libs}" = 'yes'; then
22047 CPPFLAGS="$CPPFLAGS -D_DLL"
22048 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22049 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22050 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022051 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022052 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22053 else
22054 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22055 fi
22056 else
22057 CPPFLAGS="$CPPFLAGS -D_LIB"
22058 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22059 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22060 fi
22061 if test "$with_threads" = 'yes'; then
22062 CPPFLAGS="$CPPFLAGS -D_MT"
22063 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22064 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22065 fi
22066fi
22067
22068
22069
22070# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022072$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022073if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022074 $as_echo_n "(cached) " >&6
22075else
cristy8b350f62009-11-15 23:12:43 +000022076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022077/* end confdefs.h. */
22078#include <stdlib.h>
22079#include <stdarg.h>
22080#include <string.h>
22081#include <float.h>
22082
22083int
22084main ()
22085{
22086
22087 ;
22088 return 0;
22089}
22090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022091if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022092 ac_cv_header_stdc=yes
22093else
cristy8b350f62009-11-15 23:12:43 +000022094 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022095fi
cristy3ed852e2009-09-05 21:47:34 +000022096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097
22098if test $ac_cv_header_stdc = yes; then
22099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022101/* end confdefs.h. */
22102#include <string.h>
22103
22104_ACEOF
22105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022106 $EGREP "memchr" >/dev/null 2>&1; then :
22107
cristy3ed852e2009-09-05 21:47:34 +000022108else
22109 ac_cv_header_stdc=no
22110fi
22111rm -f conftest*
22112
22113fi
22114
22115if test $ac_cv_header_stdc = yes; then
22116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022118/* end confdefs.h. */
22119#include <stdlib.h>
22120
22121_ACEOF
22122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022123 $EGREP "free" >/dev/null 2>&1; then :
22124
cristy3ed852e2009-09-05 21:47:34 +000022125else
22126 ac_cv_header_stdc=no
22127fi
22128rm -f conftest*
22129
22130fi
22131
22132if test $ac_cv_header_stdc = yes; then
22133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022134 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022135 :
22136else
cristy8b350f62009-11-15 23:12:43 +000022137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022138/* end confdefs.h. */
22139#include <ctype.h>
22140#include <stdlib.h>
22141#if ((' ' & 0x0FF) == 0x020)
22142# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22143# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22144#else
22145# define ISLOWER(c) \
22146 (('a' <= (c) && (c) <= 'i') \
22147 || ('j' <= (c) && (c) <= 'r') \
22148 || ('s' <= (c) && (c) <= 'z'))
22149# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22150#endif
22151
22152#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22153int
22154main ()
22155{
22156 int i;
22157 for (i = 0; i < 256; i++)
22158 if (XOR (islower (i), ISLOWER (i))
22159 || toupper (i) != TOUPPER (i))
22160 return 2;
22161 return 0;
22162}
22163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022164if ac_fn_c_try_run "$LINENO"; then :
22165
cristy3ed852e2009-09-05 21:47:34 +000022166else
cristy8b350f62009-11-15 23:12:43 +000022167 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022168fi
cristy8b350f62009-11-15 23:12:43 +000022169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22170 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022171fi
22172
cristy3ed852e2009-09-05 21:47:34 +000022173fi
22174fi
cristy8b350f62009-11-15 23:12:43 +000022175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022176$as_echo "$ac_cv_header_stdc" >&6; }
22177if test $ac_cv_header_stdc = yes; then
22178
cristy8b350f62009-11-15 23:12:43 +000022179$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022180
22181fi
22182
22183if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022184 { $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 +000022185 header files. Compilation cannot proceed. Please install the ANSI C
22186 headers and rerun this script." >&5
22187$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22188 header files. Compilation cannot proceed. Please install the ANSI C
22189 headers and rerun this script." >&2;};
22190fi
cristya0b81c32010-01-22 02:54:33 +000022191
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22193$as_echo_n "checking whether to enable assertions... " >&6; }
22194 # Check whether --enable-assert was given.
22195if test "${enable_assert+set}" = set; then :
22196 enableval=$enable_assert; ac_enable_assert=$enableval
22197 if test "x$enableval" = xno; then :
22198
22199$as_echo "#define NDEBUG 1" >>confdefs.h
22200
22201elif test "x$enableval" != xyes; then :
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22203$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22204 ac_enable_assert=yes
22205fi
22206else
22207 ac_enable_assert=yes
22208fi
22209
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22211$as_echo "$ac_enable_assert" >&6; }
22212
cristy3ed852e2009-09-05 21:47:34 +000022213ac_header_dirent=no
22214for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22215 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022217$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022218if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022219 $as_echo_n "(cached) " >&6
22220else
cristy8b350f62009-11-15 23:12:43 +000022221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022222/* end confdefs.h. */
22223#include <sys/types.h>
22224#include <$ac_hdr>
22225
22226int
22227main ()
22228{
22229if ((DIR *) 0)
22230return 0;
22231 ;
22232 return 0;
22233}
22234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022235if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022236 eval "$as_ac_Header=yes"
22237else
cristy8b350f62009-11-15 23:12:43 +000022238 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022239fi
cristy3ed852e2009-09-05 21:47:34 +000022240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22241fi
cristy8b350f62009-11-15 23:12:43 +000022242eval ac_res=\$$as_ac_Header
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022244$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022245if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022246 cat >>confdefs.h <<_ACEOF
22247#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22248_ACEOF
22249
22250ac_header_dirent=$ac_hdr; break
22251fi
22252
22253done
22254# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22255if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022257$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022258if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022259 $as_echo_n "(cached) " >&6
22260else
22261 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022263/* end confdefs.h. */
22264
22265/* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22268#ifdef __cplusplus
22269extern "C"
22270#endif
22271char opendir ();
22272int
22273main ()
22274{
22275return opendir ();
22276 ;
22277 return 0;
22278}
22279_ACEOF
22280for ac_lib in '' dir; do
22281 if test -z "$ac_lib"; then
22282 ac_res="none required"
22283 else
22284 ac_res=-l$ac_lib
22285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22286 fi
cristy8b350f62009-11-15 23:12:43 +000022287 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022288 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022289fi
cristy8b350f62009-11-15 23:12:43 +000022290rm -f core conftest.err conftest.$ac_objext \
22291 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022292 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022293 break
22294fi
22295done
cristyda16f162011-02-19 23:52:17 +000022296if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022297
cristy3ed852e2009-09-05 21:47:34 +000022298else
22299 ac_cv_search_opendir=no
22300fi
22301rm conftest.$ac_ext
22302LIBS=$ac_func_search_save_LIBS
22303fi
cristy8b350f62009-11-15 23:12:43 +000022304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022305$as_echo "$ac_cv_search_opendir" >&6; }
22306ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022307if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22309
22310fi
22311
22312else
cristy8b350f62009-11-15 23:12:43 +000022313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022314$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022315if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022316 $as_echo_n "(cached) " >&6
22317else
22318 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022320/* end confdefs.h. */
22321
22322/* Override any GCC internal prototype to avoid an error.
22323 Use char because int might match the return type of a GCC
22324 builtin and then its argument prototype would still apply. */
22325#ifdef __cplusplus
22326extern "C"
22327#endif
22328char opendir ();
22329int
22330main ()
22331{
22332return opendir ();
22333 ;
22334 return 0;
22335}
22336_ACEOF
22337for ac_lib in '' x; do
22338 if test -z "$ac_lib"; then
22339 ac_res="none required"
22340 else
22341 ac_res=-l$ac_lib
22342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22343 fi
cristy8b350f62009-11-15 23:12:43 +000022344 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022345 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022346fi
cristy8b350f62009-11-15 23:12:43 +000022347rm -f core conftest.err conftest.$ac_objext \
22348 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022349 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022350 break
22351fi
22352done
cristyda16f162011-02-19 23:52:17 +000022353if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022354
cristy3ed852e2009-09-05 21:47:34 +000022355else
22356 ac_cv_search_opendir=no
22357fi
22358rm conftest.$ac_ext
22359LIBS=$ac_func_search_save_LIBS
22360fi
cristy8b350f62009-11-15 23:12:43 +000022361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022362$as_echo "$ac_cv_search_opendir" >&6; }
22363ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022364if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22366
22367fi
22368
22369fi
22370
22371
22372# Check additional headers
cristy03f187e2013-01-24 00:22:19 +000022373for 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 +000022374do :
22375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22376ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022378 cat >>confdefs.h <<_ACEOF
22379#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22380_ACEOF
22381
22382fi
22383
22384done
22385
22386
22387########
22388#
22389# Checks for typedefs, structures, and compiler characteristics.
22390#
22391########
22392
cristy8b350f62009-11-15 23:12:43 +000022393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022394$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022395if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022396 $as_echo_n "(cached) " >&6
22397else
cristy8b350f62009-11-15 23:12:43 +000022398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022399/* end confdefs.h. */
22400
cristy14fefe52012-05-21 00:59:18 +000022401 #include <stdbool.h>
22402 #ifndef bool
22403 "error: bool is not defined"
22404 #endif
22405 #ifndef false
22406 "error: false is not defined"
22407 #endif
22408 #if false
22409 "error: false is not 0"
22410 #endif
22411 #ifndef true
22412 "error: true is not defined"
22413 #endif
22414 #if true != 1
22415 "error: true is not 1"
22416 #endif
22417 #ifndef __bool_true_false_are_defined
22418 "error: __bool_true_false_are_defined is not defined"
22419 #endif
cristy3ed852e2009-09-05 21:47:34 +000022420
cristy14fefe52012-05-21 00:59:18 +000022421 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022422
cristy14fefe52012-05-21 00:59:18 +000022423 char a[true == 1 ? 1 : -1];
22424 char b[false == 0 ? 1 : -1];
22425 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22426 char d[(bool) 0.5 == true ? 1 : -1];
22427 /* See body of main program for 'e'. */
22428 char f[(_Bool) 0.0 == false ? 1 : -1];
22429 char g[true];
22430 char h[sizeof (_Bool)];
22431 char i[sizeof s.t];
22432 enum { j = false, k = true, l = false * true, m = true * 256 };
22433 /* The following fails for
22434 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22435 _Bool n[m];
22436 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22437 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22438 /* Catch a bug in an HP-UX C compiler. See
22439 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22440 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22441 */
22442 _Bool q = true;
22443 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022444
22445int
22446main ()
22447{
22448
cristy14fefe52012-05-21 00:59:18 +000022449 bool e = &s;
22450 *pq |= q;
22451 *pq |= ! q;
22452 /* Refer to every declared value, to avoid compiler optimizations. */
22453 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22454 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022455
22456 ;
22457 return 0;
22458}
22459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022460if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022461 ac_cv_header_stdbool_h=yes
22462else
cristy8b350f62009-11-15 23:12:43 +000022463 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022464fi
cristy3ed852e2009-09-05 21:47:34 +000022465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22466fi
cristy8b350f62009-11-15 23:12:43 +000022467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022468$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022469 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022470if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022471
22472cat >>confdefs.h <<_ACEOF
22473#define HAVE__BOOL 1
22474_ACEOF
22475
22476
22477fi
22478
cristy14fefe52012-05-21 00:59:18 +000022479
cristy3ed852e2009-09-05 21:47:34 +000022480if test $ac_cv_header_stdbool_h = yes; then
22481
cristy8b350f62009-11-15 23:12:43 +000022482$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022483
22484fi
22485
cristy8b350f62009-11-15 23:12:43 +000022486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022487$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022488if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022489 $as_echo_n "(cached) " >&6
22490else
cristy8b350f62009-11-15 23:12:43 +000022491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022492/* end confdefs.h. */
22493
22494int
22495main ()
22496{
22497
22498volatile int x;
22499int * volatile y = (int *) 0;
22500return !x && !y;
22501 ;
22502 return 0;
22503}
22504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022505if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022506 ac_cv_c_volatile=yes
22507else
cristy8b350f62009-11-15 23:12:43 +000022508 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022509fi
cristy3ed852e2009-09-05 21:47:34 +000022510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22511fi
cristy8b350f62009-11-15 23:12:43 +000022512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022513$as_echo "$ac_cv_c_volatile" >&6; }
22514if test $ac_cv_c_volatile = no; then
22515
cristy8b350f62009-11-15 23:12:43 +000022516$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022517
22518fi
22519
cristy8b350f62009-11-15 23:12:43 +000022520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022521$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022522if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022523 $as_echo_n "(cached) " >&6
22524else
cristy8b350f62009-11-15 23:12:43 +000022525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022526/* end confdefs.h. */
22527#define x(y) #y
22528
22529char *s = x(teststring);
22530_ACEOF
22531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022532 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022533 ac_cv_c_stringize=no
22534else
22535 ac_cv_c_stringize=yes
22536fi
22537rm -f conftest*
22538
22539fi
cristy8b350f62009-11-15 23:12:43 +000022540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022541$as_echo "$ac_cv_c_stringize" >&6; }
22542if test $ac_cv_c_stringize = yes; then
22543
cristy8b350f62009-11-15 23:12:43 +000022544$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022545
22546fi
22547
cristy8b350f62009-11-15 23:12:43 +000022548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022549$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022550if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022551 $as_echo_n "(cached) " >&6
22552else
cristy8b350f62009-11-15 23:12:43 +000022553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022554/* end confdefs.h. */
22555#include <sys/types.h>
22556#include <sys/stat.h>
22557
22558#if defined S_ISBLK && defined S_IFDIR
22559extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22560#endif
22561
22562#if defined S_ISBLK && defined S_IFCHR
22563extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22564#endif
22565
22566#if defined S_ISLNK && defined S_IFREG
22567extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22568#endif
22569
22570#if defined S_ISSOCK && defined S_IFREG
22571extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22572#endif
22573
22574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022575if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022576 ac_cv_header_stat_broken=no
22577else
cristy8b350f62009-11-15 23:12:43 +000022578 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022579fi
cristy3ed852e2009-09-05 21:47:34 +000022580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581fi
cristy8b350f62009-11-15 23:12:43 +000022582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022583$as_echo "$ac_cv_header_stat_broken" >&6; }
22584if test $ac_cv_header_stat_broken = yes; then
22585
cristy8b350f62009-11-15 23:12:43 +000022586$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022587
22588fi
22589
cristy8b350f62009-11-15 23:12:43 +000022590{ $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 +000022591$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022592if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022593 $as_echo_n "(cached) " >&6
22594else
cristy8b350f62009-11-15 23:12:43 +000022595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022596/* end confdefs.h. */
22597#include <sys/types.h>
22598#include <sys/time.h>
22599#include <time.h>
22600
22601int
22602main ()
22603{
22604if ((struct tm *) 0)
22605return 0;
22606 ;
22607 return 0;
22608}
22609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022610if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022611 ac_cv_header_time=yes
22612else
cristy8b350f62009-11-15 23:12:43 +000022613 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022614fi
cristy3ed852e2009-09-05 21:47:34 +000022615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616fi
cristy8b350f62009-11-15 23:12:43 +000022617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022618$as_echo "$ac_cv_header_time" >&6; }
22619if test $ac_cv_header_time = yes; then
22620
cristy8b350f62009-11-15 23:12:43 +000022621$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022622
22623fi
22624
cristy8b350f62009-11-15 23:12:43 +000022625{ $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 +000022626$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022627if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022628 $as_echo_n "(cached) " >&6
22629else
cristy8b350f62009-11-15 23:12:43 +000022630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022631/* end confdefs.h. */
22632#include <sys/types.h>
22633#include <time.h>
22634
22635int
22636main ()
22637{
22638struct tm tm;
22639 int *p = &tm.tm_sec;
22640 return !p;
22641 ;
22642 return 0;
22643}
22644_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022645if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022646 ac_cv_struct_tm=time.h
22647else
cristy8b350f62009-11-15 23:12:43 +000022648 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022649fi
cristy3ed852e2009-09-05 21:47:34 +000022650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651fi
cristy8b350f62009-11-15 23:12:43 +000022652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022653$as_echo "$ac_cv_struct_tm" >&6; }
22654if test $ac_cv_struct_tm = sys/time.h; then
22655
cristy8b350f62009-11-15 23:12:43 +000022656$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022657
22658fi
22659
cristy92703d82010-04-26 00:18:18 +000022660ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22661#include <$ac_cv_struct_tm>
22662
22663"
cristyda16f162011-02-19 23:52:17 +000022664if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022665
22666cat >>confdefs.h <<_ACEOF
22667#define HAVE_STRUCT_TM_TM_ZONE 1
22668_ACEOF
22669
22670
22671fi
22672
22673if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22674
22675$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22676
22677else
22678 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22679"
cristyda16f162011-02-19 23:52:17 +000022680if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022681 ac_have_decl=1
22682else
22683 ac_have_decl=0
22684fi
22685
22686cat >>confdefs.h <<_ACEOF
22687#define HAVE_DECL_TZNAME $ac_have_decl
22688_ACEOF
22689
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22691$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022692if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022693 $as_echo_n "(cached) " >&6
22694else
22695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22696/* end confdefs.h. */
22697#include <time.h>
22698#if !HAVE_DECL_TZNAME
22699extern char *tzname[];
22700#endif
22701
22702int
22703main ()
22704{
22705return tzname[0][0];
22706 ;
22707 return 0;
22708}
22709_ACEOF
22710if ac_fn_c_try_link "$LINENO"; then :
22711 ac_cv_var_tzname=yes
22712else
22713 ac_cv_var_tzname=no
22714fi
22715rm -f core conftest.err conftest.$ac_objext \
22716 conftest$ac_exeext conftest.$ac_ext
22717fi
22718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22719$as_echo "$ac_cv_var_tzname" >&6; }
22720 if test $ac_cv_var_tzname = yes; then
22721
22722$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22723
22724 fi
22725fi
22726
cristy8b350f62009-11-15 23:12:43 +000022727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022728$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022729if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022730 $as_echo_n "(cached) " >&6
22731else
22732 echo '#! /bin/cat
22733exit 69
22734' >conftest
22735chmod u+x conftest
22736(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22737if test $? -ne 69; then
22738 ac_cv_sys_interpreter=yes
22739else
22740 ac_cv_sys_interpreter=no
22741fi
22742rm -f conftest
22743fi
cristy8b350f62009-11-15 23:12:43 +000022744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022745$as_echo "$ac_cv_sys_interpreter" >&6; }
22746interpval=$ac_cv_sys_interpreter
22747
22748
cristye80f9cb2013-01-09 01:09:31 +000022749#
22750# Checks for language qualifiers and semantics.
22751#
22752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22753$as_echo_n "checking whether char is unsigned... " >&6; }
22754if ${ac_cv_c_char_unsigned+:} false; then :
22755 $as_echo_n "(cached) " >&6
22756else
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758/* end confdefs.h. */
22759$ac_includes_default
22760int
22761main ()
22762{
22763static int test_array [1 - 2 * !(((char) -1) < 0)];
22764test_array [0] = 0;
22765return test_array [0];
22766
22767 ;
22768 return 0;
22769}
22770_ACEOF
22771if ac_fn_c_try_compile "$LINENO"; then :
22772 ac_cv_c_char_unsigned=no
22773else
22774 ac_cv_c_char_unsigned=yes
22775fi
22776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22777fi
22778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22779$as_echo "$ac_cv_c_char_unsigned" >&6; }
22780if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22781 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22782
22783fi
22784
22785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22786$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22787if ${ac_cv_c_const+:} false; then :
22788 $as_echo_n "(cached) " >&6
22789else
22790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22791/* end confdefs.h. */
22792
22793int
22794main ()
22795{
22796
22797#ifndef __cplusplus
22798 /* Ultrix mips cc rejects this sort of thing. */
22799 typedef int charset[2];
22800 const charset cs = { 0, 0 };
22801 /* SunOS 4.1.1 cc rejects this. */
22802 char const *const *pcpcc;
22803 char **ppc;
22804 /* NEC SVR4.0.2 mips cc rejects this. */
22805 struct point {int x, y;};
22806 static struct point const zero = {0,0};
22807 /* AIX XL C 1.02.0.0 rejects this.
22808 It does not let you subtract one const X* pointer from another in
22809 an arm of an if-expression whose if-part is not a constant
22810 expression */
22811 const char *g = "string";
22812 pcpcc = &g + (g ? g-g : 0);
22813 /* HPUX 7.0 cc rejects these. */
22814 ++pcpcc;
22815 ppc = (char**) pcpcc;
22816 pcpcc = (char const *const *) ppc;
22817 { /* SCO 3.2v4 cc rejects this sort of thing. */
22818 char tx;
22819 char *t = &tx;
22820 char const *s = 0 ? (char *) 0 : (char const *) 0;
22821
22822 *t++ = 0;
22823 if (s) return 0;
22824 }
22825 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22826 int x[] = {25, 17};
22827 const int *foo = &x[0];
22828 ++foo;
22829 }
22830 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22831 typedef const int *iptr;
22832 iptr p = 0;
22833 ++p;
22834 }
22835 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22836 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22837 struct s { int j; const int *ap[3]; } bx;
22838 struct s *b = &bx; b->j = 5;
22839 }
22840 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22841 const int foo = 10;
22842 if (!foo) return 0;
22843 }
22844 return !cs[0] && !zero.x;
22845#endif
22846
22847 ;
22848 return 0;
22849}
22850_ACEOF
22851if ac_fn_c_try_compile "$LINENO"; then :
22852 ac_cv_c_const=yes
22853else
22854 ac_cv_c_const=no
22855fi
22856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857fi
22858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22859$as_echo "$ac_cv_c_const" >&6; }
22860if test $ac_cv_c_const = no; then
22861
22862$as_echo "#define const /**/" >>confdefs.h
22863
22864fi
22865
cristy8b350f62009-11-15 23:12:43 +000022866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022867$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022868if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022869 $as_echo_n "(cached) " >&6
22870else
22871 ac_cv_c_inline=no
22872for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022874/* end confdefs.h. */
22875#ifndef __cplusplus
22876typedef int foo_t;
22877static $ac_kw foo_t static_foo () {return 0; }
22878$ac_kw foo_t foo () {return 0; }
22879#endif
22880
22881_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022882if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022883 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022884fi
cristy3ed852e2009-09-05 21:47:34 +000022885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 test "$ac_cv_c_inline" != no && break
22887done
22888
22889fi
cristy8b350f62009-11-15 23:12:43 +000022890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022891$as_echo "$ac_cv_c_inline" >&6; }
22892
cristy3ed852e2009-09-05 21:47:34 +000022893case $ac_cv_c_inline in
22894 inline | yes) ;;
22895 *)
22896 case $ac_cv_c_inline in
22897 no) ac_val=;;
22898 *) ac_val=$ac_cv_c_inline;;
22899 esac
22900 cat >>confdefs.h <<_ACEOF
22901#ifndef __cplusplus
22902#define inline $ac_val
22903#endif
22904_ACEOF
22905 ;;
22906esac
22907
cristy8b350f62009-11-15 23:12:43 +000022908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022909$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022910if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022911 $as_echo_n "(cached) " >&6
22912else
22913 ac_cv_c_restrict=no
22914 # The order here caters to the fact that C++ does not require restrict.
22915 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022917/* end confdefs.h. */
22918typedef int * int_ptr;
22919 int foo (int_ptr $ac_kw ip) {
22920 return ip[0];
22921 }
22922int
22923main ()
22924{
22925int s[1];
22926 int * $ac_kw t = s;
22927 t[0] = 0;
22928 return foo(t)
22929 ;
22930 return 0;
22931}
22932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022933if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022934 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022935fi
cristy3ed852e2009-09-05 21:47:34 +000022936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 test "$ac_cv_c_restrict" != no && break
22938 done
22939
22940fi
cristy8b350f62009-11-15 23:12:43 +000022941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022942$as_echo "$ac_cv_c_restrict" >&6; }
22943
cristy3ed852e2009-09-05 21:47:34 +000022944 case $ac_cv_c_restrict in
22945 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022946 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022947 ;;
22948 *) cat >>confdefs.h <<_ACEOF
22949#define restrict $ac_cv_c_restrict
22950_ACEOF
22951 ;;
22952 esac
22953
cristye80f9cb2013-01-09 01:09:31 +000022954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22955$as_echo_n "checking for working volatile... " >&6; }
22956if ${ac_cv_c_volatile+:} false; then :
22957 $as_echo_n "(cached) " >&6
22958else
22959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22960/* end confdefs.h. */
22961
22962int
22963main ()
22964{
22965
22966volatile int x;
22967int * volatile y = (int *) 0;
22968return !x && !y;
22969 ;
22970 return 0;
22971}
22972_ACEOF
22973if ac_fn_c_try_compile "$LINENO"; then :
22974 ac_cv_c_volatile=yes
22975else
22976 ac_cv_c_volatile=no
22977fi
22978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979fi
22980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22981$as_echo "$ac_cv_c_volatile" >&6; }
22982if test $ac_cv_c_volatile = no; then
22983
22984$as_echo "#define volatile /**/" >>confdefs.h
22985
22986fi
22987
cristy3ed852e2009-09-05 21:47:34 +000022988
22989# If words are stored with the most significant byte first (like
22990# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022992$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022993if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022994 $as_echo_n "(cached) " >&6
22995else
22996 ac_cv_c_bigendian=unknown
22997 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022999/* end confdefs.h. */
23000#ifndef __APPLE_CC__
23001 not a universal capable compiler
23002 #endif
23003 typedef int dummy;
23004
23005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023006if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023007
23008 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023009 # there are at least two -arch flags with different values.
23010 ac_arch=
23011 ac_prev=
23012 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23013 if test -n "$ac_prev"; then
23014 case $ac_word in
23015 i?86 | x86_64 | ppc | ppc64)
23016 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23017 ac_arch=$ac_word
23018 else
23019 ac_cv_c_bigendian=universal
23020 break
23021 fi
23022 ;;
23023 esac
23024 ac_prev=
23025 elif test "x$ac_word" = "x-arch"; then
23026 ac_prev=arch
23027 fi
23028 done
cristy3ed852e2009-09-05 21:47:34 +000023029fi
cristy3ed852e2009-09-05 21:47:34 +000023030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 if test $ac_cv_c_bigendian = unknown; then
23032 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023034/* end confdefs.h. */
23035#include <sys/types.h>
23036 #include <sys/param.h>
23037
23038int
23039main ()
23040{
23041#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23042 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23043 && LITTLE_ENDIAN)
23044 bogus endian macros
23045 #endif
23046
23047 ;
23048 return 0;
23049}
23050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023051if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023052 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023054/* end confdefs.h. */
23055#include <sys/types.h>
23056 #include <sys/param.h>
23057
23058int
23059main ()
23060{
23061#if BYTE_ORDER != BIG_ENDIAN
23062 not big endian
23063 #endif
23064
23065 ;
23066 return 0;
23067}
23068_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023069if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023070 ac_cv_c_bigendian=yes
23071else
cristy8b350f62009-11-15 23:12:43 +000023072 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023073fi
cristy3ed852e2009-09-05 21:47:34 +000023074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023075fi
cristy3ed852e2009-09-05 21:47:34 +000023076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077 fi
23078 if test $ac_cv_c_bigendian = unknown; then
23079 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023081/* end confdefs.h. */
23082#include <limits.h>
23083
23084int
23085main ()
23086{
23087#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23088 bogus endian macros
23089 #endif
23090
23091 ;
23092 return 0;
23093}
23094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023095if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023096 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023098/* end confdefs.h. */
23099#include <limits.h>
23100
23101int
23102main ()
23103{
23104#ifndef _BIG_ENDIAN
23105 not big endian
23106 #endif
23107
23108 ;
23109 return 0;
23110}
23111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023112if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023113 ac_cv_c_bigendian=yes
23114else
cristy8b350f62009-11-15 23:12:43 +000023115 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023116fi
cristy3ed852e2009-09-05 21:47:34 +000023117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023118fi
cristy3ed852e2009-09-05 21:47:34 +000023119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23120 fi
23121 if test $ac_cv_c_bigendian = unknown; then
23122 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023123 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023124 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023126/* end confdefs.h. */
23127short int ascii_mm[] =
23128 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23129 short int ascii_ii[] =
23130 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23131 int use_ascii (int i) {
23132 return ascii_mm[i] + ascii_ii[i];
23133 }
23134 short int ebcdic_ii[] =
23135 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23136 short int ebcdic_mm[] =
23137 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23138 int use_ebcdic (int i) {
23139 return ebcdic_mm[i] + ebcdic_ii[i];
23140 }
23141 extern int foo;
23142
23143int
23144main ()
23145{
23146return use_ascii (foo) == use_ebcdic (foo);
23147 ;
23148 return 0;
23149}
23150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023151if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023152 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23153 ac_cv_c_bigendian=yes
23154 fi
23155 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23156 if test "$ac_cv_c_bigendian" = unknown; then
23157 ac_cv_c_bigendian=no
23158 else
23159 # finding both strings is unlikely to happen, but who knows?
23160 ac_cv_c_bigendian=unknown
23161 fi
23162 fi
cristy3ed852e2009-09-05 21:47:34 +000023163fi
cristy3ed852e2009-09-05 21:47:34 +000023164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165else
cristy8b350f62009-11-15 23:12:43 +000023166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023167/* end confdefs.h. */
23168$ac_includes_default
23169int
23170main ()
23171{
23172
23173 /* Are we little or big endian? From Harbison&Steele. */
23174 union
23175 {
23176 long int l;
23177 char c[sizeof (long int)];
23178 } u;
23179 u.l = 1;
23180 return u.c[sizeof (long int) - 1] == 1;
23181
23182 ;
23183 return 0;
23184}
23185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023186if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023187 ac_cv_c_bigendian=no
23188else
cristy8b350f62009-11-15 23:12:43 +000023189 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023190fi
cristy8b350f62009-11-15 23:12:43 +000023191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23192 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023193fi
23194
cristy3ed852e2009-09-05 21:47:34 +000023195 fi
23196fi
cristy8b350f62009-11-15 23:12:43 +000023197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023198$as_echo "$ac_cv_c_bigendian" >&6; }
23199 case $ac_cv_c_bigendian in #(
23200 yes)
cristy8b350f62009-11-15 23:12:43 +000023201 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023202;; #(
23203 no)
23204 ;; #(
23205 universal)
23206
cristy8b350f62009-11-15 23:12:43 +000023207$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023208
23209 ;; #(
23210 *)
cristy98dddb52010-11-04 00:30:15 +000023211 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023212 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023213 esac
23214
23215
cristy501c8042011-05-26 17:46:28 +000023216# Define to a suitable type, if standard headers do not define it.
23217ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23218case $ac_cv_c_int8_t in #(
23219 no|yes) ;; #(
23220 *)
cristy3ed852e2009-09-05 21:47:34 +000023221
23222cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023223#define int8_t $ac_cv_c_int8_t
23224_ACEOF
23225;;
23226esac
23227
23228ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23229case $ac_cv_c_int16_t in #(
23230 no|yes) ;; #(
23231 *)
23232
23233cat >>confdefs.h <<_ACEOF
23234#define int16_t $ac_cv_c_int16_t
23235_ACEOF
23236;;
23237esac
23238
23239ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23240case $ac_cv_c_int32_t in #(
23241 no|yes) ;; #(
23242 *)
23243
23244cat >>confdefs.h <<_ACEOF
23245#define int32_t $ac_cv_c_int32_t
23246_ACEOF
23247;;
23248esac
23249
23250ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23251case $ac_cv_c_int64_t in #(
23252 no|yes) ;; #(
23253 *)
23254
23255cat >>confdefs.h <<_ACEOF
23256#define int64_t $ac_cv_c_int64_t
23257_ACEOF
23258;;
23259esac
23260
23261
cristy045228a2013-06-23 11:00:16 +000023262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23263$as_echo_n "checking for unsigned long long int... " >&6; }
23264if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023265 $as_echo_n "(cached) " >&6
23266else
cristy045228a2013-06-23 11:00:16 +000023267 ac_cv_type_unsigned_long_long_int=yes
23268 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023270/* end confdefs.h. */
23271
23272 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023273 implementations with broken preprocessors. Perhaps this can
23274 be revisited in 2012. In the meantime, code should not expect
23275 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023276 /* Test literals. */
23277 long long int ll = 9223372036854775807ll;
23278 long long int nll = -9223372036854775807LL;
23279 unsigned long long int ull = 18446744073709551615ULL;
23280 /* Test constant expressions. */
23281 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023282 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023283 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023284 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023285 int i = 63;
23286int
23287main ()
23288{
23289/* Test availability of runtime routines for shift and division. */
23290 long long int llmax = 9223372036854775807ll;
23291 unsigned long long int ullmax = 18446744073709551615ull;
23292 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023293 | (llmax / ll) | (llmax % ll)
23294 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23295 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023296 ;
23297 return 0;
23298}
23299
23300_ACEOF
23301if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023302
23303else
23304 ac_cv_type_unsigned_long_long_int=no
23305fi
23306rm -f core conftest.err conftest.$ac_objext \
23307 conftest$ac_exeext conftest.$ac_ext
23308 fi
23309fi
23310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23311$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23312 if test $ac_cv_type_unsigned_long_long_int = yes; then
23313
23314$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23315
23316 fi
23317
23318
23319
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23321$as_echo_n "checking for long long int... " >&6; }
23322if ${ac_cv_type_long_long_int+:} false; then :
23323 $as_echo_n "(cached) " >&6
23324else
cristy501c8042011-05-26 17:46:28 +000023325 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023326 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023327 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23328 if test $ac_cv_type_long_long_int = yes; then
23329 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023330 :
cristy501c8042011-05-26 17:46:28 +000023331else
23332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23333/* end confdefs.h. */
23334#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023335 #ifndef LLONG_MAX
23336 # define HALF \
23337 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23338 # define LLONG_MAX (HALF - 1 + HALF)
23339 #endif
cristy501c8042011-05-26 17:46:28 +000023340int
23341main ()
23342{
23343long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023344 int i;
23345 for (i = 0; ; i++)
23346 {
23347 long long int m = n << i;
23348 if (m >> i != n)
23349 return 1;
23350 if (LLONG_MAX / 2 < m)
23351 break;
23352 }
23353 return 0;
cristy501c8042011-05-26 17:46:28 +000023354 ;
23355 return 0;
23356}
23357_ACEOF
23358if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023359
cristy501c8042011-05-26 17:46:28 +000023360else
23361 ac_cv_type_long_long_int=no
23362fi
23363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23364 conftest.$ac_objext conftest.beam conftest.$ac_ext
23365fi
23366
cristy5ed9c6e2013-07-14 21:20:31 +000023367 fi
cristy045228a2013-06-23 11:00:16 +000023368 fi
cristy501c8042011-05-26 17:46:28 +000023369fi
23370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23371$as_echo "$ac_cv_type_long_long_int" >&6; }
23372 if test $ac_cv_type_long_long_int = yes; then
23373
23374$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23375
23376 fi
23377
23378
23379
23380 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23381if test "x$ac_cv_type_intmax_t" = xyes; then :
23382
23383$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23384
23385else
23386 test $ac_cv_type_long_long_int = yes \
23387 && ac_type='long long int' \
23388 || ac_type='long int'
23389
23390cat >>confdefs.h <<_ACEOF
23391#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023392_ACEOF
23393
23394fi
23395
23396
cristy501c8042011-05-26 17:46:28 +000023397
23398 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23399if test "x$ac_cv_type_intptr_t" = xyes; then :
23400
23401$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023402
cristy3ed852e2009-09-05 21:47:34 +000023403else
cristy501c8042011-05-26 17:46:28 +000023404 for ac_type in 'int' 'long int' 'long long int'; do
23405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23406/* end confdefs.h. */
23407$ac_includes_default
23408int
23409main ()
23410{
23411static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023412test_array [0] = 0;
23413return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023414
23415 ;
23416 return 0;
23417}
23418_ACEOF
23419if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023420
23421cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023422#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023423_ACEOF
23424
cristy501c8042011-05-26 17:46:28 +000023425 ac_type=
23426fi
23427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 test -z "$ac_type" && break
23429 done
cristy3ed852e2009-09-05 21:47:34 +000023430fi
23431
23432
cristy3ed852e2009-09-05 21:47:34 +000023433
cristy501c8042011-05-26 17:46:28 +000023434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23435$as_echo_n "checking for long double... " >&6; }
23436if ${ac_cv_type_long_double+:} false; then :
23437 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023438else
cristy501c8042011-05-26 17:46:28 +000023439 if test "$GCC" = yes; then
23440 ac_cv_type_long_double=yes
23441 else
23442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23443/* end confdefs.h. */
23444/* The Stardent Vistra knows sizeof (long double), but does
23445 not support it. */
23446 long double foo = 0.0L;
23447int
23448main ()
23449{
23450static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23451 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023452test_array [0] = 0;
23453return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023454
cristy501c8042011-05-26 17:46:28 +000023455 ;
23456 return 0;
23457}
cristy3ed852e2009-09-05 21:47:34 +000023458_ACEOF
cristy501c8042011-05-26 17:46:28 +000023459if ac_fn_c_try_compile "$LINENO"; then :
23460 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023461else
cristy501c8042011-05-26 17:46:28 +000023462 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023463fi
cristy501c8042011-05-26 17:46:28 +000023464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23465 fi
cristy3ed852e2009-09-05 21:47:34 +000023466fi
cristy501c8042011-05-26 17:46:28 +000023467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23468$as_echo "$ac_cv_type_long_double" >&6; }
23469 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023470
cristy501c8042011-05-26 17:46:28 +000023471$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023472
cristy501c8042011-05-26 17:46:28 +000023473 fi
23474
cristy3ed852e2009-09-05 21:47:34 +000023475
cristy8b350f62009-11-15 23:12:43 +000023476 { $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 +000023477$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023478if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023479 $as_echo_n "(cached) " >&6
23480else
cristy8b350f62009-11-15 23:12:43 +000023481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023482/* end confdefs.h. */
23483#include <float.h>
23484 long double const a[] =
23485 {
23486 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23487 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23488 };
23489 long double
23490 f (long double x)
23491 {
23492 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23493 + (x ? f (x) : 'c'));
23494 }
23495
23496int
23497main ()
23498{
23499static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23500 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23501 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23502 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23503 && (int) LDBL_EPSILON == 0
23504 )];
cristy14fefe52012-05-21 00:59:18 +000023505test_array [0] = 0;
23506return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023507
23508 ;
23509 return 0;
23510}
23511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023512if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023513 ac_cv_type_long_double_wider=yes
23514else
cristy8b350f62009-11-15 23:12:43 +000023515 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023516fi
cristy3ed852e2009-09-05 21:47:34 +000023517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23518fi
cristy8b350f62009-11-15 23:12:43 +000023519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023520$as_echo "$ac_cv_type_long_double_wider" >&6; }
23521 if test $ac_cv_type_long_double_wider = yes; then
23522
cristy8b350f62009-11-15 23:12:43 +000023523$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023524
23525 fi
23526
23527
cristy045228a2013-06-23 11:00:16 +000023528
cristy501c8042011-05-26 17:46:28 +000023529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23530$as_echo_n "checking for long long int... " >&6; }
23531if ${ac_cv_type_long_long_int+:} false; then :
23532 $as_echo_n "(cached) " >&6
23533else
cristy501c8042011-05-26 17:46:28 +000023534 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023535 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023536 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23537 if test $ac_cv_type_long_long_int = yes; then
23538 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023539 :
cristy501c8042011-05-26 17:46:28 +000023540else
23541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542/* end confdefs.h. */
23543#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023544 #ifndef LLONG_MAX
23545 # define HALF \
23546 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23547 # define LLONG_MAX (HALF - 1 + HALF)
23548 #endif
cristy501c8042011-05-26 17:46:28 +000023549int
23550main ()
23551{
23552long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023553 int i;
23554 for (i = 0; ; i++)
23555 {
23556 long long int m = n << i;
23557 if (m >> i != n)
23558 return 1;
23559 if (LLONG_MAX / 2 < m)
23560 break;
23561 }
23562 return 0;
cristy501c8042011-05-26 17:46:28 +000023563 ;
23564 return 0;
23565}
23566_ACEOF
23567if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023568
cristy501c8042011-05-26 17:46:28 +000023569else
23570 ac_cv_type_long_long_int=no
23571fi
23572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23573 conftest.$ac_objext conftest.beam conftest.$ac_ext
23574fi
23575
cristy5ed9c6e2013-07-14 21:20:31 +000023576 fi
cristy045228a2013-06-23 11:00:16 +000023577 fi
cristy501c8042011-05-26 17:46:28 +000023578fi
23579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23580$as_echo "$ac_cv_type_long_long_int" >&6; }
23581 if test $ac_cv_type_long_long_int = yes; then
23582
23583$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23584
23585 fi
23586
23587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23588$as_echo_n "checking for mbstate_t... " >&6; }
23589if ${ac_cv_type_mbstate_t+:} false; then :
23590 $as_echo_n "(cached) " >&6
23591else
23592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23593/* end confdefs.h. */
23594$ac_includes_default
23595# include <wchar.h>
23596int
23597main ()
23598{
23599mbstate_t x; return sizeof x;
23600 ;
23601 return 0;
23602}
23603_ACEOF
23604if ac_fn_c_try_compile "$LINENO"; then :
23605 ac_cv_type_mbstate_t=yes
23606else
23607 ac_cv_type_mbstate_t=no
23608fi
23609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610fi
23611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23612$as_echo "$ac_cv_type_mbstate_t" >&6; }
23613 if test $ac_cv_type_mbstate_t = yes; then
23614
23615$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23616
23617 else
23618
23619$as_echo "#define mbstate_t int" >>confdefs.h
23620
23621 fi
23622ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23623if test "x$ac_cv_type_mode_t" = xyes; then :
23624
23625else
23626
23627cat >>confdefs.h <<_ACEOF
23628#define mode_t int
23629_ACEOF
23630
23631fi
23632
23633ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23634if test "x$ac_cv_type_off_t" = xyes; then :
23635
23636else
23637
23638cat >>confdefs.h <<_ACEOF
23639#define off_t long int
23640_ACEOF
23641
23642fi
23643
23644ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23645if test "x$ac_cv_type_pid_t" = xyes; then :
23646
23647else
23648
23649cat >>confdefs.h <<_ACEOF
23650#define pid_t int
23651_ACEOF
23652
23653fi
23654
23655ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23656if test "x$ac_cv_type_size_t" = xyes; then :
23657
23658else
23659
23660cat >>confdefs.h <<_ACEOF
23661#define size_t unsigned int
23662_ACEOF
23663
23664fi
23665
23666ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23667if test "x$ac_cv_type_ssize_t" = xyes; then :
23668
23669else
23670
23671cat >>confdefs.h <<_ACEOF
23672#define ssize_t int
23673_ACEOF
23674
23675fi
23676
23677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23678$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23679if ${ac_cv_type_uid_t+:} false; then :
23680 $as_echo_n "(cached) " >&6
23681else
23682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683/* end confdefs.h. */
23684#include <sys/types.h>
23685
23686_ACEOF
23687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23688 $EGREP "uid_t" >/dev/null 2>&1; then :
23689 ac_cv_type_uid_t=yes
23690else
23691 ac_cv_type_uid_t=no
23692fi
23693rm -f conftest*
23694
23695fi
23696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23697$as_echo "$ac_cv_type_uid_t" >&6; }
23698if test $ac_cv_type_uid_t = no; then
23699
23700$as_echo "#define uid_t int" >>confdefs.h
23701
23702
23703$as_echo "#define gid_t int" >>confdefs.h
23704
23705fi
23706
23707ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23708case $ac_cv_c_uint8_t in #(
23709 no|yes) ;; #(
23710 *)
23711
23712$as_echo "#define _UINT8_T 1" >>confdefs.h
23713
23714
23715cat >>confdefs.h <<_ACEOF
23716#define uint8_t $ac_cv_c_uint8_t
23717_ACEOF
23718;;
23719 esac
23720
23721ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23722case $ac_cv_c_uint16_t in #(
23723 no|yes) ;; #(
23724 *)
23725
23726
23727cat >>confdefs.h <<_ACEOF
23728#define uint16_t $ac_cv_c_uint16_t
23729_ACEOF
23730;;
23731 esac
23732
23733ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23734case $ac_cv_c_uint32_t in #(
23735 no|yes) ;; #(
23736 *)
23737
23738$as_echo "#define _UINT32_T 1" >>confdefs.h
23739
23740
23741cat >>confdefs.h <<_ACEOF
23742#define uint32_t $ac_cv_c_uint32_t
23743_ACEOF
23744;;
23745 esac
23746
23747ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23748case $ac_cv_c_uint64_t in #(
23749 no|yes) ;; #(
23750 *)
23751
23752$as_echo "#define _UINT64_T 1" >>confdefs.h
23753
23754
23755cat >>confdefs.h <<_ACEOF
23756#define uint64_t $ac_cv_c_uint64_t
23757_ACEOF
23758;;
23759 esac
23760
23761
cristy501c8042011-05-26 17:46:28 +000023762
23763 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23764if test "x$ac_cv_type_uintmax_t" = xyes; then :
23765
23766$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23767
23768else
23769 test $ac_cv_type_unsigned_long_long_int = yes \
23770 && ac_type='unsigned long long int' \
23771 || ac_type='unsigned long int'
23772
23773cat >>confdefs.h <<_ACEOF
23774#define uintmax_t $ac_type
23775_ACEOF
23776
23777fi
23778
23779
23780
23781 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23782if test "x$ac_cv_type_uintptr_t" = xyes; then :
23783
23784$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23785
23786else
23787 for ac_type in 'unsigned int' 'unsigned long int' \
23788 'unsigned long long int'; do
23789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23790/* end confdefs.h. */
23791$ac_includes_default
23792int
23793main ()
23794{
23795static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023796test_array [0] = 0;
23797return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023798
23799 ;
23800 return 0;
23801}
23802_ACEOF
23803if ac_fn_c_try_compile "$LINENO"; then :
23804
23805cat >>confdefs.h <<_ACEOF
23806#define uintptr_t $ac_type
23807_ACEOF
23808
23809 ac_type=
23810fi
23811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23812 test -z "$ac_type" && break
23813 done
23814fi
23815
23816
23817
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23819$as_echo_n "checking for unsigned long long int... " >&6; }
23820if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23821 $as_echo_n "(cached) " >&6
23822else
cristy045228a2013-06-23 11:00:16 +000023823 ac_cv_type_unsigned_long_long_int=yes
23824 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023826/* end confdefs.h. */
23827
23828 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023829 implementations with broken preprocessors. Perhaps this can
23830 be revisited in 2012. In the meantime, code should not expect
23831 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023832 /* Test literals. */
23833 long long int ll = 9223372036854775807ll;
23834 long long int nll = -9223372036854775807LL;
23835 unsigned long long int ull = 18446744073709551615ULL;
23836 /* Test constant expressions. */
23837 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023838 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023839 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023840 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023841 int i = 63;
23842int
23843main ()
23844{
23845/* Test availability of runtime routines for shift and division. */
23846 long long int llmax = 9223372036854775807ll;
23847 unsigned long long int ullmax = 18446744073709551615ull;
23848 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023849 | (llmax / ll) | (llmax % ll)
23850 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23851 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023852 ;
23853 return 0;
23854}
23855
23856_ACEOF
23857if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023858
cristy501c8042011-05-26 17:46:28 +000023859else
23860 ac_cv_type_unsigned_long_long_int=no
23861fi
23862rm -f core conftest.err conftest.$ac_objext \
23863 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000023864 fi
cristy501c8042011-05-26 17:46:28 +000023865fi
23866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23867$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23868 if test $ac_cv_type_unsigned_long_long_int = yes; then
23869
23870$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23871
23872 fi
23873
23874
cristy708922a2015-05-17 02:33:56 +000023875ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
23876"
cristy98beafc2015-05-14 19:55:55 +000023877if test "x$ac_cv_type_locale_t" = xyes; then :
23878
23879cat >>confdefs.h <<_ACEOF
23880#define HAVE_LOCALE_T 1
23881_ACEOF
23882
23883
23884fi
23885
23886
cristyfec31822013-05-23 12:32:12 +000023887# Float_t and double_t are intended to be the the most efficient type.
23888ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
23889"
23890if test "x$ac_cv_type_float_t" = xyes; then :
23891
23892cat >>confdefs.h <<_ACEOF
23893#define HAVE_FLOAT_T 1
23894_ACEOF
23895
23896
23897fi
23898
23899ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
23900"
23901if test "x$ac_cv_type_double_t" = xyes; then :
23902
23903cat >>confdefs.h <<_ACEOF
23904#define HAVE_DOUBLE_T 1
23905_ACEOF
23906
23907
23908fi
23909
23910# The cast to long int works around a bug in the HP C Compiler
23911# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23912# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23913# This bug is HP SR number 8606223364.
23914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
23915$as_echo_n "checking size of float_t... " >&6; }
23916if ${ac_cv_sizeof_float_t+:} false; then :
23917 $as_echo_n "(cached) " >&6
23918else
23919 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
23920"; then :
23921
23922else
23923 if test "$ac_cv_type_float_t" = yes; then
23924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23926as_fn_error 77 "cannot compute sizeof (float_t)
23927See \`config.log' for more details" "$LINENO" 5; }
23928 else
23929 ac_cv_sizeof_float_t=0
23930 fi
23931fi
23932
23933fi
23934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
23935$as_echo "$ac_cv_sizeof_float_t" >&6; }
23936
23937
23938
23939cat >>confdefs.h <<_ACEOF
23940#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
23941_ACEOF
23942
23943
23944# The cast to long int works around a bug in the HP C Compiler
23945# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23946# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23947# This bug is HP SR number 8606223364.
23948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
23949$as_echo_n "checking size of double_t... " >&6; }
23950if ${ac_cv_sizeof_double_t+:} false; then :
23951 $as_echo_n "(cached) " >&6
23952else
23953 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
23954"; then :
23955
23956else
23957 if test "$ac_cv_type_double_t" = yes; then
23958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23960as_fn_error 77 "cannot compute sizeof (double_t)
23961See \`config.log' for more details" "$LINENO" 5; }
23962 else
23963 ac_cv_sizeof_double_t=0
23964 fi
23965fi
23966
23967fi
23968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23969$as_echo "$ac_cv_sizeof_double_t" >&6; }
23970
23971
23972
23973cat >>confdefs.h <<_ACEOF
23974#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23975_ACEOF
23976
23977
23978
cristy9b86f202012-11-28 21:55:35 +000023979# Get size of float, double and long double for comparaison.
23980# The cast to long int works around a bug in the HP C Compiler
23981# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23982# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23983# This bug is HP SR number 8606223364.
23984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23985$as_echo_n "checking size of float... " >&6; }
23986if ${ac_cv_sizeof_float+:} false; then :
23987 $as_echo_n "(cached) " >&6
23988else
23989 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23990
23991else
23992 if test "$ac_cv_type_float" = yes; then
23993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23995as_fn_error 77 "cannot compute sizeof (float)
23996See \`config.log' for more details" "$LINENO" 5; }
23997 else
23998 ac_cv_sizeof_float=0
23999 fi
24000fi
24001
24002fi
24003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24004$as_echo "$ac_cv_sizeof_float" >&6; }
24005
24006
24007
24008cat >>confdefs.h <<_ACEOF
24009#define SIZEOF_FLOAT $ac_cv_sizeof_float
24010_ACEOF
24011
24012
24013# The cast to long int works around a bug in the HP C Compiler
24014# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24015# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24016# This bug is HP SR number 8606223364.
24017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24018$as_echo_n "checking size of double... " >&6; }
24019if ${ac_cv_sizeof_double+:} false; then :
24020 $as_echo_n "(cached) " >&6
24021else
24022 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24023
24024else
24025 if test "$ac_cv_type_double" = yes; then
24026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24028as_fn_error 77 "cannot compute sizeof (double)
24029See \`config.log' for more details" "$LINENO" 5; }
24030 else
24031 ac_cv_sizeof_double=0
24032 fi
24033fi
24034
24035fi
24036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24037$as_echo "$ac_cv_sizeof_double" >&6; }
24038
24039
24040
24041cat >>confdefs.h <<_ACEOF
24042#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24043_ACEOF
24044
24045
cristy9e2b6242014-03-25 11:49:41 +000024046# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024047# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24048# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24049# This bug is HP SR number 8606223364.
24050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24051$as_echo_n "checking size of long double... " >&6; }
24052if ${ac_cv_sizeof_long_double+:} false; then :
24053 $as_echo_n "(cached) " >&6
24054else
24055 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24056
24057else
24058 if test "$ac_cv_type_long_double" = yes; then
24059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24061as_fn_error 77 "cannot compute sizeof (long double)
24062See \`config.log' for more details" "$LINENO" 5; }
24063 else
24064 ac_cv_sizeof_long_double=0
24065 fi
24066fi
24067
24068fi
24069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24070$as_echo "$ac_cv_sizeof_long_double" >&6; }
24071
24072
24073
24074cat >>confdefs.h <<_ACEOF
24075#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24076_ACEOF
24077
24078
cristyf0cf9a22012-10-24 12:05:01 +000024079
cristy3ed852e2009-09-05 21:47:34 +000024080# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24081# The cast to long int works around a bug in the HP C Compiler
24082# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24083# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24084# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024086$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024087if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024088 $as_echo_n "(cached) " >&6
24089else
cristy8b350f62009-11-15 23:12:43 +000024090 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 +000024091
cristy3ed852e2009-09-05 21:47:34 +000024092else
cristy8b350f62009-11-15 23:12:43 +000024093 if test "$ac_cv_type_signed_short" = yes; then
24094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024096as_fn_error 77 "cannot compute sizeof (signed short)
24097See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024098 else
24099 ac_cv_sizeof_signed_short=0
24100 fi
24101fi
cristy8b350f62009-11-15 23:12:43 +000024102
cristy3ed852e2009-09-05 21:47:34 +000024103fi
cristy8b350f62009-11-15 23:12:43 +000024104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024105$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24106
24107
24108
24109cat >>confdefs.h <<_ACEOF
24110#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24111_ACEOF
24112
24113
24114
24115# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24116# The cast to long int works around a bug in the HP C Compiler
24117# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24118# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24119# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024121$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024122if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024123 $as_echo_n "(cached) " >&6
24124else
cristy8b350f62009-11-15 23:12:43 +000024125 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 +000024126
cristy3ed852e2009-09-05 21:47:34 +000024127else
cristy8b350f62009-11-15 23:12:43 +000024128 if test "$ac_cv_type_unsigned_short" = yes; then
24129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024131as_fn_error 77 "cannot compute sizeof (unsigned short)
24132See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024133 else
24134 ac_cv_sizeof_unsigned_short=0
24135 fi
24136fi
cristy8b350f62009-11-15 23:12:43 +000024137
cristy3ed852e2009-09-05 21:47:34 +000024138fi
cristy8b350f62009-11-15 23:12:43 +000024139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024140$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24141
24142
24143
24144cat >>confdefs.h <<_ACEOF
24145#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24146_ACEOF
24147
24148
24149
24150# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24151# The cast to long int works around a bug in the HP C Compiler
24152# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24153# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24154# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024156$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024157if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024158 $as_echo_n "(cached) " >&6
24159else
cristy8b350f62009-11-15 23:12:43 +000024160 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 +000024161
cristy3ed852e2009-09-05 21:47:34 +000024162else
cristy8b350f62009-11-15 23:12:43 +000024163 if test "$ac_cv_type_signed_int" = yes; then
24164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024166as_fn_error 77 "cannot compute sizeof (signed int)
24167See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024168 else
24169 ac_cv_sizeof_signed_int=0
24170 fi
24171fi
cristy8b350f62009-11-15 23:12:43 +000024172
cristy3ed852e2009-09-05 21:47:34 +000024173fi
cristy8b350f62009-11-15 23:12:43 +000024174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024175$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24176
24177
24178
24179cat >>confdefs.h <<_ACEOF
24180#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24181_ACEOF
24182
24183
24184
24185# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24186# The cast to long int works around a bug in the HP C Compiler
24187# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24188# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24189# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024191$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024192if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024193 $as_echo_n "(cached) " >&6
24194else
cristy8b350f62009-11-15 23:12:43 +000024195 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 +000024196
cristy3ed852e2009-09-05 21:47:34 +000024197else
cristy8b350f62009-11-15 23:12:43 +000024198 if test "$ac_cv_type_unsigned_int" = yes; then
24199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024201as_fn_error 77 "cannot compute sizeof (unsigned int)
24202See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024203 else
24204 ac_cv_sizeof_unsigned_int=0
24205 fi
24206fi
cristy8b350f62009-11-15 23:12:43 +000024207
cristy3ed852e2009-09-05 21:47:34 +000024208fi
cristy8b350f62009-11-15 23:12:43 +000024209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024210$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24211
24212
24213
24214cat >>confdefs.h <<_ACEOF
24215#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24216_ACEOF
24217
24218
24219
24220# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24221# The cast to long int works around a bug in the HP C Compiler
24222# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24223# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24224# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024226$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024227if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024228 $as_echo_n "(cached) " >&6
24229else
cristy8b350f62009-11-15 23:12:43 +000024230 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 +000024231
cristy3ed852e2009-09-05 21:47:34 +000024232else
cristy8b350f62009-11-15 23:12:43 +000024233 if test "$ac_cv_type_signed_long" = yes; then
24234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024236as_fn_error 77 "cannot compute sizeof (signed long)
24237See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024238 else
24239 ac_cv_sizeof_signed_long=0
24240 fi
24241fi
cristy8b350f62009-11-15 23:12:43 +000024242
cristy3ed852e2009-09-05 21:47:34 +000024243fi
cristy8b350f62009-11-15 23:12:43 +000024244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024245$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24246
24247
24248
24249cat >>confdefs.h <<_ACEOF
24250#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24251_ACEOF
24252
24253
24254
24255# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24256# The cast to long int works around a bug in the HP C Compiler
24257# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24258# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24259# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024261$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024262if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024263 $as_echo_n "(cached) " >&6
24264else
cristy8b350f62009-11-15 23:12:43 +000024265 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 +000024266
cristy3ed852e2009-09-05 21:47:34 +000024267else
cristy8b350f62009-11-15 23:12:43 +000024268 if test "$ac_cv_type_unsigned_long" = yes; then
24269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024271as_fn_error 77 "cannot compute sizeof (unsigned long)
24272See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024273 else
24274 ac_cv_sizeof_unsigned_long=0
24275 fi
24276fi
cristy8b350f62009-11-15 23:12:43 +000024277
cristy3ed852e2009-09-05 21:47:34 +000024278fi
cristy8b350f62009-11-15 23:12:43 +000024279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024280$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24281
24282
24283
24284cat >>confdefs.h <<_ACEOF
24285#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24286_ACEOF
24287
24288
24289
24290# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24291# 'signed long long' is not supported then the value defined is zero.
24292# The cast to long int works around a bug in the HP C Compiler
24293# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24294# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24295# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024297$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024298if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024299 $as_echo_n "(cached) " >&6
24300else
cristy8b350f62009-11-15 23:12:43 +000024301 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 +000024302
cristy3ed852e2009-09-05 21:47:34 +000024303else
cristy8b350f62009-11-15 23:12:43 +000024304 if test "$ac_cv_type_signed_long_long" = yes; then
24305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024307as_fn_error 77 "cannot compute sizeof (signed long long)
24308See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024309 else
24310 ac_cv_sizeof_signed_long_long=0
24311 fi
24312fi
cristy8b350f62009-11-15 23:12:43 +000024313
cristy3ed852e2009-09-05 21:47:34 +000024314fi
cristy8b350f62009-11-15 23:12:43 +000024315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024316$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24317
24318
24319
24320cat >>confdefs.h <<_ACEOF
24321#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24322_ACEOF
24323
24324
24325
24326# Obtain size of a 'unsigned long long' and define as
24327# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24328# supported then the value defined is zero.
24329# The cast to long int works around a bug in the HP C Compiler
24330# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24331# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24332# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024334$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024335if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024336 $as_echo_n "(cached) " >&6
24337else
cristy8b350f62009-11-15 23:12:43 +000024338 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 +000024339
cristy3ed852e2009-09-05 21:47:34 +000024340else
cristy8b350f62009-11-15 23:12:43 +000024341 if test "$ac_cv_type_unsigned_long_long" = yes; then
24342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024344as_fn_error 77 "cannot compute sizeof (unsigned long long)
24345See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024346 else
24347 ac_cv_sizeof_unsigned_long_long=0
24348 fi
24349fi
cristy8b350f62009-11-15 23:12:43 +000024350
cristy3ed852e2009-09-05 21:47:34 +000024351fi
cristy8b350f62009-11-15 23:12:43 +000024352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024353$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24354
24355
24356
24357cat >>confdefs.h <<_ACEOF
24358#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24359_ACEOF
24360
24361
24362
cristyfec31822013-05-23 12:32:12 +000024363# Obtain size of off_t and define as SIZEOF_OFF_T
24364# The cast to long int works around a bug in the HP C Compiler
24365# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24366# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24367# This bug is HP SR number 8606223364.
24368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24369$as_echo_n "checking size of off_t... " >&6; }
24370if ${ac_cv_sizeof_off_t+:} false; then :
24371 $as_echo_n "(cached) " >&6
24372else
24373 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
24374
24375else
24376 if test "$ac_cv_type_off_t" = yes; then
24377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24379as_fn_error 77 "cannot compute sizeof (off_t)
24380See \`config.log' for more details" "$LINENO" 5; }
24381 else
24382 ac_cv_sizeof_off_t=0
24383 fi
24384fi
24385
24386fi
24387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24388$as_echo "$ac_cv_sizeof_off_t" >&6; }
24389
24390
24391
24392cat >>confdefs.h <<_ACEOF
24393#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24394_ACEOF
24395
24396
24397
24398# Obtain size of size_t and define as SIZEOF_SIZE_T
24399# The cast to long int works around a bug in the HP C Compiler
24400# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24401# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24402# This bug is HP SR number 8606223364.
24403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24404$as_echo_n "checking size of size_t... " >&6; }
24405if ${ac_cv_sizeof_size_t+:} false; then :
24406 $as_echo_n "(cached) " >&6
24407else
24408 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
24409
24410else
24411 if test "$ac_cv_type_size_t" = yes; then
24412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24414as_fn_error 77 "cannot compute sizeof (size_t)
24415See \`config.log' for more details" "$LINENO" 5; }
24416 else
24417 ac_cv_sizeof_size_t=0
24418 fi
24419fi
24420
24421fi
24422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24423$as_echo "$ac_cv_sizeof_size_t" >&6; }
24424
24425
24426
24427cat >>confdefs.h <<_ACEOF
24428#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24429_ACEOF
24430
24431
24432
24433# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24434# The cast to long int works around a bug in the HP C Compiler
24435# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24436# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24437# This bug is HP SR number 8606223364.
24438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24439$as_echo_n "checking size of ssize_t... " >&6; }
24440if ${ac_cv_sizeof_ssize_t+:} false; then :
24441 $as_echo_n "(cached) " >&6
24442else
24443 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24444
24445else
24446 if test "$ac_cv_type_ssize_t" = yes; then
24447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24449as_fn_error 77 "cannot compute sizeof (ssize_t)
24450See \`config.log' for more details" "$LINENO" 5; }
24451 else
24452 ac_cv_sizeof_ssize_t=0
24453 fi
24454fi
24455
24456fi
24457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24458$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24459
24460
24461
24462cat >>confdefs.h <<_ACEOF
24463#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24464_ACEOF
24465
24466
24467
cristy3ed852e2009-09-05 21:47:34 +000024468# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24469# The cast to long int works around a bug in the HP C Compiler
24470# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24471# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24472# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024474$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024475if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024476 $as_echo_n "(cached) " >&6
24477else
cristy8b350f62009-11-15 23:12:43 +000024478 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 +000024479
cristy3ed852e2009-09-05 21:47:34 +000024480else
cristy8b350f62009-11-15 23:12:43 +000024481 if test "$ac_cv_type_unsigned_intp" = yes; then
24482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024484as_fn_error 77 "cannot compute sizeof (unsigned int*)
24485See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024486 else
24487 ac_cv_sizeof_unsigned_intp=0
24488 fi
24489fi
cristy8b350f62009-11-15 23:12:43 +000024490
cristy3ed852e2009-09-05 21:47:34 +000024491fi
cristy8b350f62009-11-15 23:12:43 +000024492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024493$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24494
24495
24496
24497cat >>confdefs.h <<_ACEOF
24498#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24499_ACEOF
24500
24501
24502
24503#
24504# Compute sized types for current CPU and compiler options.
24505#
24506
cristy8b350f62009-11-15 23:12:43 +000024507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024508$as_echo_n "checking for signed 8-bit type... " >&6; }
24509INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000024510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
24511$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024512
24513
cristy8b350f62009-11-15 23:12:43 +000024514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024515$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24516UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000024517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
24518$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024519
24520
cristy8b350f62009-11-15 23:12:43 +000024521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024522$as_echo_n "checking for signed 16-bit type... " >&6; }
24523INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000024524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
24525$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024526
24527
cristy8b350f62009-11-15 23:12:43 +000024528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024529$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24530UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000024531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
24532$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024533
24534
cristy8b350f62009-11-15 23:12:43 +000024535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024536$as_echo_n "checking for signed 32-bit type... " >&6; }
24537INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024538INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024539if test $ac_cv_sizeof_signed_int -eq 4; then
24540 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024541 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024542elif test $ac_cv_sizeof_signed_long -eq 4; then
24543 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024544 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024545fi
cristyad38abe2012-12-23 23:03:21 +000024546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
24547$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024548
24549
cristy6d5e20f2011-04-25 13:48:54 +000024550
cristy8b350f62009-11-15 23:12:43 +000024551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024552$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24553UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024554UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024555if test $ac_cv_sizeof_unsigned_int -eq 4; then
24556 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024557 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024558elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24559 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024560 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024561fi
cristyad38abe2012-12-23 23:03:21 +000024562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
24563$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024564
24565
cristy6d5e20f2011-04-25 13:48:54 +000024566
cristy8b350f62009-11-15 23:12:43 +000024567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024568$as_echo_n "checking for signed 64-bit type... " >&6; }
24569INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024570INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024571if test $ac_cv_sizeof_signed_long -eq 8; then
24572 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024573 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024574elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24575 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024576 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024577fi
cristy3a99dcf2011-12-17 01:29:40 +000024578case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024579 mingw* )
24580 INT64_F='"I64"'
24581 ;;
24582esac
cristyad38abe2012-12-23 23:03:21 +000024583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
24584$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024585
24586
cristy6d5e20f2011-04-25 13:48:54 +000024587
cristy8b350f62009-11-15 23:12:43 +000024588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024589$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24590UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024591UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024592if test $ac_cv_sizeof_unsigned_long -eq 8; then
24593 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024594 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024595elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24596 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024597 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024598fi
cristy3a99dcf2011-12-17 01:29:40 +000024599case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024600 mingw* )
24601 UINT64_F='"I64"'
24602 ;;
24603esac
cristyad38abe2012-12-23 23:03:21 +000024604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
24605$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024606
24607
cristy6d5e20f2011-04-25 13:48:54 +000024608
cristy8b350f62009-11-15 23:12:43 +000024609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024610$as_echo_n "checking for unsigned maximum type... " >&6; }
24611UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024612UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024613if test "$UINT64_T" != 'none'; then
24614 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024615 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024616elif test "$UINT32_T" != 'none'; then
24617 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024618 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024619fi
cristyad38abe2012-12-23 23:03:21 +000024620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
24621$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024622
24623
cristy6d5e20f2011-04-25 13:48:54 +000024624
cristy8b350f62009-11-15 23:12:43 +000024625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024626$as_echo_n "checking for pointer difference type... " >&6; }
24627UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024628UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024629if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24630 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024631 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024632elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24633 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024634 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024635fi
cristyad38abe2012-12-23 23:03:21 +000024636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
24637$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024638
24639
cristy6d5e20f2011-04-25 13:48:54 +000024640
cristy8b350f62009-11-15 23:12:43 +000024641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024642$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024644/* end confdefs.h. */
24645
24646int
24647main ()
24648{
24649{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24650 ;
24651 return 0;
24652}
24653_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024654if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24656$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024657else
cristyad38abe2012-12-23 23:03:21 +000024658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24659$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024661$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024663/* end confdefs.h. */
24664
24665int
24666main ()
24667{
24668{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24669 ;
24670 return 0;
24671}
24672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024673if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000024674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24675$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024676
cristy8b350f62009-11-15 23:12:43 +000024677$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024678
24679else
cristyad38abe2012-12-23 23:03:21 +000024680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24681$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000024682
cristy8b350f62009-11-15 23:12:43 +000024683$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024684
24685fi
cristy3ed852e2009-09-05 21:47:34 +000024686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24687fi
cristy3ed852e2009-09-05 21:47:34 +000024688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689
24690########
24691#
24692# Check for functions
24693#
24694########
cristy8b350f62009-11-15 23:12:43 +000024695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024696$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024697if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024698 $as_echo_n "(cached) " >&6
24699else
cristy8b350f62009-11-15 23:12:43 +000024700 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024701 ac_cv_func_closedir_void=yes
24702else
cristy8b350f62009-11-15 23:12:43 +000024703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024704/* end confdefs.h. */
24705$ac_includes_default
24706#include <$ac_header_dirent>
24707#ifndef __cplusplus
24708int closedir ();
24709#endif
24710
24711int
24712main ()
24713{
24714return closedir (opendir (".")) != 0;
24715 ;
24716 return 0;
24717}
24718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024719if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024720 ac_cv_func_closedir_void=no
24721else
cristy8b350f62009-11-15 23:12:43 +000024722 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024723fi
cristy8b350f62009-11-15 23:12:43 +000024724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24725 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024726fi
24727
cristy3ed852e2009-09-05 21:47:34 +000024728fi
cristy8b350f62009-11-15 23:12:43 +000024729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024730$as_echo "$ac_cv_func_closedir_void" >&6; }
24731if test $ac_cv_func_closedir_void = yes; then
24732
cristy8b350f62009-11-15 23:12:43 +000024733$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024734
24735fi
24736
cristycd4c5312009-11-22 01:19:08 +000024737
24738
24739
24740 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024741do :
24742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024743ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24744"
cristy98dddb52010-11-04 00:30:15 +000024745if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024746 cat >>confdefs.h <<_ACEOF
24747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24748_ACEOF
24749
24750fi
24751
24752done
24753
cristycd4c5312009-11-22 01:19:08 +000024754
24755
24756
24757
24758
24759
24760
cristy3ed852e2009-09-05 21:47:34 +000024761for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024762do :
24763 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024764if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024765 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024766#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024767_ACEOF
24768
24769fi
24770done
24771
cristy8b350f62009-11-15 23:12:43 +000024772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024773$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024774if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024775 $as_echo_n "(cached) " >&6
24776else
cristy8b350f62009-11-15 23:12:43 +000024777 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024778 ac_cv_func_mmap_fixed_mapped=no
24779else
cristy8b350f62009-11-15 23:12:43 +000024780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024781/* end confdefs.h. */
24782$ac_includes_default
24783/* malloc might have been renamed as rpl_malloc. */
24784#undef malloc
24785
24786/* Thanks to Mike Haertel and Jim Avera for this test.
24787 Here is a matrix of mmap possibilities:
24788 mmap private not fixed
24789 mmap private fixed at somewhere currently unmapped
24790 mmap private fixed at somewhere already mapped
24791 mmap shared not fixed
24792 mmap shared fixed at somewhere currently unmapped
24793 mmap shared fixed at somewhere already mapped
24794 For private mappings, we should verify that changes cannot be read()
24795 back from the file, nor mmap's back from the file at a different
24796 address. (There have been systems where private was not correctly
24797 implemented like the infamous i386 svr4.0, and systems where the
24798 VM page cache was not coherent with the file system buffer cache
24799 like early versions of FreeBSD and possibly contemporary NetBSD.)
24800 For shared mappings, we should conversely verify that changes get
24801 propagated back to all the places they're supposed to be.
24802
24803 Grep wants private fixed already mapped.
24804 The main things grep needs to know about mmap are:
24805 * does it exist and is it safe to write into the mmap'd area
24806 * how to use it (BSD variants) */
24807
24808#include <fcntl.h>
24809#include <sys/mman.h>
24810
24811#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24812char *malloc ();
24813#endif
24814
24815/* This mess was copied from the GNU getpagesize.h. */
24816#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024817# ifdef _SC_PAGESIZE
24818# define getpagesize() sysconf(_SC_PAGESIZE)
24819# else /* no _SC_PAGESIZE */
24820# ifdef HAVE_SYS_PARAM_H
24821# include <sys/param.h>
24822# ifdef EXEC_PAGESIZE
24823# define getpagesize() EXEC_PAGESIZE
24824# else /* no EXEC_PAGESIZE */
24825# ifdef NBPG
24826# define getpagesize() NBPG * CLSIZE
24827# ifndef CLSIZE
24828# define CLSIZE 1
24829# endif /* no CLSIZE */
24830# else /* no NBPG */
24831# ifdef NBPC
24832# define getpagesize() NBPC
24833# else /* no NBPC */
24834# ifdef PAGESIZE
24835# define getpagesize() PAGESIZE
24836# endif /* PAGESIZE */
24837# endif /* no NBPC */
24838# endif /* no NBPG */
24839# endif /* no EXEC_PAGESIZE */
24840# else /* no HAVE_SYS_PARAM_H */
24841# define getpagesize() 8192 /* punt totally */
24842# endif /* no HAVE_SYS_PARAM_H */
24843# endif /* no _SC_PAGESIZE */
24844
24845#endif /* no HAVE_GETPAGESIZE */
24846
24847int
24848main ()
24849{
24850 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024851 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024852 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024853 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024854
24855 pagesize = getpagesize ();
24856
24857 /* First, make a file with some known garbage in it. */
24858 data = (char *) malloc (pagesize);
24859 if (!data)
24860 return 1;
24861 for (i = 0; i < pagesize; ++i)
24862 *(data + i) = rand ();
24863 umask (0);
24864 fd = creat ("conftest.mmap", 0600);
24865 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024866 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024867 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024868 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024869 close (fd);
24870
cristycd4c5312009-11-22 01:19:08 +000024871 /* Next, check that the tail of a page is zero-filled. File must have
24872 non-zero length, otherwise we risk SIGBUS for entire page. */
24873 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24874 if (fd2 < 0)
24875 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024876 cdata2 = "";
24877 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024878 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024879 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024880 if (data2 == MAP_FAILED)
24881 return 6;
24882 for (i = 0; i < pagesize; ++i)
24883 if (*(data2 + i))
24884 return 7;
24885 close (fd2);
24886 if (munmap (data2, pagesize))
24887 return 8;
24888
cristy3ed852e2009-09-05 21:47:34 +000024889 /* Next, try to mmap the file at a fixed address which already has
24890 something else allocated at it. If we can, also make sure that
24891 we see the same garbage. */
24892 fd = open ("conftest.mmap", O_RDWR);
24893 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024894 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024895 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24896 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024897 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024898 for (i = 0; i < pagesize; ++i)
24899 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024900 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024901
24902 /* Finally, make sure that changes to the mapped area do not
24903 percolate back to the file as seen by read(). (This is a bug on
24904 some variants of i386 svr4.0.) */
24905 for (i = 0; i < pagesize; ++i)
24906 *(data2 + i) = *(data2 + i) + 1;
24907 data3 = (char *) malloc (pagesize);
24908 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024909 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024910 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024911 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024912 for (i = 0; i < pagesize; ++i)
24913 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024914 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024915 close (fd);
24916 return 0;
24917}
24918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024919if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024920 ac_cv_func_mmap_fixed_mapped=yes
24921else
cristy8b350f62009-11-15 23:12:43 +000024922 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024923fi
cristy8b350f62009-11-15 23:12:43 +000024924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24925 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024926fi
24927
cristy3ed852e2009-09-05 21:47:34 +000024928fi
cristy8b350f62009-11-15 23:12:43 +000024929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024930$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24931if test $ac_cv_func_mmap_fixed_mapped = yes; then
24932
cristy8b350f62009-11-15 23:12:43 +000024933$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024934
24935fi
cristycd4c5312009-11-22 01:19:08 +000024936rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024937
cristy3ed852e2009-09-05 21:47:34 +000024938for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024939do :
24940 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024941if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024942 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024943#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024944_ACEOF
24945
24946fi
24947
24948done
24949
cristy3ed852e2009-09-05 21:47:34 +000024950for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024951do :
24952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24953ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024954if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024955 cat >>confdefs.h <<_ACEOF
24956#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24957_ACEOF
24958
24959fi
24960done
24961
24962if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024964$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024965if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024966 $as_echo_n "(cached) " >&6
24967else
cristy8b350f62009-11-15 23:12:43 +000024968 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024969 ac_cv_func_fork_works=cross
24970else
cristy8b350f62009-11-15 23:12:43 +000024971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024972/* end confdefs.h. */
24973$ac_includes_default
24974int
24975main ()
24976{
24977
24978 /* By Ruediger Kuhlmann. */
24979 return fork () < 0;
24980
24981 ;
24982 return 0;
24983}
24984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024985if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024986 ac_cv_func_fork_works=yes
24987else
cristy8b350f62009-11-15 23:12:43 +000024988 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024989fi
cristy8b350f62009-11-15 23:12:43 +000024990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24991 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024992fi
24993
cristy3ed852e2009-09-05 21:47:34 +000024994fi
cristy8b350f62009-11-15 23:12:43 +000024995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024996$as_echo "$ac_cv_func_fork_works" >&6; }
24997
24998else
24999 ac_cv_func_fork_works=$ac_cv_func_fork
25000fi
25001if test "x$ac_cv_func_fork_works" = xcross; then
25002 case $host in
25003 *-*-amigaos* | *-*-msdosdjgpp*)
25004 # Override, as these systems have only a dummy fork() stub
25005 ac_cv_func_fork_works=no
25006 ;;
25007 *)
25008 ac_cv_func_fork_works=yes
25009 ;;
25010 esac
cristy8b350f62009-11-15 23:12:43 +000025011 { $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 +000025012$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25013fi
25014ac_cv_func_vfork_works=$ac_cv_func_vfork
25015if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025017$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025018if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025019 $as_echo_n "(cached) " >&6
25020else
cristy8b350f62009-11-15 23:12:43 +000025021 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025022 ac_cv_func_vfork_works=cross
25023else
cristy8b350f62009-11-15 23:12:43 +000025024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025025/* end confdefs.h. */
25026/* Thanks to Paul Eggert for this test. */
25027$ac_includes_default
25028#include <sys/wait.h>
25029#ifdef HAVE_VFORK_H
25030# include <vfork.h>
25031#endif
25032/* On some sparc systems, changes by the child to local and incoming
25033 argument registers are propagated back to the parent. The compiler
25034 is told about this with #include <vfork.h>, but some compilers
25035 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25036 static variable whose address is put into a register that is
25037 clobbered by the vfork. */
25038static void
25039#ifdef __cplusplus
25040sparc_address_test (int arg)
25041# else
25042sparc_address_test (arg) int arg;
25043#endif
25044{
25045 static pid_t child;
25046 if (!child) {
25047 child = vfork ();
25048 if (child < 0) {
25049 perror ("vfork");
25050 _exit(2);
25051 }
25052 if (!child) {
25053 arg = getpid();
25054 write(-1, "", 0);
25055 _exit (arg);
25056 }
25057 }
25058}
25059
25060int
25061main ()
25062{
25063 pid_t parent = getpid ();
25064 pid_t child;
25065
25066 sparc_address_test (0);
25067
25068 child = vfork ();
25069
25070 if (child == 0) {
25071 /* Here is another test for sparc vfork register problems. This
25072 test uses lots of local variables, at least as many local
25073 variables as main has allocated so far including compiler
25074 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25075 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25076 reuse the register of parent for one of the local variables,
25077 since it will think that parent can't possibly be used any more
25078 in this routine. Assigning to the local variable will thus
25079 munge parent in the parent process. */
25080 pid_t
25081 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25082 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25083 /* Convince the compiler that p..p7 are live; otherwise, it might
25084 use the same hardware register for all 8 local variables. */
25085 if (p != p1 || p != p2 || p != p3 || p != p4
25086 || p != p5 || p != p6 || p != p7)
25087 _exit(1);
25088
25089 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25090 from child file descriptors. If the child closes a descriptor
25091 before it execs or exits, this munges the parent's descriptor
25092 as well. Test for this by closing stdout in the child. */
25093 _exit(close(fileno(stdout)) != 0);
25094 } else {
25095 int status;
25096 struct stat st;
25097
25098 while (wait(&status) != child)
25099 ;
25100 return (
25101 /* Was there some problem with vforking? */
25102 child < 0
25103
25104 /* Did the child fail? (This shouldn't happen.) */
25105 || status
25106
25107 /* Did the vfork/compiler bug occur? */
25108 || parent != getpid()
25109
25110 /* Did the file descriptor bug occur? */
25111 || fstat(fileno(stdout), &st) != 0
25112 );
25113 }
25114}
25115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025116if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025117 ac_cv_func_vfork_works=yes
25118else
cristy8b350f62009-11-15 23:12:43 +000025119 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025120fi
cristy8b350f62009-11-15 23:12:43 +000025121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25122 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025123fi
25124
cristy3ed852e2009-09-05 21:47:34 +000025125fi
cristy8b350f62009-11-15 23:12:43 +000025126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025127$as_echo "$ac_cv_func_vfork_works" >&6; }
25128
25129fi;
25130if test "x$ac_cv_func_fork_works" = xcross; then
25131 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025132 { $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 +000025133$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25134fi
25135
25136if test "x$ac_cv_func_vfork_works" = xyes; then
25137
cristy8b350f62009-11-15 23:12:43 +000025138$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025139
25140else
25141
cristy8b350f62009-11-15 23:12:43 +000025142$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025143
25144fi
25145if test "x$ac_cv_func_fork_works" = xyes; then
25146
cristy8b350f62009-11-15 23:12:43 +000025147$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025148
25149fi
25150
cristy8b350f62009-11-15 23:12:43 +000025151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025152$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025153if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025154 $as_echo_n "(cached) " >&6
25155else
cristy8b350f62009-11-15 23:12:43 +000025156 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025157 ac_cv_func_memcmp_working=no
25158else
cristy8b350f62009-11-15 23:12:43 +000025159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025160/* end confdefs.h. */
25161$ac_includes_default
25162int
25163main ()
25164{
25165
25166 /* Some versions of memcmp are not 8-bit clean. */
25167 char c0 = '\100', c1 = '\200', c2 = '\201';
25168 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25169 return 1;
25170
25171 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25172 or more and with at least one buffer not starting on a 4-byte boundary.
25173 William Lewis provided this test program. */
25174 {
25175 char foo[21];
25176 char bar[21];
25177 int i;
25178 for (i = 0; i < 4; i++)
25179 {
25180 char *a = foo + i;
25181 char *b = bar + i;
25182 strcpy (a, "--------01111111");
25183 strcpy (b, "--------10000000");
25184 if (memcmp (a, b, 16) >= 0)
25185 return 1;
25186 }
25187 return 0;
25188 }
25189
25190 ;
25191 return 0;
25192}
25193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025194if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025195 ac_cv_func_memcmp_working=yes
25196else
cristy8b350f62009-11-15 23:12:43 +000025197 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025198fi
cristy8b350f62009-11-15 23:12:43 +000025199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25200 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025201fi
25202
cristy3ed852e2009-09-05 21:47:34 +000025203fi
cristy8b350f62009-11-15 23:12:43 +000025204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025205$as_echo "$ac_cv_func_memcmp_working" >&6; }
25206test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25207 *" memcmp.$ac_objext "* ) ;;
25208 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25209 ;;
25210esac
25211
25212
cristy3ed852e2009-09-05 21:47:34 +000025213for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025214do :
25215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25216ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025217if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025218 cat >>confdefs.h <<_ACEOF
25219#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25220_ACEOF
25221
25222fi
25223
25224done
25225
cristy8b350f62009-11-15 23:12:43 +000025226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025227$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025228if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025229 $as_echo_n "(cached) " >&6
25230else
25231 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25232 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25233 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025235/* end confdefs.h. */
25236$ac_includes_default
25237#ifdef HAVE_SYS_SELECT_H
25238# include <sys/select.h>
25239#endif
25240#ifdef HAVE_SYS_SOCKET_H
25241# include <sys/socket.h>
25242#endif
25243
25244int
25245main ()
25246{
25247extern int select ($ac_arg1,
25248 $ac_arg234, $ac_arg234, $ac_arg234,
25249 $ac_arg5);
25250 ;
25251 return 0;
25252}
25253_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025254if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025255 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025256fi
cristy3ed852e2009-09-05 21:47:34 +000025257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 done
25259 done
25260done
25261# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025262: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025263
25264fi
cristy8b350f62009-11-15 23:12:43 +000025265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025266$as_echo "$ac_cv_func_select_args" >&6; }
25267ac_save_IFS=$IFS; IFS=','
25268set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25269IFS=$ac_save_IFS
25270shift
25271
25272cat >>confdefs.h <<_ACEOF
25273#define SELECT_TYPE_ARG1 $1
25274_ACEOF
25275
25276
25277cat >>confdefs.h <<_ACEOF
25278#define SELECT_TYPE_ARG234 ($2)
25279_ACEOF
25280
25281
25282cat >>confdefs.h <<_ACEOF
25283#define SELECT_TYPE_ARG5 ($3)
25284_ACEOF
25285
25286rm -f conftest*
25287
cristyda16f162011-02-19 23:52:17 +000025288if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025289 $as_echo_n "(cached) " >&6
25290else
25291 ac_cv_func_setvbuf_reversed=no
25292fi
25293
25294
cristy8b350f62009-11-15 23:12:43 +000025295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025296$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025297if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025298 $as_echo_n "(cached) " >&6
25299else
cristy8b350f62009-11-15 23:12:43 +000025300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025301/* end confdefs.h. */
25302#include <sys/types.h>
25303#include <signal.h>
25304
25305int
25306main ()
25307{
25308return *(signal (0, 0)) (0) == 1;
25309 ;
25310 return 0;
25311}
25312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025313if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025314 ac_cv_type_signal=int
25315else
cristy8b350f62009-11-15 23:12:43 +000025316 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025317fi
cristy3ed852e2009-09-05 21:47:34 +000025318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25319fi
cristy8b350f62009-11-15 23:12:43 +000025320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025321$as_echo "$ac_cv_type_signal" >&6; }
25322
25323cat >>confdefs.h <<_ACEOF
25324#define RETSIGTYPE $ac_cv_type_signal
25325_ACEOF
25326
25327
cristy8b350f62009-11-15 23:12:43 +000025328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025329$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025330if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025331 $as_echo_n "(cached) " >&6
25332else
cristy8b350f62009-11-15 23:12:43 +000025333 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025334 ac_cv_func_strtod=no
25335else
cristy8b350f62009-11-15 23:12:43 +000025336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025337/* end confdefs.h. */
25338
25339$ac_includes_default
25340#ifndef strtod
25341double strtod ();
25342#endif
25343int
25344main()
25345{
25346 {
25347 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25348 char *string = " +69";
25349 char *term;
25350 double value;
25351 value = strtod (string, &term);
25352 if (value != 69 || term != (string + 4))
25353 return 1;
25354 }
25355
25356 {
25357 /* Under Solaris 2.4, strtod returns the wrong value for the
25358 terminating character under some conditions. */
25359 char *string = "NaN";
25360 char *term;
25361 strtod (string, &term);
25362 if (term != string && *(term - 1) == 0)
25363 return 1;
25364 }
25365 return 0;
25366}
25367
25368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025369if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025370 ac_cv_func_strtod=yes
25371else
cristy8b350f62009-11-15 23:12:43 +000025372 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025373fi
cristy8b350f62009-11-15 23:12:43 +000025374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25375 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025376fi
25377
cristy3ed852e2009-09-05 21:47:34 +000025378fi
cristy8b350f62009-11-15 23:12:43 +000025379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025380$as_echo "$ac_cv_func_strtod" >&6; }
25381if test $ac_cv_func_strtod = no; then
25382 case " $LIBOBJS " in
25383 *" strtod.$ac_objext "* ) ;;
25384 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25385 ;;
25386esac
25387
cristy8b350f62009-11-15 23:12:43 +000025388ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025389if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025390
cristy3ed852e2009-09-05 21:47:34 +000025391fi
25392
cristy3ed852e2009-09-05 21:47:34 +000025393if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025395$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025396if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025397 $as_echo_n "(cached) " >&6
25398else
25399 ac_check_lib_save_LIBS=$LIBS
25400LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025402/* end confdefs.h. */
25403
25404/* Override any GCC internal prototype to avoid an error.
25405 Use char because int might match the return type of a GCC
25406 builtin and then its argument prototype would still apply. */
25407#ifdef __cplusplus
25408extern "C"
25409#endif
25410char pow ();
25411int
25412main ()
25413{
25414return pow ();
25415 ;
25416 return 0;
25417}
25418_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025419if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025420 ac_cv_lib_m_pow=yes
25421else
cristy8b350f62009-11-15 23:12:43 +000025422 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025423fi
cristy8b350f62009-11-15 23:12:43 +000025424rm -f core conftest.err conftest.$ac_objext \
25425 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025426LIBS=$ac_check_lib_save_LIBS
25427fi
cristy8b350f62009-11-15 23:12:43 +000025428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025429$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025430if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025431 POW_LIB=-lm
25432else
cristy8b350f62009-11-15 23:12:43 +000025433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025434$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25435fi
25436
25437fi
25438
25439fi
25440
cristy7d4a1d62011-10-13 15:54:12 +000025441ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25442if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25443 ac_have_decl=1
25444else
25445 ac_have_decl=0
25446fi
25447
25448cat >>confdefs.h <<_ACEOF
25449#define HAVE_DECL_STRERROR_R $ac_have_decl
25450_ACEOF
25451
25452for ac_func in strerror_r
25453do :
25454 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25455if test "x$ac_cv_func_strerror_r" = xyes; then :
25456 cat >>confdefs.h <<_ACEOF
25457#define HAVE_STRERROR_R 1
25458_ACEOF
25459
25460fi
25461done
25462
25463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25464$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25465if ${ac_cv_func_strerror_r_char_p+:} false; then :
25466 $as_echo_n "(cached) " >&6
25467else
25468
25469 ac_cv_func_strerror_r_char_p=no
25470 if test $ac_cv_have_decl_strerror_r = yes; then
25471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25472/* end confdefs.h. */
25473$ac_includes_default
25474int
25475main ()
25476{
25477
25478 char buf[100];
25479 char x = *strerror_r (0, buf, sizeof buf);
25480 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025481 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025482
25483 ;
25484 return 0;
25485}
25486_ACEOF
25487if ac_fn_c_try_compile "$LINENO"; then :
25488 ac_cv_func_strerror_r_char_p=yes
25489fi
25490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25491 else
25492 # strerror_r is not declared. Choose between
25493 # systems that have relatively inaccessible declarations for the
25494 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25495 # former has a strerror_r that returns char*, while the latter
25496 # has a strerror_r that returns `int'.
25497 # This test should segfault on the DEC system.
25498 if test "$cross_compiling" = yes; then :
25499 :
25500else
25501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25502/* end confdefs.h. */
25503$ac_includes_default
25504 extern char *strerror_r ();
25505int
25506main ()
25507{
25508char buf[100];
25509 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025510 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025511 ;
25512 return 0;
25513}
25514_ACEOF
25515if ac_fn_c_try_run "$LINENO"; then :
25516 ac_cv_func_strerror_r_char_p=yes
25517fi
25518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25519 conftest.$ac_objext conftest.beam conftest.$ac_ext
25520fi
25521
25522 fi
25523
25524fi
25525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25526$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25527if test $ac_cv_func_strerror_r_char_p = yes; then
25528
25529$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25530
25531fi
25532
cristy3ed852e2009-09-05 21:47:34 +000025533for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025534do :
25535 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025536if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025537 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025538#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025539_ACEOF
25540
cristy8b350f62009-11-15 23:12:43 +000025541ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025542if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025543
cristy8b350f62009-11-15 23:12:43 +000025544$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025545
25546fi
25547
25548fi
25549done
25550
25551
25552
cristy161b9262010-03-20 19:34:32 +000025553#
25554# Find math library
25555#
25556MATH_LIBS=''
25557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25558$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025559if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025560 $as_echo_n "(cached) " >&6
25561else
25562 ac_check_lib_save_LIBS=$LIBS
25563LIBS="-lm $LIBS"
25564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565/* end confdefs.h. */
25566
25567/* Override any GCC internal prototype to avoid an error.
25568 Use char because int might match the return type of a GCC
25569 builtin and then its argument prototype would still apply. */
25570#ifdef __cplusplus
25571extern "C"
25572#endif
25573char sqrt ();
25574int
25575main ()
25576{
25577return sqrt ();
25578 ;
25579 return 0;
25580}
25581_ACEOF
25582if ac_fn_c_try_link "$LINENO"; then :
25583 ac_cv_lib_m_sqrt=yes
25584else
25585 ac_cv_lib_m_sqrt=no
25586fi
25587rm -f core conftest.err conftest.$ac_objext \
25588 conftest$ac_exeext conftest.$ac_ext
25589LIBS=$ac_check_lib_save_LIBS
25590fi
25591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25592$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025593if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025594 MATH_LIBS="-lm"
25595fi
25596
25597LIBS="$MATH_LIBS $LIBS"
25598
25599
cristy85572162013-01-04 19:19:32 +000025600#
25601# Find socket library
25602#
cristy8a5d7f42013-01-06 15:24:33 +000025603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25604$as_echo_n "checking for library containing gethostbyname... " >&6; }
25605if ${ac_cv_search_gethostbyname+:} false; then :
25606 $as_echo_n "(cached) " >&6
25607else
25608 ac_func_search_save_LIBS=$LIBS
25609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610/* end confdefs.h. */
25611
25612/* Override any GCC internal prototype to avoid an error.
25613 Use char because int might match the return type of a GCC
25614 builtin and then its argument prototype would still apply. */
25615#ifdef __cplusplus
25616extern "C"
25617#endif
25618char gethostbyname ();
25619int
25620main ()
25621{
25622return gethostbyname ();
25623 ;
25624 return 0;
25625}
25626_ACEOF
25627for ac_lib in '' resolv nsl; do
25628 if test -z "$ac_lib"; then
25629 ac_res="none required"
25630 else
25631 ac_res=-l$ac_lib
25632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25633 fi
25634 if ac_fn_c_try_link "$LINENO"; then :
25635 ac_cv_search_gethostbyname=$ac_res
25636fi
25637rm -f core conftest.err conftest.$ac_objext \
25638 conftest$ac_exeext
25639 if ${ac_cv_search_gethostbyname+:} false; then :
25640 break
25641fi
25642done
25643if ${ac_cv_search_gethostbyname+:} false; then :
25644
25645else
25646 ac_cv_search_gethostbyname=no
25647fi
25648rm conftest.$ac_ext
25649LIBS=$ac_func_search_save_LIBS
25650fi
25651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25652$as_echo "$ac_cv_search_gethostbyname" >&6; }
25653ac_res=$ac_cv_search_gethostbyname
25654if test "$ac_res" != no; then :
25655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25656
25657fi
25658
cristy85572162013-01-04 19:19:32 +000025659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25660$as_echo_n "checking for library containing socket... " >&6; }
25661if ${ac_cv_search_socket+:} false; then :
25662 $as_echo_n "(cached) " >&6
25663else
25664 ac_func_search_save_LIBS=$LIBS
25665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25666/* end confdefs.h. */
25667
25668/* Override any GCC internal prototype to avoid an error.
25669 Use char because int might match the return type of a GCC
25670 builtin and then its argument prototype would still apply. */
25671#ifdef __cplusplus
25672extern "C"
25673#endif
25674char socket ();
25675int
25676main ()
25677{
25678return socket ();
25679 ;
25680 return 0;
25681}
25682_ACEOF
25683for ac_lib in '' socket; do
25684 if test -z "$ac_lib"; then
25685 ac_res="none required"
25686 else
25687 ac_res=-l$ac_lib
25688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25689 fi
25690 if ac_fn_c_try_link "$LINENO"; then :
25691 ac_cv_search_socket=$ac_res
25692fi
25693rm -f core conftest.err conftest.$ac_objext \
25694 conftest$ac_exeext
25695 if ${ac_cv_search_socket+:} false; then :
25696 break
25697fi
25698done
25699if ${ac_cv_search_socket+:} false; then :
25700
25701else
25702 ac_cv_search_socket=no
25703fi
25704rm conftest.$ac_ext
25705LIBS=$ac_func_search_save_LIBS
25706fi
25707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25708$as_echo "$ac_cv_search_socket" >&6; }
25709ac_res=$ac_cv_search_socket
25710if test "$ac_res" != no; then :
25711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25712
cristy85572162013-01-04 19:19:32 +000025713
cristy8a5d7f42013-01-06 15:24:33 +000025714$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000025715
cristy03f187e2013-01-24 00:22:19 +000025716 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000025717
25718fi
25719
25720
25721for 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 +000025722do :
25723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25724ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025725if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025726 cat >>confdefs.h <<_ACEOF
25727#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25728_ACEOF
25729
25730fi
25731done
25732
25733
cristye43a45e2009-09-28 14:49:00 +000025734#
25735# Check for clock_gettime().
25736#
cristy8b350f62009-11-15 23:12:43 +000025737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025738$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025739if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025740 $as_echo_n "(cached) " >&6
25741else
25742 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025744/* end confdefs.h. */
25745
25746/* Override any GCC internal prototype to avoid an error.
25747 Use char because int might match the return type of a GCC
25748 builtin and then its argument prototype would still apply. */
25749#ifdef __cplusplus
25750extern "C"
25751#endif
25752char clock_gettime ();
25753int
25754main ()
25755{
25756return clock_gettime ();
25757 ;
25758 return 0;
25759}
25760_ACEOF
25761for ac_lib in '' rt; do
25762 if test -z "$ac_lib"; then
25763 ac_res="none required"
25764 else
25765 ac_res=-l$ac_lib
25766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25767 fi
cristy8b350f62009-11-15 23:12:43 +000025768 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025769 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025770fi
cristy8b350f62009-11-15 23:12:43 +000025771rm -f core conftest.err conftest.$ac_objext \
25772 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025773 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025774 break
25775fi
25776done
cristyda16f162011-02-19 23:52:17 +000025777if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025778
cristye43a45e2009-09-28 14:49:00 +000025779else
25780 ac_cv_search_clock_gettime=no
25781fi
25782rm conftest.$ac_ext
25783LIBS=$ac_func_search_save_LIBS
25784fi
cristy8b350f62009-11-15 23:12:43 +000025785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025786$as_echo "$ac_cv_search_clock_gettime" >&6; }
25787ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025788if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25790
25791
cristy8b350f62009-11-15 23:12:43 +000025792$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025793
cristy8b350f62009-11-15 23:12:43 +000025794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025795$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025797/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025798
25799 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025800int
25801main ()
25802{
25803clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025804 ;
25805 return 0;
25806}
25807_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025808if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025809
cristyad38abe2012-12-23 23:03:21 +000025810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25811$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025812
cristy8b350f62009-11-15 23:12:43 +000025813$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025814
25815
25816else
cristyad38abe2012-12-23 23:03:21 +000025817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25818$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000025819
25820fi
cristye43a45e2009-09-28 14:49:00 +000025821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25822
25823else
25824
cristy8b350f62009-11-15 23:12:43 +000025825 for ac_func in gettimeofday ftime
25826do :
25827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25828ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025829if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025830 cat >>confdefs.h <<_ACEOF
25831#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25832_ACEOF
25833 break
25834fi
25835done
25836
25837
25838
25839fi
25840
25841
cristy3ed852e2009-09-05 21:47:34 +000025842########
25843#
25844# Check for function prototypes
25845#
25846########
25847
cristy8b350f62009-11-15 23:12:43 +000025848ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025849#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025850"
cristyda16f162011-02-19 23:52:17 +000025851if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025852 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025853else
cristy8b350f62009-11-15 23:12:43 +000025854 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025855fi
25856
cristy3ed852e2009-09-05 21:47:34 +000025857cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025858#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025860ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025861#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025862"
cristyda16f162011-02-19 23:52:17 +000025863if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025864 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025865else
cristy8b350f62009-11-15 23:12:43 +000025866 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025867fi
25868
cristy3ed852e2009-09-05 21:47:34 +000025869cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025870#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025871_ACEOF
25872
25873
cristy8b350f62009-11-15 23:12:43 +000025874ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025875#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025876"
cristyda16f162011-02-19 23:52:17 +000025877if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025878 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025879else
cristy8b350f62009-11-15 23:12:43 +000025880 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025881fi
25882
cristy3ed852e2009-09-05 21:47:34 +000025883cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025884#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025885_ACEOF
25886
25887
cristy8b350f62009-11-15 23:12:43 +000025888ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025889#include <stdio.h>
25890#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025891"
cristyda16f162011-02-19 23:52:17 +000025892if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025893 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025894else
cristy8b350f62009-11-15 23:12:43 +000025895 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025896fi
25897
cristy3ed852e2009-09-05 21:47:34 +000025898cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025899#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025900_ACEOF
25901
25902
cristy3ed852e2009-09-05 21:47:34 +000025903########
25904#
25905# C++ Support Tests (For Magick++)
25906#
25907########
25908have_magick_plus_plus='no'
25909if test "$with_magick_plus_plus" = 'yes'; then
25910 OLIBS="$LIBS"
25911 LIBS=''
25912 ac_ext=cpp
25913ac_cpp='$CXXCPP $CPPFLAGS'
25914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25917
25918
25919 # Full set of headers used...
25920 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25921 # functional iomanip iosfwd iostream iterator list string strstream utility
25922 ac_ext=cpp
25923ac_cpp='$CXXCPP $CPPFLAGS'
25924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25927
25928 ac_ext=cpp
25929ac_cpp='$CXXCPP $CPPFLAGS'
25930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25933if test -z "$CXX"; then
25934 if test -n "$CCC"; then
25935 CXX=$CCC
25936 else
25937 if test -n "$ac_tool_prefix"; then
25938 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25939 do
25940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025944if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025945 $as_echo_n "(cached) " >&6
25946else
25947 if test -n "$CXX"; then
25948 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25949else
25950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25951for as_dir in $PATH
25952do
25953 IFS=$as_save_IFS
25954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025957 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025959 break 2
25960 fi
25961done
cristy8b350f62009-11-15 23:12:43 +000025962 done
cristy3ed852e2009-09-05 21:47:34 +000025963IFS=$as_save_IFS
25964
25965fi
25966fi
25967CXX=$ac_cv_prog_CXX
25968if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025970$as_echo "$CXX" >&6; }
25971else
cristy8b350f62009-11-15 23:12:43 +000025972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025973$as_echo "no" >&6; }
25974fi
25975
25976
25977 test -n "$CXX" && break
25978 done
25979fi
25980if test -z "$CXX"; then
25981 ac_ct_CXX=$CXX
25982 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25983do
25984 # Extract the first word of "$ac_prog", so it can be a program name with args.
25985set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025988if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025989 $as_echo_n "(cached) " >&6
25990else
25991 if test -n "$ac_ct_CXX"; then
25992 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25993else
25994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25995for as_dir in $PATH
25996do
25997 IFS=$as_save_IFS
25998 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025999 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026001 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026003 break 2
26004 fi
26005done
cristy8b350f62009-11-15 23:12:43 +000026006 done
cristy3ed852e2009-09-05 21:47:34 +000026007IFS=$as_save_IFS
26008
26009fi
26010fi
26011ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26012if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026014$as_echo "$ac_ct_CXX" >&6; }
26015else
cristy8b350f62009-11-15 23:12:43 +000026016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026017$as_echo "no" >&6; }
26018fi
26019
26020
26021 test -n "$ac_ct_CXX" && break
26022done
26023
26024 if test "x$ac_ct_CXX" = x; then
26025 CXX="g++"
26026 else
26027 case $cross_compiling:$ac_tool_warned in
26028yes:)
cristy8b350f62009-11-15 23:12:43 +000026029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26031ac_tool_warned=yes ;;
26032esac
26033 CXX=$ac_ct_CXX
26034 fi
26035fi
26036
26037 fi
26038fi
26039# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026040$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026041set X $ac_compile
26042ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026043for ac_option in --version -v -V -qversion; do
26044 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026045case "(($ac_try" in
26046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047 *) ac_try_echo=$ac_try;;
26048esac
cristy8b350f62009-11-15 23:12:43 +000026049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26050$as_echo "$ac_try_echo"; } >&5
26051 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026052 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026053 if test -s conftest.err; then
26054 sed '10a\
26055... rest of stderr output deleted ...
26056 10q' conftest.err >conftest.er1
26057 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026058 fi
cristycd4c5312009-11-22 01:19:08 +000026059 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26061 test $ac_status = 0; }
26062done
cristy3ed852e2009-09-05 21:47:34 +000026063
cristy8b350f62009-11-15 23:12:43 +000026064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026065$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026066if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026067 $as_echo_n "(cached) " >&6
26068else
cristy8b350f62009-11-15 23:12:43 +000026069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026070/* end confdefs.h. */
26071
26072int
26073main ()
26074{
26075#ifndef __GNUC__
26076 choke me
26077#endif
26078
26079 ;
26080 return 0;
26081}
26082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026083if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026084 ac_compiler_gnu=yes
26085else
cristy8b350f62009-11-15 23:12:43 +000026086 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026087fi
cristy3ed852e2009-09-05 21:47:34 +000026088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26089ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26090
26091fi
cristy8b350f62009-11-15 23:12:43 +000026092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026093$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26094if test $ac_compiler_gnu = yes; then
26095 GXX=yes
26096else
26097 GXX=
26098fi
26099ac_test_CXXFLAGS=${CXXFLAGS+set}
26100ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026102$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026103if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026104 $as_echo_n "(cached) " >&6
26105else
26106 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26107 ac_cxx_werror_flag=yes
26108 ac_cv_prog_cxx_g=no
26109 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026111/* end confdefs.h. */
26112
26113int
26114main ()
26115{
26116
26117 ;
26118 return 0;
26119}
26120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026121if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026122 ac_cv_prog_cxx_g=yes
26123else
cristy8b350f62009-11-15 23:12:43 +000026124 CXXFLAGS=""
26125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026126/* end confdefs.h. */
26127
26128int
26129main ()
26130{
26131
26132 ;
26133 return 0;
26134}
26135_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026136if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026137
cristy8b350f62009-11-15 23:12:43 +000026138else
26139 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026140 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026142/* end confdefs.h. */
26143
26144int
26145main ()
26146{
26147
26148 ;
26149 return 0;
26150}
26151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026152if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026153 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026154fi
cristy3ed852e2009-09-05 21:47:34 +000026155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26156fi
cristy3ed852e2009-09-05 21:47:34 +000026157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26158fi
cristy3ed852e2009-09-05 21:47:34 +000026159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26161fi
cristy8b350f62009-11-15 23:12:43 +000026162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026163$as_echo "$ac_cv_prog_cxx_g" >&6; }
26164if test "$ac_test_CXXFLAGS" = set; then
26165 CXXFLAGS=$ac_save_CXXFLAGS
26166elif test $ac_cv_prog_cxx_g = yes; then
26167 if test "$GXX" = yes; then
26168 CXXFLAGS="-g -O2"
26169 else
26170 CXXFLAGS="-g"
26171 fi
26172else
26173 if test "$GXX" = yes; then
26174 CXXFLAGS="-O2"
26175 else
26176 CXXFLAGS=
26177 fi
26178fi
26179ac_ext=cpp
26180ac_cpp='$CXXCPP $CPPFLAGS'
26181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26184
cristy73bd4a52010-10-05 11:24:23 +000026185depcc="$CXX" am_compiler_list=
26186
26187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26188$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026189if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026190 $as_echo_n "(cached) " >&6
26191else
26192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26193 # We make a subdir and do the tests there. Otherwise we can end up
26194 # making bogus files that we don't know about and never remove. For
26195 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026196 # making a dummy file named 'D' -- because '-MD' means "put the output
26197 # in D".
cristy7247bba2012-02-05 16:37:27 +000026198 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026199 mkdir conftest.dir
26200 # Copy depcomp to subdir because otherwise we won't find it if we're
26201 # using a relative directory.
26202 cp "$am_depcomp" conftest.dir
26203 cd conftest.dir
26204 # We will build objects and dependencies in a subdirectory because
26205 # it helps to detect inapplicable dependency modes. For instance
26206 # both Tru64's cc and ICC support -MD to output dependencies as a
26207 # side effect of compilation, but ICC will put the dependencies in
26208 # the current directory while Tru64 will put them in the object
26209 # directory.
26210 mkdir sub
26211
26212 am_cv_CXX_dependencies_compiler_type=none
26213 if test "$am_compiler_list" = ""; then
26214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26215 fi
26216 am__universal=false
26217 case " $depcc " in #(
26218 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26219 esac
26220
26221 for depmode in $am_compiler_list; do
26222 # Setup a source with many dependencies, because some compilers
26223 # like to wrap large dependency lists on column 80 (with \), and
26224 # we should not choose a depcomp mode which is confused by this.
26225 #
26226 # We need to recreate these files for each test, as the compiler may
26227 # overwrite some of them when testing with obscure command lines.
26228 # This happens at least with the AIX C compiler.
26229 : > sub/conftest.c
26230 for i in 1 2 3 4 5 6; do
26231 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026232 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26233 # Solaris 10 /bin/sh.
26234 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026235 done
26236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26237
cristyc0890a62012-07-19 00:18:20 +000026238 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026239 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026240 # handle '-M -o', and we need to detect this. Also, some Intel
26241 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026242 am__obj=sub/conftest.${OBJEXT-o}
26243 am__minus_obj="-o $am__obj"
26244 case $depmode in
26245 gcc)
26246 # This depmode causes a compiler race in universal mode.
26247 test "$am__universal" = false || continue
26248 ;;
26249 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026250 # After this tag, mechanisms are not by side-effect, so they'll
26251 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026252 if test "x$enable_dependency_tracking" = xyes; then
26253 continue
26254 else
26255 break
26256 fi
26257 ;;
cristy7247bba2012-02-05 16:37:27 +000026258 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026259 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026260 # not run yet. These depmodes are late enough in the game, and
26261 # so weak that their functioning should not be impacted.
26262 am__obj=conftest.${OBJEXT-o}
26263 am__minus_obj=
26264 ;;
26265 none) break ;;
26266 esac
26267 if depmode=$depmode \
26268 source=sub/conftest.c object=$am__obj \
26269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26271 >/dev/null 2>conftest.err &&
26272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26276 # icc doesn't choke on unknown options, it will just issue warnings
26277 # or remarks (even with -Werror). So we grep stderr for any message
26278 # that says an option was ignored or not supported.
26279 # When given -MP, icc 7.0 and 7.1 complain thusly:
26280 # icc: Command line warning: ignoring option '-M'; no argument required
26281 # The diagnosis changed in icc 8.0:
26282 # icc: Command line remark: option '-MP' not supported
26283 if (grep 'ignoring option' conftest.err ||
26284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26285 am_cv_CXX_dependencies_compiler_type=$depmode
26286 break
26287 fi
26288 fi
26289 done
26290
26291 cd ..
26292 rm -rf conftest.dir
26293else
26294 am_cv_CXX_dependencies_compiler_type=none
26295fi
26296
26297fi
26298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26299$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26300CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26301
26302 if
26303 test "x$enable_dependency_tracking" != xno \
26304 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26305 am__fastdepCXX_TRUE=
26306 am__fastdepCXX_FALSE='#'
26307else
26308 am__fastdepCXX_TRUE='#'
26309 am__fastdepCXX_FALSE=
26310fi
26311
26312
cristy146497a2015-05-17 22:46:16 +000026313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy73bd4a52010-10-05 11:24:23 +000026314$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026315if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026316 $as_echo_n "(cached) " >&6
26317else
cristy146497a2015-05-17 22:46:16 +000026318 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026319ac_cpp='$CXXCPP $CPPFLAGS'
26320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26323
cristy146497a2015-05-17 22:46:16 +000026324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000026325/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000026326 int f(int x){return 1;}
26327 int f(char x){return 1;}
26328 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000026329int
26330main ()
26331{
26332bool b = true; return f(b);
26333 ;
26334 return 0;
26335}
26336_ACEOF
26337if ac_fn_cxx_try_compile "$LINENO"; then :
26338 ax_cv_cxx_bool=yes
26339else
26340 ax_cv_cxx_bool=no
26341fi
26342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000026343 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026344ac_cpp='$CXXCPP $CPPFLAGS'
26345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26348
26349
26350fi
26351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26352$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000026353 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000026354
26355$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26356
26357fi
26358
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26360$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026361if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026362 $as_echo_n "(cached) " >&6
26363else
cristy17491be2014-06-24 01:10:53 +000026364 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026365ac_cpp='$CXXCPP $CPPFLAGS'
26366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26369
26370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26371/* end confdefs.h. */
26372namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000026373 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000026374_ACEOF
26375if ac_fn_cxx_try_compile "$LINENO"; then :
26376 ax_cv_cxx_namespaces=yes
26377else
26378 ax_cv_cxx_namespaces=no
26379fi
26380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26381 ac_ext=cpp
26382ac_cpp='$CXXCPP $CPPFLAGS'
26383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26386
26387
26388fi
26389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26390$as_echo "$ax_cv_cxx_namespaces" >&6; }
26391if test "$ax_cv_cxx_namespaces" = yes; then
26392
26393$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26394
26395fi
26396
26397
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26399$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026400if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026401 $as_echo_n "(cached) " >&6
26402else
26403
26404 ac_ext=cpp
26405ac_cpp='$CXXCPP $CPPFLAGS'
26406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26409
26410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26411/* end confdefs.h. */
26412#include <iostream>
26413 std::istream& is = std::cin;
26414int
26415main ()
26416{
26417
26418 ;
26419 return 0;
26420}
26421_ACEOF
26422if ac_fn_cxx_try_compile "$LINENO"; then :
26423 ax_cv_cxx_have_std_namespace=yes
26424else
26425 ax_cv_cxx_have_std_namespace=no
26426fi
26427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26428 ac_ext=cpp
26429ac_cpp='$CXXCPP $CPPFLAGS'
26430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26433
26434
26435fi
26436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26437$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26438 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26439
26440$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26441
26442 fi
26443
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26445$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026446if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026447 $as_echo_n "(cached) " >&6
26448else
26449
26450
26451 ac_ext=cpp
26452ac_cpp='$CXXCPP $CPPFLAGS'
26453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26456
26457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26458/* end confdefs.h. */
26459#include <iostream>
26460#include <map>
26461#include <iomanip>
26462#include <cmath>
26463#ifdef HAVE_NAMESPACES
26464using namespace std;
26465#endif
26466int
26467main ()
26468{
26469return 0;
26470 ;
26471 return 0;
26472}
26473_ACEOF
26474if ac_fn_cxx_try_compile "$LINENO"; then :
26475 ac_cv_cxx_have_std_libs=yes
26476else
26477 ac_cv_cxx_have_std_libs=no
26478fi
26479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26480 ac_ext=cpp
26481ac_cpp='$CXXCPP $CPPFLAGS'
26482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26485
26486
26487fi
26488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26489$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26490if test "$ac_cv_cxx_have_std_libs" = yes; then
26491
26492$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26493
26494fi
26495
cristy3ed852e2009-09-05 21:47:34 +000026496
26497 OPENMP_CXXFLAGS=
26498 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026499if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026500 enableval=$enable_openmp;
26501fi
26502
26503 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26505$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026506if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026507 $as_echo_n "(cached) " >&6
26508else
cristy8b350f62009-11-15 23:12:43 +000026509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26510/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026511
26512#ifndef _OPENMP
26513 choke me
26514#endif
26515#include <omp.h>
26516int main () { return omp_get_num_threads (); }
26517
26518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026519if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026520 ac_cv_prog_cxx_openmp='none needed'
26521else
cristy8b350f62009-11-15 23:12:43 +000026522 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026523 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26524 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026525 ac_save_CXXFLAGS=$CXXFLAGS
26526 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26528/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026529
26530#ifndef _OPENMP
26531 choke me
26532#endif
26533#include <omp.h>
26534int main () { return omp_get_num_threads (); }
26535
26536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026537if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026538 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026539fi
cristy8b350f62009-11-15 23:12:43 +000026540rm -f core conftest.err conftest.$ac_objext \
26541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026542 CXXFLAGS=$ac_save_CXXFLAGS
26543 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26544 break
26545 fi
26546 done
26547fi
cristy8b350f62009-11-15 23:12:43 +000026548rm -f core conftest.err conftest.$ac_objext \
26549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026550fi
cristy8b350f62009-11-15 23:12:43 +000026551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026552$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26553 case $ac_cv_prog_cxx_openmp in #(
26554 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026555 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026556 *)
cristy8b350f62009-11-15 23:12:43 +000026557 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026558 esac
26559 fi
26560
26561
26562 ac_ext=c
26563ac_cpp='$CPP $CPPFLAGS'
26564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26566ac_compiler_gnu=$ac_cv_c_compiler_gnu
26567
26568
cristy8b350f62009-11-15 23:12:43 +000026569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026570$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26571 if \
cristy964cb7f2010-04-25 23:18:00 +000026572 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026573 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026574 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026575 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026576 have_magick_plus_plus='yes'
26577 else
26578 have_magick_plus_plus='no (failed tests)'
26579 fi
cristyad38abe2012-12-23 23:03:21 +000026580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26581$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026582 LIBS="$OLIBS"
26583fi
cristy73bd4a52010-10-05 11:24:23 +000026584 if test "$have_magick_plus_plus" = 'yes'; then
26585 WITH_MAGICK_PLUS_PLUS_TRUE=
26586 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26587else
26588 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26589 WITH_MAGICK_PLUS_PLUS_FALSE=
26590fi
26591
cristy3ed852e2009-09-05 21:47:34 +000026592
26593# Only check for delegate libraries in subdirectories if requested.
26594if test "$enable_delegate_build" != 'no'; then
26595 # Check for delegate sub-directories and add -I & -L options as required.
26596 # This presumes that delegates are installed as detailed in the ImageMagick
26597 # README. If delegates are installed in a standard location where the
26598 # compiler will automatically find them then these options should not be
26599 # required.
26600
26601 #
26602 # Most delegates have includes in the same directory as the library, but not all...
26603 #
26604 # Includes
cristy834307f2015-01-25 00:43:41 +000026605 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026606 if test -d "$builddir/$dir"; then
26607 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26608 else
26609 if test -d "$srcdirfull/$dir"; then
26610 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26611 fi
26612 fi
26613 done
26614
26615 # Libraries
cristy834307f2015-01-25 00:43:41 +000026616 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026617 if test -d "$builddir/$dir/.libs"; then
26618 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26619 else
26620 if test -d "$srcdirfull/$dir/.libs"; then
26621 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26622 fi
26623 fi
26624 if test -d "$builddir/$dir"; then
26625 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26626 else
26627 if test -d "$srcdirfull/$dir"; then
26628 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26629 fi
26630 fi
26631 done
26632fi
26633
26634# Assume that delegate headers reside under same directory as ImageMagick
26635# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000026636MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000026637
26638#
26639# Find the X11 RGB database
26640#
cristy8b350f62009-11-15 23:12:43 +000026641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026642$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026643if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026644 $as_echo_n "(cached) " >&6
26645else
26646 # Look for the header file in a standard set of common directories.
26647# Check X11 before X11Rn because it is often a symlink to the current release.
26648 for ac_dir in \
26649 /lib/usr/lib/X11 \
26650 /usr/X11/lib \
26651 /usr/X11R4/lib \
26652 /usr/X11R5/lib \
26653 /usr/X11R6/lib \
26654 /usr/X11R7/lib \
26655 /usr/X386/lib \
26656 /usr/XFree86/lib/X11 \
26657 /usr/athena/lib \
26658 /usr/lib \
26659 /usr/lib/X11 \
26660 /usr/lib/X11R4 \
26661 /usr/lib/X11R5 \
26662 /usr/lib/X11R6 \
26663 /usr/lib/X11R7 \
26664 /usr/local/X11/lib \
26665 /usr/local/X11R4/lib \
26666 /usr/local/X11R5/lib \
26667 /usr/local/X11R6/lib \
26668 /usr/local/lib \
26669 /usr/local/lib/X11 \
26670 /usr/local/lib/X11R4 \
26671 /usr/local/lib/X11R5 \
26672 /usr/local/lib/X11R6 \
26673 /usr/local/lib/X11R7 \
26674 /usr/local/x11r5/lib \
26675 /usr/lpp/Xamples/lib \
26676 /usr/openwin/lib \
26677 /usr/openwin/share/lib \
26678 /usr/unsupported/lib \
26679 /usr/x386/lib \
26680 ; do
26681 if test -f "$ac_dir/X11/rgb.txt"; then
26682 im_cv_x_configure="$ac_dir/X11/"
26683 break
26684 elif test -f "$ac_dir/rgb.txt"; then
26685 im_cv_x_configure="$ac_dir/"
26686 break
26687 fi
26688
26689 done
26690fi
cristy8b350f62009-11-15 23:12:43 +000026691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026692$as_echo "$im_cv_x_configure" >&6; }
26693X11_CONFIGURE_PATH="$im_cv_x_configure"
26694case "${build_os}" in
26695 mingw* )
26696 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26697 ;;
26698esac
26699
26700cat >>confdefs.h <<_ACEOF
26701#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26702_ACEOF
26703
26704
26705#
26706# Find OpenMP library
26707#
26708GOMP_LIBS=''
26709if test "$enable_openmp" != 'no'; then
26710 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026711 # Open64 (passes for GCC but uses different OpenMP implementation)
26712 if test "x$GOMP_LIBS" = x ; then
26713 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26715$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26716if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26717 $as_echo_n "(cached) " >&6
26718else
26719 ac_check_lib_save_LIBS=$LIBS
26720LIBS="-lopenmp $LIBS"
26721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26722/* end confdefs.h. */
26723
26724/* Override any GCC internal prototype to avoid an error.
26725 Use char because int might match the return type of a GCC
26726 builtin and then its argument prototype would still apply. */
26727#ifdef __cplusplus
26728extern "C"
26729#endif
26730char omp_get_num_procs ();
26731int
26732main ()
26733{
26734return omp_get_num_procs ();
26735 ;
26736 return 0;
26737}
26738_ACEOF
26739if ac_fn_c_try_link "$LINENO"; then :
26740 ac_cv_lib_openmp_omp_get_num_procs=yes
26741else
26742 ac_cv_lib_openmp_omp_get_num_procs=no
26743fi
26744rm -f core conftest.err conftest.$ac_objext \
26745 conftest$ac_exeext conftest.$ac_ext
26746LIBS=$ac_check_lib_save_LIBS
26747fi
26748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26749$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26750if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26751 GOMP_LIBS="-lopenmp"
26752fi
26753
26754 fi
26755 fi
26756 # GCC
26757 if test "x$GOMP_LIBS" = x ; then
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026759$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026760if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026761 $as_echo_n "(cached) " >&6
26762else
26763 ac_check_lib_save_LIBS=$LIBS
26764LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026766/* end confdefs.h. */
26767
26768/* Override any GCC internal prototype to avoid an error.
26769 Use char because int might match the return type of a GCC
26770 builtin and then its argument prototype would still apply. */
26771#ifdef __cplusplus
26772extern "C"
26773#endif
26774char GOMP_parallel_start ();
26775int
26776main ()
26777{
26778return GOMP_parallel_start ();
26779 ;
26780 return 0;
26781}
26782_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026783if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026784 ac_cv_lib_gomp_GOMP_parallel_start=yes
26785else
cristy8b350f62009-11-15 23:12:43 +000026786 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026787fi
cristy8b350f62009-11-15 23:12:43 +000026788rm -f core conftest.err conftest.$ac_objext \
26789 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026790LIBS=$ac_check_lib_save_LIBS
26791fi
cristy8b350f62009-11-15 23:12:43 +000026792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026793$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026794if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026795 GOMP_LIBS="-lgomp"
26796fi
cristy18307f12011-12-30 01:20:16 +000026797
26798 fi
cristy3ed852e2009-09-05 21:47:34 +000026799 else
cristy18307f12011-12-30 01:20:16 +000026800 # Sun CC
26801 if test "x$GOMP_LIBS" = x ; then
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026803$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026804if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026805 $as_echo_n "(cached) " >&6
26806else
26807 ac_check_lib_save_LIBS=$LIBS
26808LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026810/* end confdefs.h. */
26811
26812/* Override any GCC internal prototype to avoid an error.
26813 Use char because int might match the return type of a GCC
26814 builtin and then its argument prototype would still apply. */
26815#ifdef __cplusplus
26816extern "C"
26817#endif
26818char sunw_mp_register_warn ();
26819int
26820main ()
26821{
26822return sunw_mp_register_warn ();
26823 ;
26824 return 0;
26825}
26826_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026827if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026828 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26829else
cristy8b350f62009-11-15 23:12:43 +000026830 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026831fi
cristy8b350f62009-11-15 23:12:43 +000026832rm -f core conftest.err conftest.$ac_objext \
26833 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026834LIBS=$ac_check_lib_save_LIBS
26835fi
cristy8b350f62009-11-15 23:12:43 +000026836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026837$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026838if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026839 GOMP_LIBS="-lmtsk"
26840fi
cristy18307f12011-12-30 01:20:16 +000026841
26842 fi
26843 # AIX xlc
26844 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026846$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026847if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026848 $as_echo_n "(cached) " >&6
26849else
26850 ac_check_lib_save_LIBS=$LIBS
26851LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026853/* end confdefs.h. */
26854
26855/* Override any GCC internal prototype to avoid an error.
26856 Use char because int might match the return type of a GCC
26857 builtin and then its argument prototype would still apply. */
26858#ifdef __cplusplus
26859extern "C"
26860#endif
26861char _xlsmpFlush ();
26862int
26863main ()
26864{
26865return _xlsmpFlush ();
26866 ;
26867 return 0;
26868}
26869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026870if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026871 ac_cv_lib_xlsmp__xlsmpFlush=yes
26872else
cristy8b350f62009-11-15 23:12:43 +000026873 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026874fi
cristy8b350f62009-11-15 23:12:43 +000026875rm -f core conftest.err conftest.$ac_objext \
26876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026877LIBS=$ac_check_lib_save_LIBS
26878fi
cristy8b350f62009-11-15 23:12:43 +000026879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026880$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026881if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026882 GOMP_LIBS="-lxlsmp"
26883fi
cristy18307f12011-12-30 01:20:16 +000026884
26885 fi
26886 # SGI IRIX 6.5 MIPSpro C/C++
26887 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026890if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026891 $as_echo_n "(cached) " >&6
26892else
26893 ac_check_lib_save_LIBS=$LIBS
26894LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026896/* end confdefs.h. */
26897
26898/* Override any GCC internal prototype to avoid an error.
26899 Use char because int might match the return type of a GCC
26900 builtin and then its argument prototype would still apply. */
26901#ifdef __cplusplus
26902extern "C"
26903#endif
26904char mp_destroy ();
26905int
26906main ()
26907{
26908return mp_destroy ();
26909 ;
26910 return 0;
26911}
26912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026913if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026914 ac_cv_lib_mp_mp_destroy=yes
26915else
cristy8b350f62009-11-15 23:12:43 +000026916 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026917fi
cristy8b350f62009-11-15 23:12:43 +000026918rm -f core conftest.err conftest.$ac_objext \
26919 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026920LIBS=$ac_check_lib_save_LIBS
26921fi
cristy8b350f62009-11-15 23:12:43 +000026922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026923$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026924if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026925 GOMP_LIBS="-lmp"
26926fi
cristy18307f12011-12-30 01:20:16 +000026927
26928 fi
cristy3ed852e2009-09-05 21:47:34 +000026929 fi
26930 LIBS="$GOMP_LIBS $LIBS"
26931fi
26932
26933
cristy12ac8192014-11-04 13:59:13 +000026934#
cristy3b0097d2014-11-04 15:34:47 +000026935# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000026936#
cristy3b0097d2014-11-04 15:34:47 +000026937have_jemalloc='no'
26938JEMALLOC_LIBS=''
26939if test "$with_jemalloc" != 'no'; then
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
26941$as_echo_n "checking for JEMALLOC support ... " >&6; }
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26943$as_echo "" >&6; }
26944 failed=0
26945 passed=0
26946 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26947if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026948 passed=`expr $passed + 1`
26949else
26950 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026951fi
26952
26953
cristy3b0097d2014-11-04 15:34:47 +000026954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26955$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26956if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000026957 $as_echo_n "(cached) " >&6
26958else
26959 ac_check_lib_save_LIBS=$LIBS
26960LIBS="-ljemalloc $LIBS"
26961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962/* end confdefs.h. */
26963
26964/* Override any GCC internal prototype to avoid an error.
26965 Use char because int might match the return type of a GCC
26966 builtin and then its argument prototype would still apply. */
26967#ifdef __cplusplus
26968extern "C"
26969#endif
cristy3b0097d2014-11-04 15:34:47 +000026970char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026971int
26972main ()
26973{
cristy3b0097d2014-11-04 15:34:47 +000026974return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000026975 ;
26976 return 0;
26977}
26978_ACEOF
26979if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000026980 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000026981else
cristy3b0097d2014-11-04 15:34:47 +000026982 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000026983fi
26984rm -f core conftest.err conftest.$ac_objext \
26985 conftest$ac_exeext conftest.$ac_ext
26986LIBS=$ac_check_lib_save_LIBS
26987fi
cristy3b0097d2014-11-04 15:34:47 +000026988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26989$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26990if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000026991 passed=`expr $passed + 1`
26992else
26993 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000026994fi
26995
cristy3b0097d2014-11-04 15:34:47 +000026996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26997$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26998 if test $passed -gt 0; then
26999 if test $failed -gt 0; then
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27001$as_echo "no -- some components failed test" >&6; }
27002 have_jemalloc='no (failed tests)'
27003 else
27004 JEMALLOC_LIBS='-ljemalloc'
27005 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027006
cristy3b0097d2014-11-04 15:34:47 +000027007$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027008
cristy3b0097d2014-11-04 15:34:47 +000027009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27010$as_echo "yes" >&6; }
27011 have_jemalloc='yes'
27012 fi
cristy12ac8192014-11-04 13:59:13 +000027013 else
cristy3b0097d2014-11-04 15:34:47 +000027014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27015$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027016 fi
27017fi
cristy3b0097d2014-11-04 15:34:47 +000027018 if test "$have_jemalloc" = 'yes'; then
27019 HasJEMALLOC_TRUE=
27020 HasJEMALLOC_FALSE='#'
27021else
27022 HasJEMALLOC_TRUE='#'
27023 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027024fi
27025
cristy3b0097d2014-11-04 15:34:47 +000027026
27027
cristy3ed852e2009-09-05 21:47:34 +000027028#
27029# Check for umem.
27030#
27031have_umem='no'
27032UMEM_LIBS=''
27033if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027035$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27037$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027038 failed=0
27039 passed=0
cristy8b350f62009-11-15 23:12:43 +000027040 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027041if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027042 passed=`expr $passed + 1`
27043else
27044 failed=`expr $failed + 1`
27045fi
27046
27047
cristy8b350f62009-11-15 23:12:43 +000027048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027049$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027050if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027051 $as_echo_n "(cached) " >&6
27052else
27053 ac_check_lib_save_LIBS=$LIBS
27054LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027056/* end confdefs.h. */
27057
27058/* Override any GCC internal prototype to avoid an error.
27059 Use char because int might match the return type of a GCC
27060 builtin and then its argument prototype would still apply. */
27061#ifdef __cplusplus
27062extern "C"
27063#endif
27064char umem_alloc ();
27065int
27066main ()
27067{
27068return umem_alloc ();
27069 ;
27070 return 0;
27071}
27072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027073if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027074 ac_cv_lib_umem_umem_alloc=yes
27075else
cristy8b350f62009-11-15 23:12:43 +000027076 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027077fi
cristy8b350f62009-11-15 23:12:43 +000027078rm -f core conftest.err conftest.$ac_objext \
27079 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027080LIBS=$ac_check_lib_save_LIBS
27081fi
cristy8b350f62009-11-15 23:12:43 +000027082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027083$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027084if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027085 passed=`expr $passed + 1`
27086else
27087 failed=`expr $failed + 1`
27088fi
27089
cristy8b350f62009-11-15 23:12:43 +000027090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027091$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027092if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027093 $as_echo_n "(cached) " >&6
27094else
27095 ac_check_lib_save_LIBS=$LIBS
27096LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027098/* end confdefs.h. */
27099
27100/* Override any GCC internal prototype to avoid an error.
27101 Use char because int might match the return type of a GCC
27102 builtin and then its argument prototype would still apply. */
27103#ifdef __cplusplus
27104extern "C"
27105#endif
27106char umem_free ();
27107int
27108main ()
27109{
27110return umem_free ();
27111 ;
27112 return 0;
27113}
27114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027115if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027116 ac_cv_lib_umem_umem_free=yes
27117else
cristy8b350f62009-11-15 23:12:43 +000027118 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027119fi
cristy8b350f62009-11-15 23:12:43 +000027120rm -f core conftest.err conftest.$ac_objext \
27121 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027122LIBS=$ac_check_lib_save_LIBS
27123fi
cristy8b350f62009-11-15 23:12:43 +000027124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027125$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027126if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027127 passed=`expr $passed + 1`
27128else
27129 failed=`expr $failed + 1`
27130fi
27131
cristy8b350f62009-11-15 23:12:43 +000027132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027133$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27134 if test $passed -gt 0; then
27135 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27137$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027138 have_umem='no (failed tests)'
27139 else
27140 UMEM_LIBS='-lumem'
27141 LIBS="$UMEM_LIBS $LIBS"
27142
cristy8b350f62009-11-15 23:12:43 +000027143$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027144
cristyad38abe2012-12-23 23:03:21 +000027145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27146$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027147 have_umem='yes'
27148 fi
27149 else
cristyad38abe2012-12-23 23:03:21 +000027150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27151$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027152 fi
27153fi
cristy73bd4a52010-10-05 11:24:23 +000027154 if test "$have_umem" = 'yes'; then
27155 HasUMEM_TRUE=
27156 HasUMEM_FALSE='#'
27157else
27158 HasUMEM_TRUE='#'
27159 HasUMEM_FALSE=
27160fi
27161
cristy3ed852e2009-09-05 21:47:34 +000027162
27163
27164#
27165# Add support for ccmalloc memory debugging library if requested
27166#
27167have_ccmalloc='no'
27168CCMALLOC_LIBS=''
27169if test "$enable_ccmalloc" = 'yes'; then
27170 # Extract the first word of "ccmalloc", so it can be a program name with args.
27171set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027174if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027175 $as_echo_n "(cached) " >&6
27176else
27177 case $CCMALLOCDelegate in
27178 [\\/]* | ?:[\\/]*)
27179 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27180 ;;
27181 *)
27182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27183for as_dir in $PATH
27184do
27185 IFS=$as_save_IFS
27186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027189 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027191 break 2
27192 fi
27193done
cristy8b350f62009-11-15 23:12:43 +000027194 done
cristy3ed852e2009-09-05 21:47:34 +000027195IFS=$as_save_IFS
27196
27197 ;;
27198esac
27199fi
27200CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27201if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027203$as_echo "$CCMALLOCDelegate" >&6; }
27204else
cristy8b350f62009-11-15 23:12:43 +000027205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027206$as_echo "no" >&6; }
27207fi
27208
27209
27210 if test -n "$CCMALLOCDelegate"; then
27211 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27212 OLIBS="$LIBS"
27213 # Assume that gcc is used with ccmalloc.
27214 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027216$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027217if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027218 $as_echo_n "(cached) " >&6
27219else
27220 ac_check_lib_save_LIBS=$LIBS
27221LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027223/* end confdefs.h. */
27224
27225/* Override any GCC internal prototype to avoid an error.
27226 Use char because int might match the return type of a GCC
27227 builtin and then its argument prototype would still apply. */
27228#ifdef __cplusplus
27229extern "C"
27230#endif
27231char ccmalloc_malloc ();
27232int
27233main ()
27234{
27235return ccmalloc_malloc ();
27236 ;
27237 return 0;
27238}
27239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027240if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027241 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27242else
cristy8b350f62009-11-15 23:12:43 +000027243 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027244fi
cristy8b350f62009-11-15 23:12:43 +000027245rm -f core conftest.err conftest.$ac_objext \
27246 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027247LIBS=$ac_check_lib_save_LIBS
27248fi
cristy8b350f62009-11-15 23:12:43 +000027249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027250$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027251if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027252 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27253fi
27254
27255 if test -n "$CCMALLOC_LIBS"; then
27256 LIBS="$OLIBS"
27257 LIBS="$LIBS $CCMALLOC_LIBS"
27258 have_ccmalloc='yes'
27259 else
27260 LIBS="$OLIBS"
27261 fi
27262 fi
27263fi
27264
27265#
cristy944e51f2013-04-16 18:45:02 +000027266# Add support for 'huge pages' if requested
27267#
27268if test "x$enable_hugepages" != "xno"; then :
27269
27270
27271$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27272
27273
27274fi
27275
27276#
cristy3ed852e2009-09-05 21:47:34 +000027277# Add support for efence memory debugging library if requested
27278#
27279if test "$enable_efence" = 'yes'; then
27280 EFENCE_LIBS='-lefence'
27281 LIBS="$EFENCE_LIBS $LIBS"
27282fi
27283
cristy3ed852e2009-09-05 21:47:34 +000027284
27285#
27286# Check for BZLIB
27287#
27288
27289
27290# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027291if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027292 withval=$with_bzlib; with_bzlib=$withval
27293else
27294 with_bzlib='yes'
27295fi
27296
27297
27298if test "$with_bzlib" != 'yes'; then
27299 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27300fi
27301
27302have_bzlib='no'
27303if test "$with_bzlib" != 'no'; then
27304 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27306$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027308$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27310$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027311 failed=0
27312 passed=0
27313 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027314 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027315if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027316 passed=`expr $passed + 1`
27317else
27318 failed=`expr $failed + 1`
27319fi
27320
27321
cristy8b350f62009-11-15 23:12:43 +000027322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027323$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027324if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027325 $as_echo_n "(cached) " >&6
27326else
27327 ac_check_lib_save_LIBS=$LIBS
27328LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027330/* end confdefs.h. */
27331
27332/* Override any GCC internal prototype to avoid an error.
27333 Use char because int might match the return type of a GCC
27334 builtin and then its argument prototype would still apply. */
27335#ifdef __cplusplus
27336extern "C"
27337#endif
27338char BZ2_bzDecompress ();
27339int
27340main ()
27341{
27342return BZ2_bzDecompress ();
27343 ;
27344 return 0;
27345}
27346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027348 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27349else
cristy8b350f62009-11-15 23:12:43 +000027350 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027351fi
cristy8b350f62009-11-15 23:12:43 +000027352rm -f core conftest.err conftest.$ac_objext \
27353 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027354LIBS=$ac_check_lib_save_LIBS
27355fi
cristy8b350f62009-11-15 23:12:43 +000027356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027357$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027358if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027359 found_libbz=`expr $found_libbz + 1`
27360fi
27361
27362 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027364$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027365if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027366 $as_echo_n "(cached) " >&6
27367else
27368 ac_check_lib_save_LIBS=$LIBS
27369LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027371/* end confdefs.h. */
27372
27373/* Override any GCC internal prototype to avoid an error.
27374 Use char because int might match the return type of a GCC
27375 builtin and then its argument prototype would still apply. */
27376#ifdef __cplusplus
27377extern "C"
27378#endif
27379char _imp__BZ2_decompress ();
27380int
27381main ()
27382{
27383return _imp__BZ2_decompress ();
27384 ;
27385 return 0;
27386}
27387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027388if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027389 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27390else
cristy8b350f62009-11-15 23:12:43 +000027391 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027392fi
cristy8b350f62009-11-15 23:12:43 +000027393rm -f core conftest.err conftest.$ac_objext \
27394 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027395LIBS=$ac_check_lib_save_LIBS
27396fi
cristy8b350f62009-11-15 23:12:43 +000027397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027398$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027399if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027400 found_libbz=`expr $found_libbz + 1`
27401fi
27402
27403 fi
27404 if test $found_libbz -gt 0; then
27405 passed=`expr $passed + 1`
27406 else
27407 failed=`expr $failed + 1`
27408 fi
cristy8b350f62009-11-15 23:12:43 +000027409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027410$as_echo_n "checking if BZLIB package is complete... " >&6; }
27411 if test $passed -gt 0; then
27412 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27414$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027415 have_bzlib='no (failed tests)'
27416 else
27417 BZLIB_LIBS='-lbz2'
27418 LIBS="$BZLIB_LIBS $LIBS"
27419
cristy8b350f62009-11-15 23:12:43 +000027420$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027421
cristyad38abe2012-12-23 23:03:21 +000027422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27423$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027424 have_bzlib='yes'
27425 fi
27426 else
cristyad38abe2012-12-23 23:03:21 +000027427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27428$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027429 fi
27430fi
cristy73bd4a52010-10-05 11:24:23 +000027431 if test "$have_bzlib" = 'yes'; then
27432 BZLIB_DELEGATE_TRUE=
27433 BZLIB_DELEGATE_FALSE='#'
27434else
27435 BZLIB_DELEGATE_TRUE='#'
27436 BZLIB_DELEGATE_FALSE=
27437fi
27438
cristy3ed852e2009-09-05 21:47:34 +000027439
27440
27441#
27442# Find the X11 include and library directories.
27443#
27444IPC_LIBS=''
27445X11_LIBS=''
27446XEXT_LIBS=''
27447XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027449$as_echo_n "checking for X... " >&6; }
27450
27451
27452# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027453if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027454 withval=$with_x;
27455fi
27456
27457# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27458if test "x$with_x" = xno; then
27459 # The user explicitly disabled X.
27460 have_x=disabled
27461else
27462 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027463 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027464 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027465 $as_echo_n "(cached) " >&6
27466else
27467 # One or both of the vars are not set, and there is no cached value.
27468ac_x_includes=no ac_x_libraries=no
27469rm -f -r conftest.dir
27470if mkdir conftest.dir; then
27471 cd conftest.dir
27472 cat >Imakefile <<'_ACEOF'
27473incroot:
27474 @echo incroot='${INCROOT}'
27475usrlibdir:
27476 @echo usrlibdir='${USRLIBDIR}'
27477libdir:
27478 @echo libdir='${LIBDIR}'
27479_ACEOF
27480 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027481 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027482 for ac_var in incroot usrlibdir libdir; do
27483 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27484 done
27485 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27486 for ac_extension in a so sl dylib la dll; do
27487 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27488 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27489 ac_im_usrlibdir=$ac_im_libdir; break
27490 fi
27491 done
27492 # Screen out bogus values from the imake configuration. They are
27493 # bogus both because they are the default anyway, and because
27494 # using them would break gcc on systems where it needs fixed includes.
27495 case $ac_im_incroot in
27496 /usr/include) ac_x_includes= ;;
27497 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27498 esac
27499 case $ac_im_usrlibdir in
27500 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27501 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27502 esac
27503 fi
27504 cd ..
27505 rm -f -r conftest.dir
27506fi
27507
27508# Standard set of common directories for X headers.
27509# Check X11 before X11Rn because it is often a symlink to the current release.
27510ac_x_header_dirs='
27511/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027512/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027513/usr/X11R6/include
27514/usr/X11R5/include
27515/usr/X11R4/include
27516
27517/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027518/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027519/usr/include/X11R6
27520/usr/include/X11R5
27521/usr/include/X11R4
27522
27523/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027524/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027525/usr/local/X11R6/include
27526/usr/local/X11R5/include
27527/usr/local/X11R4/include
27528
27529/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027530/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027531/usr/local/include/X11R6
27532/usr/local/include/X11R5
27533/usr/local/include/X11R4
27534
27535/usr/X386/include
27536/usr/x386/include
27537/usr/XFree86/include/X11
27538
27539/usr/include
27540/usr/local/include
27541/usr/unsupported/include
27542/usr/athena/include
27543/usr/local/x11r5/include
27544/usr/lpp/Xamples/include
27545
27546/usr/openwin/include
27547/usr/openwin/share/include'
27548
27549if test "$ac_x_includes" = no; then
27550 # Guess where to find include files, by looking for Xlib.h.
27551 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027553/* end confdefs.h. */
27554#include <X11/Xlib.h>
27555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027556if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027557 # We can compile using X headers with no special include directory.
27558ac_x_includes=
27559else
cristyc7083c12009-10-14 03:16:55 +000027560 for ac_dir in $ac_x_header_dirs; do
27561 if test -r "$ac_dir/X11/Xlib.h"; then
27562 ac_x_includes=$ac_dir
27563 break
27564 fi
27565done
27566fi
cristyda16f162011-02-19 23:52:17 +000027567rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027568fi # $ac_x_includes = no
27569
27570if test "$ac_x_libraries" = no; then
27571 # Check for the libraries.
27572 # See if we find them without any special options.
27573 # Don't add to $LIBS permanently.
27574 ac_save_LIBS=$LIBS
27575 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027577/* end confdefs.h. */
27578#include <X11/Xlib.h>
27579int
27580main ()
27581{
27582XrmInitialize ()
27583 ;
27584 return 0;
27585}
27586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027587if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027588 LIBS=$ac_save_LIBS
27589# We can link X programs with no special library path.
27590ac_x_libraries=
27591else
cristy8b350f62009-11-15 23:12:43 +000027592 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027593for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27594do
27595 # Don't even attempt the hair of trying to link an X program!
27596 for ac_extension in a so sl dylib la dll; do
27597 if test -r "$ac_dir/libX11.$ac_extension"; then
27598 ac_x_libraries=$ac_dir
27599 break 2
27600 fi
27601 done
27602done
27603fi
cristy8b350f62009-11-15 23:12:43 +000027604rm -f core conftest.err conftest.$ac_objext \
27605 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027606fi # $ac_x_libraries = no
27607
27608case $ac_x_includes,$ac_x_libraries in #(
27609 no,* | *,no | *\'*)
27610 # Didn't find X, or a directory has "'" in its name.
27611 ac_cv_have_x="have_x=no";; #(
27612 *)
27613 # Record where we found X for the cache.
27614 ac_cv_have_x="have_x=yes\
27615 ac_x_includes='$ac_x_includes'\
27616 ac_x_libraries='$ac_x_libraries'"
27617esac
27618fi
27619;; #(
27620 *) have_x=yes;;
27621 esac
27622 eval "$ac_cv_have_x"
27623fi # $with_x != no
27624
27625if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027627$as_echo "$have_x" >&6; }
27628 no_x=yes
27629else
27630 # If each of the values was on the command line, it overrides each guess.
27631 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27632 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27633 # Update the cache value to reflect the command line values.
27634 ac_cv_have_x="have_x=yes\
27635 ac_x_includes='$x_includes'\
27636 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027638$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27639fi
27640
cristy3ed852e2009-09-05 21:47:34 +000027641if test "$no_x" = yes; then
27642 # Not all programs may use this symbol, but it does not hurt to define it.
27643
cristy8b350f62009-11-15 23:12:43 +000027644$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027645
27646 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27647else
27648 if test -n "$x_includes"; then
27649 X_CFLAGS="$X_CFLAGS -I$x_includes"
27650 fi
27651
27652 # It would also be nice to do this for all -L options, not just this one.
27653 if test -n "$x_libraries"; then
27654 X_LIBS="$X_LIBS -L$x_libraries"
27655 # For Solaris; some versions of Sun CC require a space after -R and
27656 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27659 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27660 ac_xsave_c_werror_flag=$ac_c_werror_flag
27661 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027663/* end confdefs.h. */
27664
27665int
27666main ()
27667{
27668
27669 ;
27670 return 0;
27671}
27672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027673if ac_fn_c_try_link "$LINENO"; then :
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027675$as_echo "no" >&6; }
27676 X_LIBS="$X_LIBS -R$x_libraries"
27677else
cristy8b350f62009-11-15 23:12:43 +000027678 LIBS="$ac_xsave_LIBS -R $x_libraries"
27679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027680/* end confdefs.h. */
27681
27682int
27683main ()
27684{
27685
27686 ;
27687 return 0;
27688}
27689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027690if ac_fn_c_try_link "$LINENO"; then :
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo "yes" >&6; }
27693 X_LIBS="$X_LIBS -R $x_libraries"
27694else
cristy8b350f62009-11-15 23:12:43 +000027695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo "neither works" >&6; }
27697fi
cristy8b350f62009-11-15 23:12:43 +000027698rm -f core conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027700fi
cristy8b350f62009-11-15 23:12:43 +000027701rm -f core conftest.err conftest.$ac_objext \
27702 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027703 ac_c_werror_flag=$ac_xsave_c_werror_flag
27704 LIBS=$ac_xsave_LIBS
27705 fi
27706
27707 # Check for system-dependent libraries X programs must link with.
27708 # Do this before checking for the system-independent R6 libraries
27709 # (-lICE), since we may need -lsocket or whatever for X linking.
27710
27711 if test "$ISC" = yes; then
27712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27713 else
27714 # Martyn Johnson says this is needed for Ultrix, if the X
27715 # libraries were built with DECnet support. And Karl Berry says
27716 # the Alpha needs dnet_stub (dnet does not exist).
27717 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027719/* end confdefs.h. */
27720
27721/* Override any GCC internal prototype to avoid an error.
27722 Use char because int might match the return type of a GCC
27723 builtin and then its argument prototype would still apply. */
27724#ifdef __cplusplus
27725extern "C"
27726#endif
27727char XOpenDisplay ();
27728int
27729main ()
27730{
27731return XOpenDisplay ();
27732 ;
27733 return 0;
27734}
27735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027736if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027737
cristy8b350f62009-11-15 23:12:43 +000027738else
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027740$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027741if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027742 $as_echo_n "(cached) " >&6
27743else
27744 ac_check_lib_save_LIBS=$LIBS
27745LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027747/* end confdefs.h. */
27748
27749/* Override any GCC internal prototype to avoid an error.
27750 Use char because int might match the return type of a GCC
27751 builtin and then its argument prototype would still apply. */
27752#ifdef __cplusplus
27753extern "C"
27754#endif
27755char dnet_ntoa ();
27756int
27757main ()
27758{
27759return dnet_ntoa ();
27760 ;
27761 return 0;
27762}
27763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027764if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027765 ac_cv_lib_dnet_dnet_ntoa=yes
27766else
cristy8b350f62009-11-15 23:12:43 +000027767 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027768fi
cristy8b350f62009-11-15 23:12:43 +000027769rm -f core conftest.err conftest.$ac_objext \
27770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027771LIBS=$ac_check_lib_save_LIBS
27772fi
cristy8b350f62009-11-15 23:12:43 +000027773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027775if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27777fi
27778
27779 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027781$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027782if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027783 $as_echo_n "(cached) " >&6
27784else
27785 ac_check_lib_save_LIBS=$LIBS
27786LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027788/* end confdefs.h. */
27789
27790/* Override any GCC internal prototype to avoid an error.
27791 Use char because int might match the return type of a GCC
27792 builtin and then its argument prototype would still apply. */
27793#ifdef __cplusplus
27794extern "C"
27795#endif
27796char dnet_ntoa ();
27797int
27798main ()
27799{
27800return dnet_ntoa ();
27801 ;
27802 return 0;
27803}
27804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027806 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27807else
cristy8b350f62009-11-15 23:12:43 +000027808 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027809fi
cristy8b350f62009-11-15 23:12:43 +000027810rm -f core conftest.err conftest.$ac_objext \
27811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027812LIBS=$ac_check_lib_save_LIBS
27813fi
cristy8b350f62009-11-15 23:12:43 +000027814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027815$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027816if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027817 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27818fi
27819
27820 fi
27821fi
cristy8b350f62009-11-15 23:12:43 +000027822rm -f core conftest.err conftest.$ac_objext \
27823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027824 LIBS="$ac_xsave_LIBS"
27825
27826 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27827 # to get the SysV transport functions.
27828 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27829 # needs -lnsl.
27830 # The nsl library prevents programs from opening the X display
27831 # on Irix 5.2, according to T.E. Dickey.
27832 # The functions gethostbyname, getservbyname, and inet_addr are
27833 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027834 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027835if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027836
cristy3ed852e2009-09-05 21:47:34 +000027837fi
27838
cristy3ed852e2009-09-05 21:47:34 +000027839 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027841$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027842if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027843 $as_echo_n "(cached) " >&6
27844else
27845 ac_check_lib_save_LIBS=$LIBS
27846LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027848/* end confdefs.h. */
27849
27850/* Override any GCC internal prototype to avoid an error.
27851 Use char because int might match the return type of a GCC
27852 builtin and then its argument prototype would still apply. */
27853#ifdef __cplusplus
27854extern "C"
27855#endif
27856char gethostbyname ();
27857int
27858main ()
27859{
27860return gethostbyname ();
27861 ;
27862 return 0;
27863}
27864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 ac_cv_lib_nsl_gethostbyname=yes
27867else
cristy8b350f62009-11-15 23:12:43 +000027868 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027869fi
cristy8b350f62009-11-15 23:12:43 +000027870rm -f core conftest.err conftest.$ac_objext \
27871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027872LIBS=$ac_check_lib_save_LIBS
27873fi
cristy8b350f62009-11-15 23:12:43 +000027874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027875$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027876if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27878fi
27879
27880 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027882$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027883if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027884 $as_echo_n "(cached) " >&6
27885else
27886 ac_check_lib_save_LIBS=$LIBS
27887LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027889/* end confdefs.h. */
27890
27891/* Override any GCC internal prototype to avoid an error.
27892 Use char because int might match the return type of a GCC
27893 builtin and then its argument prototype would still apply. */
27894#ifdef __cplusplus
27895extern "C"
27896#endif
27897char gethostbyname ();
27898int
27899main ()
27900{
27901return gethostbyname ();
27902 ;
27903 return 0;
27904}
27905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027906if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027907 ac_cv_lib_bsd_gethostbyname=yes
27908else
cristy8b350f62009-11-15 23:12:43 +000027909 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027910fi
cristy8b350f62009-11-15 23:12:43 +000027911rm -f core conftest.err conftest.$ac_objext \
27912 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027913LIBS=$ac_check_lib_save_LIBS
27914fi
cristy8b350f62009-11-15 23:12:43 +000027915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027916$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027917if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27919fi
27920
27921 fi
27922 fi
27923
27924 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27925 # socket/setsockopt and other routines are undefined under SCO ODT
27926 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27927 # on later versions), says Simon Leinen: it contains gethostby*
27928 # variants that don't use the name server (or something). -lsocket
27929 # must be given before -lnsl if both are needed. We assume that
27930 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027931 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027932if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027933
cristy3ed852e2009-09-05 21:47:34 +000027934fi
27935
cristy3ed852e2009-09-05 21:47:34 +000027936 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027938$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027939if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 $as_echo_n "(cached) " >&6
27941else
27942 ac_check_lib_save_LIBS=$LIBS
27943LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027945/* end confdefs.h. */
27946
27947/* Override any GCC internal prototype to avoid an error.
27948 Use char because int might match the return type of a GCC
27949 builtin and then its argument prototype would still apply. */
27950#ifdef __cplusplus
27951extern "C"
27952#endif
27953char connect ();
27954int
27955main ()
27956{
27957return connect ();
27958 ;
27959 return 0;
27960}
27961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027962if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027963 ac_cv_lib_socket_connect=yes
27964else
cristy8b350f62009-11-15 23:12:43 +000027965 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027966fi
cristy8b350f62009-11-15 23:12:43 +000027967rm -f core conftest.err conftest.$ac_objext \
27968 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027969LIBS=$ac_check_lib_save_LIBS
27970fi
cristy8b350f62009-11-15 23:12:43 +000027971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027972$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027973if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027974 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27975fi
27976
27977 fi
27978
27979 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027980 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027981if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027982
cristy3ed852e2009-09-05 21:47:34 +000027983fi
27984
cristy3ed852e2009-09-05 21:47:34 +000027985 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027987$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027988if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027989 $as_echo_n "(cached) " >&6
27990else
27991 ac_check_lib_save_LIBS=$LIBS
27992LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027994/* end confdefs.h. */
27995
27996/* Override any GCC internal prototype to avoid an error.
27997 Use char because int might match the return type of a GCC
27998 builtin and then its argument prototype would still apply. */
27999#ifdef __cplusplus
28000extern "C"
28001#endif
28002char remove ();
28003int
28004main ()
28005{
28006return remove ();
28007 ;
28008 return 0;
28009}
28010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028012 ac_cv_lib_posix_remove=yes
28013else
cristy8b350f62009-11-15 23:12:43 +000028014 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028015fi
cristy8b350f62009-11-15 23:12:43 +000028016rm -f core conftest.err conftest.$ac_objext \
28017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028018LIBS=$ac_check_lib_save_LIBS
28019fi
cristy8b350f62009-11-15 23:12:43 +000028020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028021$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028022if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28024fi
28025
28026 fi
28027
28028 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028029 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028030if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028031
cristy3ed852e2009-09-05 21:47:34 +000028032fi
28033
cristy3ed852e2009-09-05 21:47:34 +000028034 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028036$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028037if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028038 $as_echo_n "(cached) " >&6
28039else
28040 ac_check_lib_save_LIBS=$LIBS
28041LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028043/* end confdefs.h. */
28044
28045/* Override any GCC internal prototype to avoid an error.
28046 Use char because int might match the return type of a GCC
28047 builtin and then its argument prototype would still apply. */
28048#ifdef __cplusplus
28049extern "C"
28050#endif
28051char shmat ();
28052int
28053main ()
28054{
28055return shmat ();
28056 ;
28057 return 0;
28058}
28059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028060if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028061 ac_cv_lib_ipc_shmat=yes
28062else
cristy8b350f62009-11-15 23:12:43 +000028063 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028064fi
cristy8b350f62009-11-15 23:12:43 +000028065rm -f core conftest.err conftest.$ac_objext \
28066 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028067LIBS=$ac_check_lib_save_LIBS
28068fi
cristy8b350f62009-11-15 23:12:43 +000028069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028070$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028071if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28073fi
28074
28075 fi
28076 fi
28077
28078 # Check for libraries that X11R6 Xt/Xaw programs need.
28079 ac_save_LDFLAGS=$LDFLAGS
28080 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28081 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28082 # check for ICE first), but we must link in the order -lSM -lICE or
28083 # we get undefined symbols. So assume we have SM if we have ICE.
28084 # These have to be linked with before -lX11, unlike the other
28085 # libraries we check for below, so use a different variable.
28086 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028088$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028089if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028090 $as_echo_n "(cached) " >&6
28091else
28092 ac_check_lib_save_LIBS=$LIBS
28093LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028095/* end confdefs.h. */
28096
28097/* Override any GCC internal prototype to avoid an error.
28098 Use char because int might match the return type of a GCC
28099 builtin and then its argument prototype would still apply. */
28100#ifdef __cplusplus
28101extern "C"
28102#endif
28103char IceConnectionNumber ();
28104int
28105main ()
28106{
28107return IceConnectionNumber ();
28108 ;
28109 return 0;
28110}
28111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028112if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028113 ac_cv_lib_ICE_IceConnectionNumber=yes
28114else
cristy8b350f62009-11-15 23:12:43 +000028115 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028116fi
cristy8b350f62009-11-15 23:12:43 +000028117rm -f core conftest.err conftest.$ac_objext \
28118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028119LIBS=$ac_check_lib_save_LIBS
28120fi
cristy8b350f62009-11-15 23:12:43 +000028121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028122$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028123if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028124 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28125fi
28126
28127 LDFLAGS=$ac_save_LDFLAGS
28128
28129fi
28130
28131if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28133$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028135$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28137$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028138 LDFLAGS="$LDFLAGS $X_LIBS"
28139 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28140 LIBS="$X11_LIBS $LIBS"
28141 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28142
28143
cristy8b350f62009-11-15 23:12:43 +000028144$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028145
28146 #
28147 # Check for X11 shared memory extension
28148 #
28149 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028150 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028151if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028152 have_shmctl='yes'
28153fi
28154
28155 if test "$have_shmctl" != 'yes'; then
28156 PERSIST_LIBS=$LIBS
28157 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028159/* end confdefs.h. */
28160
28161/* Override any GCC internal prototype to avoid an error.
28162 Use char because int might match the return type of a GCC
28163 builtin and then its argument prototype would still apply. */
28164#ifdef __cplusplus
28165extern "C"
28166#endif
28167char shmctl ();
28168int
28169main ()
28170{
28171return shmctl ();
28172 ;
28173 return 0;
28174}
28175_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028176if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028177 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028178fi
cristy8b350f62009-11-15 23:12:43 +000028179rm -f core conftest.err conftest.$ac_objext \
28180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028181 LIBS=$PERSIST_LIBS
28182 fi
28183
28184 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028186$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028187if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028188 $as_echo_n "(cached) " >&6
28189else
28190 ac_check_lib_save_LIBS=$LIBS
28191LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028193/* end confdefs.h. */
28194
28195/* Override any GCC internal prototype to avoid an error.
28196 Use char because int might match the return type of a GCC
28197 builtin and then its argument prototype would still apply. */
28198#ifdef __cplusplus
28199extern "C"
28200#endif
28201char XShmAttach ();
28202int
28203main ()
28204{
28205return XShmAttach ();
28206 ;
28207 return 0;
28208}
28209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028211 ac_cv_lib_Xext_XShmAttach=yes
28212else
cristy8b350f62009-11-15 23:12:43 +000028213 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028214fi
cristy8b350f62009-11-15 23:12:43 +000028215rm -f core conftest.err conftest.$ac_objext \
28216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028217LIBS=$ac_check_lib_save_LIBS
28218fi
cristy8b350f62009-11-15 23:12:43 +000028219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028220$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028221if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028222 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028223$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028224
28225fi
28226
28227 fi
28228
28229 #
28230 # Check for X11 shape extension
28231 #
cristy8b350f62009-11-15 23:12:43 +000028232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028233$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028234if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028235 $as_echo_n "(cached) " >&6
28236else
28237 ac_check_lib_save_LIBS=$LIBS
28238LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028240/* end confdefs.h. */
28241
28242/* Override any GCC internal prototype to avoid an error.
28243 Use char because int might match the return type of a GCC
28244 builtin and then its argument prototype would still apply. */
28245#ifdef __cplusplus
28246extern "C"
28247#endif
28248char XShapeCombineMask ();
28249int
28250main ()
28251{
28252return XShapeCombineMask ();
28253 ;
28254 return 0;
28255}
28256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028258 ac_cv_lib_Xext_XShapeCombineMask=yes
28259else
cristy8b350f62009-11-15 23:12:43 +000028260 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028261fi
cristy8b350f62009-11-15 23:12:43 +000028262rm -f core conftest.err conftest.$ac_objext \
28263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028264LIBS=$ac_check_lib_save_LIBS
28265fi
cristy8b350f62009-11-15 23:12:43 +000028266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028267$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028268if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028269 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028270$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028271
28272fi
28273
cristy8b350f62009-11-15 23:12:43 +000028274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028275$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028276if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028277 $as_echo_n "(cached) " >&6
28278else
28279 ac_check_lib_save_LIBS=$LIBS
28280LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028282/* end confdefs.h. */
28283
28284/* Override any GCC internal prototype to avoid an error.
28285 Use char because int might match the return type of a GCC
28286 builtin and then its argument prototype would still apply. */
28287#ifdef __cplusplus
28288extern "C"
28289#endif
28290char XtSetEventDispatcher ();
28291int
28292main ()
28293{
28294return XtSetEventDispatcher ();
28295 ;
28296 return 0;
28297}
28298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028299if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028300 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28301else
cristy8b350f62009-11-15 23:12:43 +000028302 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028303fi
cristy8b350f62009-11-15 23:12:43 +000028304rm -f core conftest.err conftest.$ac_objext \
28305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028306LIBS=$ac_check_lib_save_LIBS
28307fi
cristy8b350f62009-11-15 23:12:43 +000028308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028309$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028310if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028311 XT_LIBS='-lXt'
28312fi
28313
28314 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28315fi
28316if test "$no_x" != 'yes'; then
28317 have_x='yes'
28318else
28319 have_x='no'
28320fi
cristy73bd4a52010-10-05 11:24:23 +000028321 if test "$have_x" = 'yes'; then
28322 X11_DELEGATE_TRUE=
28323 X11_DELEGATE_FALSE='#'
28324else
28325 X11_DELEGATE_TRUE='#'
28326 X11_DELEGATE_FALSE=
28327fi
28328
cristy3ed852e2009-09-05 21:47:34 +000028329
28330
28331
28332
28333#
28334# Check for ZLIB
28335#
28336
28337# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028338if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028339 withval=$with_zlib; with_zlib=$withval
28340else
28341 with_zlib='yes'
28342fi
28343
28344
28345if test "$with_zlib" != 'yes'; then
28346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28347fi
28348
28349have_zlib='no'
28350ZLIB_LIBS=''
28351if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28353$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028355$as_echo_n "checking for ZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28357$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028358 ZLIB_LIBS=''
28359 failed=0
28360 passed=0
cristy8b350f62009-11-15 23:12:43 +000028361 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028362if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028363 passed=`expr $passed + 1`
28364else
28365 failed=`expr $failed + 1`
28366fi
28367
28368
cristy8b350f62009-11-15 23:12:43 +000028369 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028370if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028371 passed=`expr $passed + 1`
28372else
28373 failed=`expr $failed + 1`
28374fi
28375
28376
cristy8b350f62009-11-15 23:12:43 +000028377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028378$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028379if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028380 $as_echo_n "(cached) " >&6
28381else
28382 ac_check_lib_save_LIBS=$LIBS
28383LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028385/* end confdefs.h. */
28386
28387/* Override any GCC internal prototype to avoid an error.
28388 Use char because int might match the return type of a GCC
28389 builtin and then its argument prototype would still apply. */
28390#ifdef __cplusplus
28391extern "C"
28392#endif
28393char compress ();
28394int
28395main ()
28396{
28397return compress ();
28398 ;
28399 return 0;
28400}
28401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028402if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028403 ac_cv_lib_z_compress=yes
28404else
cristy8b350f62009-11-15 23:12:43 +000028405 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028406fi
cristy8b350f62009-11-15 23:12:43 +000028407rm -f core conftest.err conftest.$ac_objext \
28408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028409LIBS=$ac_check_lib_save_LIBS
28410fi
cristy8b350f62009-11-15 23:12:43 +000028411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028412$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028413if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028414 passed=`expr $passed + 1`
28415else
28416 failed=`expr $failed + 1`
28417fi
28418
cristy8b350f62009-11-15 23:12:43 +000028419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028420$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028421if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028422 $as_echo_n "(cached) " >&6
28423else
28424 ac_check_lib_save_LIBS=$LIBS
28425LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028427/* end confdefs.h. */
28428
28429/* Override any GCC internal prototype to avoid an error.
28430 Use char because int might match the return type of a GCC
28431 builtin and then its argument prototype would still apply. */
28432#ifdef __cplusplus
28433extern "C"
28434#endif
28435char uncompress ();
28436int
28437main ()
28438{
28439return uncompress ();
28440 ;
28441 return 0;
28442}
28443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028444if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028445 ac_cv_lib_z_uncompress=yes
28446else
cristy8b350f62009-11-15 23:12:43 +000028447 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028448fi
cristy8b350f62009-11-15 23:12:43 +000028449rm -f core conftest.err conftest.$ac_objext \
28450 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028451LIBS=$ac_check_lib_save_LIBS
28452fi
cristy8b350f62009-11-15 23:12:43 +000028453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028454$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028455if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028456 passed=`expr $passed + 1`
28457else
28458 failed=`expr $failed + 1`
28459fi
28460
cristy8b350f62009-11-15 23:12:43 +000028461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028462$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028463if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028464 $as_echo_n "(cached) " >&6
28465else
28466 ac_check_lib_save_LIBS=$LIBS
28467LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028469/* end confdefs.h. */
28470
28471/* Override any GCC internal prototype to avoid an error.
28472 Use char because int might match the return type of a GCC
28473 builtin and then its argument prototype would still apply. */
28474#ifdef __cplusplus
28475extern "C"
28476#endif
28477char deflate ();
28478int
28479main ()
28480{
28481return deflate ();
28482 ;
28483 return 0;
28484}
28485_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028486if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028487 ac_cv_lib_z_deflate=yes
28488else
cristy8b350f62009-11-15 23:12:43 +000028489 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028490fi
cristy8b350f62009-11-15 23:12:43 +000028491rm -f core conftest.err conftest.$ac_objext \
28492 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028493LIBS=$ac_check_lib_save_LIBS
28494fi
cristy8b350f62009-11-15 23:12:43 +000028495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028496$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028497if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028498 passed=`expr $passed + 1`
28499else
28500 failed=`expr $failed + 1`
28501fi
28502
cristy8b350f62009-11-15 23:12:43 +000028503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028504$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028505if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028506 $as_echo_n "(cached) " >&6
28507else
28508 ac_check_lib_save_LIBS=$LIBS
28509LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028511/* end confdefs.h. */
28512
28513/* Override any GCC internal prototype to avoid an error.
28514 Use char because int might match the return type of a GCC
28515 builtin and then its argument prototype would still apply. */
28516#ifdef __cplusplus
28517extern "C"
28518#endif
28519char inflate ();
28520int
28521main ()
28522{
28523return inflate ();
28524 ;
28525 return 0;
28526}
28527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028529 ac_cv_lib_z_inflate=yes
28530else
cristy8b350f62009-11-15 23:12:43 +000028531 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028532fi
cristy8b350f62009-11-15 23:12:43 +000028533rm -f core conftest.err conftest.$ac_objext \
28534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028535LIBS=$ac_check_lib_save_LIBS
28536fi
cristy8b350f62009-11-15 23:12:43 +000028537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028538$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028539if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028540 passed=`expr $passed + 1`
28541else
28542 failed=`expr $failed + 1`
28543fi
28544
cristy8b350f62009-11-15 23:12:43 +000028545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028546$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028547if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028548 $as_echo_n "(cached) " >&6
28549else
28550 ac_check_lib_save_LIBS=$LIBS
28551LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028553/* end confdefs.h. */
28554
28555/* Override any GCC internal prototype to avoid an error.
28556 Use char because int might match the return type of a GCC
28557 builtin and then its argument prototype would still apply. */
28558#ifdef __cplusplus
28559extern "C"
28560#endif
28561char gzseek ();
28562int
28563main ()
28564{
28565return gzseek ();
28566 ;
28567 return 0;
28568}
28569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 ac_cv_lib_z_gzseek=yes
28572else
cristy8b350f62009-11-15 23:12:43 +000028573 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028574fi
cristy8b350f62009-11-15 23:12:43 +000028575rm -f core conftest.err conftest.$ac_objext \
28576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028577LIBS=$ac_check_lib_save_LIBS
28578fi
cristy8b350f62009-11-15 23:12:43 +000028579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028580$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028581if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028582 passed=`expr $passed + 1`
28583else
28584 failed=`expr $failed + 1`
28585fi
28586
cristy8b350f62009-11-15 23:12:43 +000028587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028588$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028589if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028590 $as_echo_n "(cached) " >&6
28591else
28592 ac_check_lib_save_LIBS=$LIBS
28593LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028595/* end confdefs.h. */
28596
28597/* Override any GCC internal prototype to avoid an error.
28598 Use char because int might match the return type of a GCC
28599 builtin and then its argument prototype would still apply. */
28600#ifdef __cplusplus
28601extern "C"
28602#endif
28603char gztell ();
28604int
28605main ()
28606{
28607return gztell ();
28608 ;
28609 return 0;
28610}
28611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028613 ac_cv_lib_z_gztell=yes
28614else
cristy8b350f62009-11-15 23:12:43 +000028615 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028616fi
cristy8b350f62009-11-15 23:12:43 +000028617rm -f core conftest.err conftest.$ac_objext \
28618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028619LIBS=$ac_check_lib_save_LIBS
28620fi
cristy8b350f62009-11-15 23:12:43 +000028621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028622$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028623if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028624 passed=`expr $passed + 1`
28625else
28626 failed=`expr $failed + 1`
28627fi
28628
cristy8b350f62009-11-15 23:12:43 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028630$as_echo_n "checking if ZLIB package is complete... " >&6; }
28631 if test $passed -gt 0; then
28632 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28634$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028635 have_zlib='no (failed tests)'
28636 else
28637 ZLIB_LIBS='-lz'
28638 LIBS="$ZLIB_LIBS $LIBS"
28639
cristy8b350f62009-11-15 23:12:43 +000028640$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028641
cristyad38abe2012-12-23 23:03:21 +000028642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28643$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028644 have_zlib='yes'
28645 fi
28646 else
cristyad38abe2012-12-23 23:03:21 +000028647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28648$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028649 fi
28650fi
cristy73bd4a52010-10-05 11:24:23 +000028651 if test "$have_zlib" = 'yes'; then
28652 ZLIB_DELEGATE_TRUE=
28653 ZLIB_DELEGATE_FALSE='#'
28654else
28655 ZLIB_DELEGATE_TRUE='#'
28656 ZLIB_DELEGATE_FALSE=
28657fi
28658
cristy3ed852e2009-09-05 21:47:34 +000028659
28660
cristy5eef09f2012-10-16 12:08:28 +000028661# whether modules are built or not.
28662with_ltdl='yes'
28663have_ltdl='no'
28664LTDL_LIBS=''
28665if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000028666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28667$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28669$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28671$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000028672 failed=0
28673 passed=0
28674 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28675if test "x$ac_cv_header_ltdl_h" = xyes; then :
28676 passed=`expr $passed + 1`
28677else
28678 failed=`expr $failed + 1`
28679fi
28680
28681
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28683$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28684if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28685 $as_echo_n "(cached) " >&6
28686else
28687 ac_check_lib_save_LIBS=$LIBS
28688LIBS="-lltdl $LIBS"
28689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28690/* end confdefs.h. */
28691
28692/* Override any GCC internal prototype to avoid an error.
28693 Use char because int might match the return type of a GCC
28694 builtin and then its argument prototype would still apply. */
28695#ifdef __cplusplus
28696extern "C"
28697#endif
28698char lt_dlinit ();
28699int
28700main ()
28701{
28702return lt_dlinit ();
28703 ;
28704 return 0;
28705}
28706_ACEOF
28707if ac_fn_c_try_link "$LINENO"; then :
28708 ac_cv_lib_ltdl_lt_dlinit=yes
28709else
28710 ac_cv_lib_ltdl_lt_dlinit=no
28711fi
28712rm -f core conftest.err conftest.$ac_objext \
28713 conftest$ac_exeext conftest.$ac_ext
28714LIBS=$ac_check_lib_save_LIBS
28715fi
28716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28717$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28718if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28719 passed=`expr $passed + 1`
28720else
28721 failed=`expr $failed + 1`
28722fi
28723
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28725$as_echo_n "checking if libltdl package is complete... " >&6; }
28726 if test $passed -gt 0 ; then
28727 if test $failed -gt 0 ; then
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28729$as_echo "no -- some components failed test" >&6; }
28730 have_ltdl='no (failed tests)'
28731 else
28732 LTDL_LIBS='-lltdl'
28733 LIBS="$LTDL_LIBS $LIBS"
28734
28735$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28736
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28738$as_echo "yes" >&6; }
28739 have_ltdl='yes'
28740 fi
28741 else
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28743$as_echo "no" >&6; }
28744 fi
cristyaf4cbf32012-10-16 23:47:41 +000028745 if test "$have_ltdl" != 'yes' ; then
28746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28748as_fn_error 1 "libltdl is required for modules build
28749See \`config.log' for more details" "$LINENO" 5; }
28750 fi
cristy5eef09f2012-10-16 12:08:28 +000028751fi
28752 if test "$have_ltdl" != 'no'; then
28753 WITH_LTDL_TRUE=
28754 WITH_LTDL_FALSE='#'
28755else
28756 WITH_LTDL_TRUE='#'
28757 WITH_LTDL_FALSE=
28758fi
28759
28760
cristy3ed852e2009-09-05 21:47:34 +000028761#
28762# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28763#
28764LIB_DL=''
28765if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028767$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028768if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028769 $as_echo_n "(cached) " >&6
28770else
28771 ac_check_lib_save_LIBS=$LIBS
28772LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028774/* end confdefs.h. */
28775
28776/* Override any GCC internal prototype to avoid an error.
28777 Use char because int might match the return type of a GCC
28778 builtin and then its argument prototype would still apply. */
28779#ifdef __cplusplus
28780extern "C"
28781#endif
28782char dlopen ();
28783int
28784main ()
28785{
28786return dlopen ();
28787 ;
28788 return 0;
28789}
28790_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028791if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028792 ac_cv_lib_dl_dlopen=yes
28793else
cristy8b350f62009-11-15 23:12:43 +000028794 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028795fi
cristy8b350f62009-11-15 23:12:43 +000028796rm -f core conftest.err conftest.$ac_objext \
28797 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028798LIBS=$ac_check_lib_save_LIBS
28799fi
cristy8b350f62009-11-15 23:12:43 +000028800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028802if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028803 LIB_DL='-ldl'
28804fi
28805
28806 LIBS="$LIB_DL $LIBS"
28807fi
28808
28809
28810
28811#
cristy5a3dc992014-12-05 19:50:04 +000028812# Set Apple font directory.
28813#
28814
28815# Check whether --with-apple-font-dir was given.
28816if test "${with_apple_font_dir+set}" = set; then :
28817 withval=$with_apple_font_dir; with_apple_font_dir=$withval
28818else
28819 with_apple_font_dir='default'
28820fi
28821
28822
28823if test "$with_apple_font_dir" != 'default'; then
28824 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28825fi
28826
28827
28828#
cristy3ed852e2009-09-05 21:47:34 +000028829# Check for Autotrace delegate library.
28830#
28831
28832# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028833if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028834 withval=$with_autotrace; with_autotrace=$withval
28835else
28836 with_autotrace='no'
28837fi
28838
28839
28840if test "$with_autotrace" != 'yes'; then
28841 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28842fi
28843
28844have_autotrace='no'
28845AUTOTRACE_CFLAGS=""
28846AUTOTRACE_LIBS=""
28847AUTOTRACE_PKG=""
28848if test "x$with_autotrace" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000028849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28850$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028851
28852pkg_failed=no
28853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28854$as_echo_n "checking for AUTOTRACE... " >&6; }
28855
28856if test -n "$AUTOTRACE_CFLAGS"; then
28857 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28858 elif test -n "$PKG_CONFIG"; then
28859 if test -n "$PKG_CONFIG" && \
28860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28861 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28862 ac_status=$?
28863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28864 test $ac_status = 0; }; then
28865 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028866 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028867else
28868 pkg_failed=yes
28869fi
28870 else
28871 pkg_failed=untried
28872fi
28873if test -n "$AUTOTRACE_LIBS"; then
28874 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28875 elif test -n "$PKG_CONFIG"; then
28876 if test -n "$PKG_CONFIG" && \
28877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28878 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28879 ac_status=$?
28880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28881 test $ac_status = 0; }; then
28882 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000028883 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000028884else
28885 pkg_failed=yes
28886fi
28887 else
28888 pkg_failed=untried
28889fi
28890
28891
28892
28893if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000028894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28895$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028896
28897if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28898 _pkg_short_errors_supported=yes
28899else
28900 _pkg_short_errors_supported=no
28901fi
28902 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000028903 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028904 else
cristy146497a2015-05-17 22:46:16 +000028905 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000028906 fi
28907 # Put the nasty error message in config.log where it belongs
28908 echo "$AUTOTRACE_PKG_ERRORS" >&5
28909
cristy146497a2015-05-17 22:46:16 +000028910 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000028911elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000028912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28913$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028914 have_autotrace=no
28915else
28916 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28917 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28919$as_echo "yes" >&6; }
28920 have_autotrace=yes
28921fi
cristyad38abe2012-12-23 23:03:21 +000028922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28923$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028924fi
28925
28926if test "$have_autotrace" = 'yes'; then
28927 failed=0
28928
cristy8b350f62009-11-15 23:12:43 +000028929$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028930
cristyc6722092012-10-14 00:19:31 +000028931 if test "$build_modules" = 'no'; then
cristyfa161182012-12-19 15:45:28 +000028932 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028933 fi
28934fi
28935
cristy73bd4a52010-10-05 11:24:23 +000028936 if test "$have_autotrace" = 'yes'; then
28937 AUTOTRACE_DELEGATE_TRUE=
28938 AUTOTRACE_DELEGATE_FALSE='#'
28939else
28940 AUTOTRACE_DELEGATE_TRUE='#'
28941 AUTOTRACE_DELEGATE_FALSE=
28942fi
28943
cristy3ed852e2009-09-05 21:47:34 +000028944
28945
28946
28947
28948#
28949# Check for Display Postscript delegate library.
28950#
28951
28952# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028953if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028954 withval=$with_dps; with_dps=$withval
28955else
28956 with_dps='yes'
28957fi
28958
28959
28960if test "$with_dps" != 'yes'; then
28961 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28962fi
28963
28964have_dps='no'
28965DPS_LIBS=''
28966if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000028967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28968$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028970$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28972$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028973 failed=0
28974 passed=0
28975 PERSIST_CPPFLAGS="$CPPFLAGS"
28976 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028977 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 +000028978if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028979 passed=`expr $passed + 1`
28980else
28981 failed=`expr $failed + 1`
28982fi
28983
28984
28985 # DPS issues:
28986 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28987 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28988 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28989 # ImageMagick itself doesn't use -lXt.
28990 have_libdps='no'
28991 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028993$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028994if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028995 $as_echo_n "(cached) " >&6
28996else
28997 ac_check_lib_save_LIBS=$LIBS
28998LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029000/* end confdefs.h. */
29001
29002/* Override any GCC internal prototype to avoid an error.
29003 Use char because int might match the return type of a GCC
29004 builtin and then its argument prototype would still apply. */
29005#ifdef __cplusplus
29006extern "C"
29007#endif
29008char DPSInitialize ();
29009int
29010main ()
29011{
29012return DPSInitialize ();
29013 ;
29014 return 0;
29015}
29016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029017if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029018 ac_cv_lib_dps_DPSInitialize=yes
29019else
cristy8b350f62009-11-15 23:12:43 +000029020 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029021fi
cristy8b350f62009-11-15 23:12:43 +000029022rm -f core conftest.err conftest.$ac_objext \
29023 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029024LIBS=$ac_check_lib_save_LIBS
29025fi
cristy8b350f62009-11-15 23:12:43 +000029026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029027$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029028if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029029 have_libdps='yes'
29030else
29031 have_libdps='no'
29032fi
29033
29034 if test "$have_libdps" != 'yes'; then
29035 # Unset cache variable so we can try again.
29036 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000029037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000029038$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029039if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029040 $as_echo_n "(cached) " >&6
29041else
29042 ac_check_lib_save_LIBS=$LIBS
29043LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029045/* end confdefs.h. */
29046
29047/* Override any GCC internal prototype to avoid an error.
29048 Use char because int might match the return type of a GCC
29049 builtin and then its argument prototype would still apply. */
29050#ifdef __cplusplus
29051extern "C"
29052#endif
29053char DPSInitialize ();
29054int
29055main ()
29056{
29057return DPSInitialize ();
29058 ;
29059 return 0;
29060}
29061_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029062if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029063 ac_cv_lib_dps_DPSInitialize=yes
29064else
cristy8b350f62009-11-15 23:12:43 +000029065 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029066fi
cristy8b350f62009-11-15 23:12:43 +000029067rm -f core conftest.err conftest.$ac_objext \
29068 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029069LIBS=$ac_check_lib_save_LIBS
29070fi
cristy8b350f62009-11-15 23:12:43 +000029071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029072$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029073if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029074 have_libdps='yes'
29075else
29076 have_libdps='no'
29077fi
29078
29079 if test "$have_libdps" = 'yes'; then
29080 LIBDPS_XT='-lXt'
29081 fi
29082 fi
29083 if test "$have_libdps" = 'yes'; then
29084 passed=`expr $passed + 1`
29085 else
29086 failed=`expr $failed + 1`
29087 fi
cristy8b350f62009-11-15 23:12:43 +000029088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029089$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029090if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029091 $as_echo_n "(cached) " >&6
29092else
29093 ac_check_lib_save_LIBS=$LIBS
29094LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029096/* end confdefs.h. */
29097
29098/* Override any GCC internal prototype to avoid an error.
29099 Use char because int might match the return type of a GCC
29100 builtin and then its argument prototype would still apply. */
29101#ifdef __cplusplus
29102extern "C"
29103#endif
29104char XDPSPixelsPerPoint ();
29105int
29106main ()
29107{
29108return XDPSPixelsPerPoint ();
29109 ;
29110 return 0;
29111}
29112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029114 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29115else
cristy8b350f62009-11-15 23:12:43 +000029116 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029117fi
cristy8b350f62009-11-15 23:12:43 +000029118rm -f core conftest.err conftest.$ac_objext \
29119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029120LIBS=$ac_check_lib_save_LIBS
29121fi
cristy8b350f62009-11-15 23:12:43 +000029122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029123$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029124if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029125 passed=`expr $passed + 1`
29126else
29127 failed=`expr $failed + 1`
29128fi
29129
cristy8b350f62009-11-15 23:12:43 +000029130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029131$as_echo_n "checking if DPS package is complete... " >&6; }
29132 if test $passed -gt 0; then
29133 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29135$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029136 have_dps='no (failed tests)'
29137 CPPFLAGS="$PERSIST_CPPFLAGS"
29138 else
29139 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29140 LIBS="$DPS_LIBS $LIBS"
29141
cristy8b350f62009-11-15 23:12:43 +000029142$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029143
cristyad38abe2012-12-23 23:03:21 +000029144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29145$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029146 have_dps='yes'
29147 fi
29148 else
cristyad38abe2012-12-23 23:03:21 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29150$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029151 CPPFLAGS=$PERSIST_CPPFLAGS
29152 fi
29153fi
cristy73bd4a52010-10-05 11:24:23 +000029154 if test "$have_dps" = 'yes'; then
29155 DPS_DELEGATE_TRUE=
29156 DPS_DELEGATE_FALSE='#'
29157else
29158 DPS_DELEGATE_TRUE='#'
29159 DPS_DELEGATE_FALSE=
29160fi
29161
cristy3ed852e2009-09-05 21:47:34 +000029162
29163
29164
29165#
cristy430a7312010-01-21 20:44:04 +000029166# Set DejaVu font directory.
29167#
29168
29169# Check whether --with-dejavu-font-dir was given.
29170if test "${with_dejavu_font_dir+set}" = set; then :
29171 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29172else
29173 with_dejavu_font_dir='default'
29174fi
29175
29176
29177if test "$with_dejavu_font_dir" != 'default'; then
29178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29179fi
29180
29181
29182#
cristy3ed852e2009-09-05 21:47:34 +000029183# Check for FFTW delegate library.
29184#
29185
29186# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029187if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029188 withval=$with_fftw; with_fftw=$withval
29189else
29190 with_fftw='yes'
29191fi
29192
29193
29194if test "$with_fftw" != 'yes'; then
29195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29196fi
29197
cristy81beccd2011-10-03 18:17:24 +000029198have_fftw='no'
29199FFTW_LIBS=''
29200if test "$with_fftw" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29202$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29204$as_echo_n "checking for FFTW... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29206$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029207 failed=0
29208 passed=0
29209 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29210if test "x$ac_cv_header_fftw3_h" = xyes; then :
29211 passed=`expr $passed + 1`
29212else
29213 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029214fi
29215
cristy81beccd2011-10-03 18:17:24 +000029216
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29218$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29219if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29220 $as_echo_n "(cached) " >&6
29221else
29222 ac_check_lib_save_LIBS=$LIBS
29223LIBS="-lfftw3 $LIBS"
29224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29225/* end confdefs.h. */
29226
29227/* Override any GCC internal prototype to avoid an error.
29228 Use char because int might match the return type of a GCC
29229 builtin and then its argument prototype would still apply. */
29230#ifdef __cplusplus
29231extern "C"
29232#endif
29233char fftw_execute ();
29234int
29235main ()
29236{
29237return fftw_execute ();
29238 ;
29239 return 0;
29240}
29241_ACEOF
29242if ac_fn_c_try_link "$LINENO"; then :
29243 ac_cv_lib_fftw3_fftw_execute=yes
29244else
29245 ac_cv_lib_fftw3_fftw_execute=no
29246fi
29247rm -f core conftest.err conftest.$ac_objext \
29248 conftest$ac_exeext conftest.$ac_ext
29249LIBS=$ac_check_lib_save_LIBS
29250fi
29251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29252$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29253if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29254 passed=`expr $passed + 1`
29255else
29256 failed=`expr $failed + 1`
29257fi
29258
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29260$as_echo_n "checking if FFTW package is complete... " >&6; }
29261 if test $passed -gt 0; then
29262 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29264$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029265 have_fftw='no (failed tests)'
29266 else
29267 FFTW_LIBS='-lfftw3'
29268 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029269
cristy8b350f62009-11-15 23:12:43 +000029270$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029271
cristyad38abe2012-12-23 23:03:21 +000029272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29273$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029274 have_fftw='yes'
29275 fi
29276 else
cristyad38abe2012-12-23 23:03:21 +000029277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29278$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029279 fi
29280fi
cristy73bd4a52010-10-05 11:24:23 +000029281 if test "$have_fftw" = 'yes'; then
29282 FFTW_DELEGATE_TRUE=
29283 FFTW_DELEGATE_FALSE='#'
29284else
29285 FFTW_DELEGATE_TRUE='#'
29286 FFTW_DELEGATE_FALSE=
29287fi
29288
cristy3ed852e2009-09-05 21:47:34 +000029289
29290
29291
29292#
29293# Check for FlashPIX delegate library.
29294#
29295
29296# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029297if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029298 withval=$with_fpx; with_fpx=$withval
29299else
29300 with_fpx='yes'
29301fi
29302
29303
29304if test "$with_fpx" != 'yes'; then
29305 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29306fi
29307
29308have_fpx='no'
29309FPX_LIBS=''
29310if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29312$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029314$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29316$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029317 failed=0
29318 passed=0
29319 ac_ext=cpp
29320ac_cpp='$CXXCPP $CPPFLAGS'
29321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29324
29325
cristy8b350f62009-11-15 23:12:43 +000029326ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029327if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029328 passed=`expr $passed + 1`
29329else
29330 failed=`expr $failed + 1`
29331fi
29332
29333
cristy8b350f62009-11-15 23:12:43 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029336if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029337 $as_echo_n "(cached) " >&6
29338else
29339 ac_check_lib_save_LIBS=$LIBS
29340LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029342/* end confdefs.h. */
29343
29344/* Override any GCC internal prototype to avoid an error.
29345 Use char because int might match the return type of a GCC
29346 builtin and then its argument prototype would still apply. */
29347#ifdef __cplusplus
29348extern "C"
29349#endif
29350char FPX_OpenImageByFilename ();
29351int
29352main ()
29353{
29354return FPX_OpenImageByFilename ();
29355 ;
29356 return 0;
29357}
29358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029359if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029360 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29361else
cristy8b350f62009-11-15 23:12:43 +000029362 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029363fi
cristy8b350f62009-11-15 23:12:43 +000029364rm -f core conftest.err conftest.$ac_objext \
29365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029366LIBS=$ac_check_lib_save_LIBS
29367fi
cristy8b350f62009-11-15 23:12:43 +000029368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029369$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029370if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029371 passed=`expr $passed + 1`
29372else
29373 failed=`expr $failed + 1`
29374fi
29375
29376 ac_ext=c
29377ac_cpp='$CPP $CPPFLAGS'
29378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29380ac_compiler_gnu=$ac_cv_c_compiler_gnu
29381
cristy8b350f62009-11-15 23:12:43 +000029382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029383$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29384 if test $passed -gt 0; then
29385 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29387$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029388 have_fpx='no (failed tests)'
29389 else
29390 FPX_LIBS='-lfpx'
29391
cristy8b350f62009-11-15 23:12:43 +000029392$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029393
cristyad38abe2012-12-23 23:03:21 +000029394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29395$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029396 have_fpx='yes'
29397 PERLMAINCC="$CXX"
29398 fi
29399 else
cristyad38abe2012-12-23 23:03:21 +000029400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29401$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029402 fi
29403fi
cristy73bd4a52010-10-05 11:24:23 +000029404 if test "$have_fpx" = 'yes'; then
29405 FPX_DELEGATE_TRUE=
29406 FPX_DELEGATE_FALSE='#'
29407else
29408 FPX_DELEGATE_TRUE='#'
29409 FPX_DELEGATE_FALSE=
29410fi
29411
cristy3ed852e2009-09-05 21:47:34 +000029412
cristy853d9902014-08-21 18:50:43 +000029413
29414
29415#
29416# Check for DJVU delegate library.
29417#
29418
29419# Check whether --with-djvu was given.
29420if test "${with_djvu+set}" = set; then :
29421 withval=$with_djvu; with_djvu=$withval
29422else
29423 with_djvu='yes'
29424fi
29425
29426
29427if test "$with_djvu" != 'yes'; then
29428 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29429fi
29430
29431have_djvu='no'
29432DJVU_LIBS=''
29433if test "$with_djvu" != 'no'; then
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29435$as_echo "-------------------------------------------------------------" >&6; }
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
29437$as_echo_n "checking for DJVU... " >&6; }
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29439$as_echo "" >&6; }
29440 failed=0
29441 passed=0
29442 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
29443if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
29444 passed=`expr $passed + 1`
29445else
29446 failed=`expr $failed + 1`
29447fi
29448
29449
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
29451$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
29452if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
29453 $as_echo_n "(cached) " >&6
29454else
29455 ac_check_lib_save_LIBS=$LIBS
29456LIBS="-ldjvulibre $LIBS"
29457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29458/* end confdefs.h. */
29459
29460/* Override any GCC internal prototype to avoid an error.
29461 Use char because int might match the return type of a GCC
29462 builtin and then its argument prototype would still apply. */
29463#ifdef __cplusplus
29464extern "C"
29465#endif
29466char ddjvu_context_create ();
29467int
29468main ()
29469{
29470return ddjvu_context_create ();
29471 ;
29472 return 0;
29473}
29474_ACEOF
29475if ac_fn_c_try_link "$LINENO"; then :
29476 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29477else
29478 ac_cv_lib_djvulibre_ddjvu_context_create=no
29479fi
29480rm -f core conftest.err conftest.$ac_objext \
29481 conftest$ac_exeext conftest.$ac_ext
29482LIBS=$ac_check_lib_save_LIBS
29483fi
29484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
29485$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
29486if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
29487 passed=`expr $passed + 1`
29488else
29489 failed=`expr $failed + 1`
29490fi
29491
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
29493$as_echo_n "checking if DJVU package is complete... " >&6; }
29494 if test $passed -gt 0; then
29495 if test $failed -gt 0; then
29496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29497$as_echo "no -- some components failed test" >&6; }
29498 have_djvu='no (failed tests)'
29499 else
29500 DJVU_LIBS='-ldjvulibre'
29501 LIBS="$DJVU_LIBS $LIBS"
29502
29503$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29504
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29506$as_echo "yes" >&6; }
29507 have_djvu='yes'
29508 fi
29509 else
29510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29511$as_echo "no" >&6; }
29512 fi
29513fi
29514 if test "$have_djvu" = 'yes'; then
29515 DJVU_DELEGATE_TRUE=
29516 DJVU_DELEGATE_FALSE='#'
29517else
29518 DJVU_DELEGATE_TRUE='#'
29519 DJVU_DELEGATE_FALSE=
29520fi
29521
29522
cristy3ed852e2009-09-05 21:47:34 +000029523
29524
29525#
29526# Check for fontconfig delegate library.
29527#
29528
29529# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029530if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029531 withval=$with_fontconfig; with_fontconfig=$withval
29532else
cristyfc3d0222012-02-07 15:05:57 +000029533 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029534fi
29535
29536
29537if test "$with_fontconfig" != 'yes'; then
29538 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29539fi
29540
29541have_fontconfig='no'
29542FONTCONFIG_CFLAGS=""
29543FONTCONFIG_LIBS=""
29544FONTCONFIG_PKG=""
29545if test "x$with_fontconfig" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29547$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029548
29549pkg_failed=no
29550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29551$as_echo_n "checking for FONTCONFIG... " >&6; }
29552
29553if test -n "$FONTCONFIG_CFLAGS"; then
29554 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29555 elif test -n "$PKG_CONFIG"; then
29556 if test -n "$PKG_CONFIG" && \
29557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29558 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29559 ac_status=$?
29560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29561 test $ac_status = 0; }; then
29562 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029563 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029564else
29565 pkg_failed=yes
29566fi
29567 else
29568 pkg_failed=untried
29569fi
29570if test -n "$FONTCONFIG_LIBS"; then
29571 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29572 elif test -n "$PKG_CONFIG"; then
29573 if test -n "$PKG_CONFIG" && \
29574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29575 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29576 ac_status=$?
29577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29578 test $ac_status = 0; }; then
29579 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029580 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029581else
29582 pkg_failed=yes
29583fi
29584 else
29585 pkg_failed=untried
29586fi
29587
29588
29589
29590if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29592$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029593
29594if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29595 _pkg_short_errors_supported=yes
29596else
29597 _pkg_short_errors_supported=no
29598fi
29599 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029600 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029601 else
cristy146497a2015-05-17 22:46:16 +000029602 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029603 fi
29604 # Put the nasty error message in config.log where it belongs
29605 echo "$FONTCONFIG_PKG_ERRORS" >&5
29606
cristy146497a2015-05-17 22:46:16 +000029607 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000029608elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29610$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029611 have_fontconfig=no
29612else
29613 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29614 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29616$as_echo "yes" >&6; }
29617 have_fontconfig=yes
29618fi
cristyad38abe2012-12-23 23:03:21 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29620$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029621fi
29622
29623if test "$have_fontconfig" = 'yes'; then
29624
cristy8b350f62009-11-15 23:12:43 +000029625$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029626
cristyc6722092012-10-14 00:19:31 +000029627 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029628 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029629 fi
cristy3ed852e2009-09-05 21:47:34 +000029630fi
29631
cristy73bd4a52010-10-05 11:24:23 +000029632 if test "$have_fontconfig" = 'yes'; then
29633 FONTCONFIG_DELEGATE_TRUE=
29634 FONTCONFIG_DELEGATE_FALSE='#'
29635else
29636 FONTCONFIG_DELEGATE_TRUE='#'
29637 FONTCONFIG_DELEGATE_FALSE=
29638fi
29639
cristy3ed852e2009-09-05 21:47:34 +000029640
29641
29642
29643
29644#
cristy03f187e2013-01-24 00:22:19 +000029645# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029646#
29647
29648# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029649if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029650 withval=$with_freetype; with_freetype=$withval
29651else
29652 with_freetype='yes'
29653fi
29654
29655
cristy3ed852e2009-09-05 21:47:34 +000029656if test "$with_freetype" != 'yes'; then
29657 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29658fi
29659
cristy81beccd2011-10-03 18:17:24 +000029660have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000029661FREETYPE_CFLAGS=""
29662FREETYPE_LIBS=""
29663FREETYPE_PKG=""
29664if test "x$with_freetype" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29666$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029667
29668pkg_failed=no
29669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
29670$as_echo_n "checking for FREETYPE... " >&6; }
29671
29672if test -n "$FREETYPE_CFLAGS"; then
29673 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29674 elif test -n "$PKG_CONFIG"; then
29675 if test -n "$PKG_CONFIG" && \
29676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29677 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29678 ac_status=$?
29679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29680 test $ac_status = 0; }; then
29681 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029682 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029683else
29684 pkg_failed=yes
29685fi
29686 else
29687 pkg_failed=untried
29688fi
29689if test -n "$FREETYPE_LIBS"; then
29690 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29691 elif test -n "$PKG_CONFIG"; then
29692 if test -n "$PKG_CONFIG" && \
29693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29694 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29695 ac_status=$?
29696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29697 test $ac_status = 0; }; then
29698 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029699 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000029700else
29701 pkg_failed=yes
29702fi
29703 else
29704 pkg_failed=untried
29705fi
29706
29707
29708
29709if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29711$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029712
29713if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29714 _pkg_short_errors_supported=yes
29715else
29716 _pkg_short_errors_supported=no
29717fi
29718 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029719 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029720 else
cristy146497a2015-05-17 22:46:16 +000029721 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000029722 fi
29723 # Put the nasty error message in config.log where it belongs
29724 echo "$FREETYPE_PKG_ERRORS" >&5
29725
cristy146497a2015-05-17 22:46:16 +000029726 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000029727elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29729$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000029730 have_freetype=no
29731else
29732 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29733 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29735$as_echo "yes" >&6; }
29736 have_freetype=yes
29737fi
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 +000029740fi
29741
cristy03f187e2013-01-24 00:22:19 +000029742if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029743
cristy8b350f62009-11-15 23:12:43 +000029744$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029745
cristy03f187e2013-01-24 00:22:19 +000029746 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029747fi
cristy03f187e2013-01-24 00:22:19 +000029748
cristy73bd4a52010-10-05 11:24:23 +000029749 if test "$have_freetype" = 'yes'; then
29750 FREETYPE_DELEGATE_TRUE=
29751 FREETYPE_DELEGATE_FALSE='#'
29752else
29753 FREETYPE_DELEGATE_TRUE='#'
29754 FREETYPE_DELEGATE_FALSE=
29755fi
29756
cristy3ed852e2009-09-05 21:47:34 +000029757
29758
29759
cristy03f187e2013-01-24 00:22:19 +000029760
cristy3ed852e2009-09-05 21:47:34 +000029761#
29762# Check for Ghostscript library or framework.
29763#
29764# Test for iapi.h & test for gsapi_new_instance in -lgs
29765# or -framework Ghostscript
29766
29767
29768# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029769if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029770 withval=$with_gslib; with_gslib=$withval
29771else
29772 with_gslib='no'
29773fi
29774
29775
cristyb7931f12009-09-25 10:22:21 +000029776gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029777if test "$with_gslib" != 'yes'; then
29778 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29779fi
29780
29781have_gslib='no'
29782GS_LIBS=''
29783if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29785$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029787$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29789$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000029790 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029791 failed=0
29792 passed=0
cristy8b350f62009-11-15 23:12:43 +000029793 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 +000029794if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029795 passed=`expr $passed + 1`
29796else
29797 failed=`expr $failed + 1`
29798fi
29799
29800
cristy8b350f62009-11-15 23:12:43 +000029801 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 +000029802if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029803 passed=`expr $passed + 1`
29804else
29805 failed=`expr $failed + 1`
29806fi
29807
29808
cristy73bd4a52010-10-05 11:24:23 +000029809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29810$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029811if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029812 $as_echo_n "(cached) " >&6
29813else
29814 ac_check_framework_save_LIBS=$LIBS
29815LIBS="-framework Ghostscript $LIBS"
29816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29817/* end confdefs.h. */
29818
29819/* Override any GCC internal prototype to avoid an error.
29820 Use char because int might match the return type of a GCC
29821 builtin and then its argument prototype would still apply. */
29822#ifdef __cplusplus
29823extern "C"
29824#endif
29825char gsapi_new_instance ();
29826int
29827main ()
29828{
29829return gsapi_new_instance ();
29830 ;
29831 return 0;
29832}
29833_ACEOF
29834if ac_fn_c_try_link "$LINENO"; then :
29835 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29836else
29837 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29838fi
29839rm -f core conftest.err conftest.$ac_objext \
29840 conftest$ac_exeext conftest.$ac_ext
29841LIBS=$ac_check_framework_save_LIBS
29842fi
29843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29844$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29845if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29846 framework=`expr $framework + 1`
29847else
29848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029849$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029850if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029851 $as_echo_n "(cached) " >&6
29852else
29853 ac_check_lib_save_LIBS=$LIBS
29854LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029856/* end confdefs.h. */
29857
29858/* Override any GCC internal prototype to avoid an error.
29859 Use char because int might match the return type of a GCC
29860 builtin and then its argument prototype would still apply. */
29861#ifdef __cplusplus
29862extern "C"
29863#endif
29864char gsapi_new_instance ();
29865int
29866main ()
29867{
29868return gsapi_new_instance ();
29869 ;
29870 return 0;
29871}
29872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029873if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029874 ac_cv_lib_gs_gsapi_new_instance=yes
29875else
cristy8b350f62009-11-15 23:12:43 +000029876 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029877fi
cristy8b350f62009-11-15 23:12:43 +000029878rm -f core conftest.err conftest.$ac_objext \
29879 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029880LIBS=$ac_check_lib_save_LIBS
29881fi
cristy8b350f62009-11-15 23:12:43 +000029882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029883$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029884if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029885 passed=`expr $passed + 1`
29886else
29887 failed=`expr $failed + 1`
29888fi
cristy73bd4a52010-10-05 11:24:23 +000029889
29890fi
cristy8b350f62009-11-15 23:12:43 +000029891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029892$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29893 if test $passed -gt 0; then
29894 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29896$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029897 have_gslib='no (failed tests)'
29898 else
29899 if test $framework -gt 0; then
29900 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029901 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
29903$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029904 else
cristyad38abe2012-12-23 23:03:21 +000029905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
29906$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029907 GS_LIBS='-lgs'
29908 fi
29909 LIBS="$GS_LIBS $LIBS"
29910
cristy8b350f62009-11-15 23:12:43 +000029911$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029912
29913 have_gslib='yes'
29914 fi
29915 else
cristyad38abe2012-12-23 23:03:21 +000029916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029918 fi
29919fi
cristy73bd4a52010-10-05 11:24:23 +000029920 if test "$have_gslib" = 'yes'; then
29921 GS_DELEGATE_TRUE=
29922 GS_DELEGATE_FALSE='#'
29923else
29924 GS_DELEGATE_TRUE='#'
29925 GS_DELEGATE_FALSE=
29926fi
29927
cristy3ed852e2009-09-05 21:47:34 +000029928
29929
29930# Set default font search path
29931
29932# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029933if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029934 withval=$with_fontpath; with_fontpath=$withval
29935else
29936 with_fontpath=''
29937fi
29938
29939
29940if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29941 with_fontpath=''
29942else
29943
29944cat >>confdefs.h <<_ACEOF
29945#define MAGICK_FONT_PATH "$with_fontpath"
29946_ACEOF
29947
29948fi
29949if test "$with_fontpath=" != ''; then
29950 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29951fi
29952
29953# Set Ghostscript font directory
29954
29955# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029956if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029957 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29958else
29959 with_gs_font_dir='default'
29960fi
29961
29962
29963if test "$with_gs_font_dir" != 'default'; then
29964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29965fi
29966
29967
29968#
29969# Check for GVC delegate library.
29970#
29971
29972# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029973if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029974 withval=$with_gvc; with_gvc=$withval
29975else
cristy1b70dc82012-07-01 23:15:05 +000029976 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029977fi
29978
29979
29980if test "$with_gvc" != 'yes'; then
29981 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29982fi
29983
29984GVC_PKG=""
29985if test "x$with_gvc" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000029986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29987$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029988
29989pkg_failed=no
29990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29991$as_echo_n "checking for GVC... " >&6; }
29992
29993if test -n "$GVC_CFLAGS"; then
29994 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29995 elif test -n "$PKG_CONFIG"; then
29996 if test -n "$PKG_CONFIG" && \
29997 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29998 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29999 ac_status=$?
30000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30001 test $ac_status = 0; }; then
30002 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030003 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030004else
30005 pkg_failed=yes
30006fi
30007 else
30008 pkg_failed=untried
30009fi
30010if test -n "$GVC_LIBS"; then
30011 pkg_cv_GVC_LIBS="$GVC_LIBS"
30012 elif test -n "$PKG_CONFIG"; then
30013 if test -n "$PKG_CONFIG" && \
30014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30015 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30016 ac_status=$?
30017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30018 test $ac_status = 0; }; then
30019 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030020 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030021else
30022 pkg_failed=yes
30023fi
30024 else
30025 pkg_failed=untried
30026fi
30027
30028
30029
30030if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30032$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030033
30034if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30035 _pkg_short_errors_supported=yes
30036else
30037 _pkg_short_errors_supported=no
30038fi
30039 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030040 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030041 else
cristy146497a2015-05-17 22:46:16 +000030042 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030043 fi
30044 # Put the nasty error message in config.log where it belongs
30045 echo "$GVC_PKG_ERRORS" >&5
30046
cristy146497a2015-05-17 22:46:16 +000030047 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000030048elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30050$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030051 have_gvc=no
30052else
30053 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30054 GVC_LIBS=$pkg_cv_GVC_LIBS
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30056$as_echo "yes" >&6; }
30057 have_gvc=yes
30058fi
cristyad38abe2012-12-23 23:03:21 +000030059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30060$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030061fi
30062
30063if test "$have_gvc" = 'yes'; then
30064
cristy8b350f62009-11-15 23:12:43 +000030065$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030066
cristyc6722092012-10-14 00:19:31 +000030067 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030068 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30069 fi
30070fi
30071
cristy73bd4a52010-10-05 11:24:23 +000030072 if test "$have_gvc" = 'yes'; then
30073 GVC_DELEGATE_TRUE=
30074 GVC_DELEGATE_FALSE='#'
30075else
30076 GVC_DELEGATE_TRUE='#'
30077 GVC_DELEGATE_FALSE=
30078fi
30079
cristy3ed852e2009-09-05 21:47:34 +000030080
30081
30082
30083
30084#
30085# Check for JBIG delegate library.
30086#
30087
30088
30089# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030090if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030091 withval=$with_jbig; with_jbig=$withval
30092else
30093 with_jbig='yes'
30094fi
30095
30096
30097have_jbig='no'
30098JBIG_LIBS=''
30099if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30101$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30105$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030106 failed=0
30107 passed=0
cristy8b350f62009-11-15 23:12:43 +000030108 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030109if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030110 passed=`expr $passed + 1`
30111else
30112 failed=`expr $failed + 1`
30113fi
30114
30115
cristy8b350f62009-11-15 23:12:43 +000030116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030117$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030118if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030119 $as_echo_n "(cached) " >&6
30120else
30121 ac_check_lib_save_LIBS=$LIBS
30122LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030124/* end confdefs.h. */
30125
30126/* Override any GCC internal prototype to avoid an error.
30127 Use char because int might match the return type of a GCC
30128 builtin and then its argument prototype would still apply. */
30129#ifdef __cplusplus
30130extern "C"
30131#endif
30132char jbg_dec_init ();
30133int
30134main ()
30135{
30136return jbg_dec_init ();
30137 ;
30138 return 0;
30139}
30140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030142 ac_cv_lib_jbig_jbg_dec_init=yes
30143else
cristy8b350f62009-11-15 23:12:43 +000030144 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030145fi
cristy8b350f62009-11-15 23:12:43 +000030146rm -f core conftest.err conftest.$ac_objext \
30147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030148LIBS=$ac_check_lib_save_LIBS
30149fi
cristy8b350f62009-11-15 23:12:43 +000030150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030151$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030152if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030153 passed=`expr $passed + 1`
30154else
30155 failed=`expr $failed + 1`
30156fi
30157
cristy8b350f62009-11-15 23:12:43 +000030158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030159$as_echo_n "checking if JBIG package is complete... " >&6; }
30160 if test $passed -gt 0; then
30161 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30163$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030164 have_jbig='no (failed tests)'
30165 else
30166 JBIG_LIBS='-ljbig'
30167 LIBS="$JBIG_LIBS $LIBS"
30168
cristy8b350f62009-11-15 23:12:43 +000030169$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030170
cristyad38abe2012-12-23 23:03:21 +000030171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30172$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030173 have_jbig='yes'
30174 fi
30175 else
cristyad38abe2012-12-23 23:03:21 +000030176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30177$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030178 fi
30179fi
cristy73bd4a52010-10-05 11:24:23 +000030180 if test "$have_jbig" = 'yes'; then
30181 JBIG_DELEGATE_TRUE=
30182 JBIG_DELEGATE_FALSE='#'
30183else
30184 JBIG_DELEGATE_TRUE='#'
30185 JBIG_DELEGATE_FALSE=
30186fi
30187
cristy3ed852e2009-09-05 21:47:34 +000030188
30189
30190
30191#
30192# Check for JPEG delegate library.
30193#
30194
30195# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030196if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030197 withval=$with_jpeg; with_jpeg=$withval
30198else
30199 with_jpeg='yes'
30200fi
30201
30202
30203if test "$with_jpeg" != 'yes'; then
30204 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30205fi
30206
30207have_jpeg='no'
30208JPEG_LIBS=''
30209if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30211$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030213$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30215$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030216 failed=0
30217 passed=0
cristy8b350f62009-11-15 23:12:43 +000030218 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030219if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030220 passed=`expr $passed + 1`
30221else
30222 failed=`expr $failed + 1`
30223fi
30224
30225
cristy8b350f62009-11-15 23:12:43 +000030226 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030227if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030228 passed=`expr $passed + 1`
30229else
30230 failed=`expr $failed + 1`
30231fi
30232
30233
cristy8b350f62009-11-15 23:12:43 +000030234 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030235if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030236 passed=`expr $passed + 1`
30237else
30238 failed=`expr $failed + 1`
30239fi
30240
30241
cristy8b350f62009-11-15 23:12:43 +000030242 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030243if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030244 passed=`expr $passed + 1`
30245else
30246 failed=`expr $failed + 1`
30247fi
30248
30249
cristy8b350f62009-11-15 23:12:43 +000030250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030251$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030252if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030253 $as_echo_n "(cached) " >&6
30254else
30255 ac_check_lib_save_LIBS=$LIBS
30256LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030258/* end confdefs.h. */
30259
30260/* Override any GCC internal prototype to avoid an error.
30261 Use char because int might match the return type of a GCC
30262 builtin and then its argument prototype would still apply. */
30263#ifdef __cplusplus
30264extern "C"
30265#endif
30266char jpeg_read_header ();
30267int
30268main ()
30269{
30270return jpeg_read_header ();
30271 ;
30272 return 0;
30273}
30274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030275if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030276 ac_cv_lib_jpeg_jpeg_read_header=yes
30277else
cristy8b350f62009-11-15 23:12:43 +000030278 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030279fi
cristy8b350f62009-11-15 23:12:43 +000030280rm -f core conftest.err conftest.$ac_objext \
30281 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030282LIBS=$ac_check_lib_save_LIBS
30283fi
cristy8b350f62009-11-15 23:12:43 +000030284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030285$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030286if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030287 passed=`expr $passed + 1`
30288else
30289 failed=`expr $failed + 1`
30290fi
30291
30292
30293# Test for compatible JPEG library
30294if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030296$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030297if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030298 $as_echo_n "(cached) " >&6
30299else
cristy8b350f62009-11-15 23:12:43 +000030300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030301/* end confdefs.h. */
30302#include <stdio.h>
30303#include <stdlib.h>
30304#include <jpeglib.h>
30305
30306int
30307main ()
30308{
30309
30310#if JPEG_LIB_VERSION < 62
30311#error IJG JPEG library must be version 6b or newer!
30312#endif
30313return 0;
30314
30315 ;
30316 return 0;
30317}
30318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030319if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030320 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30321else
cristy8b350f62009-11-15 23:12:43 +000030322 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030323fi
cristy3ed852e2009-09-05 21:47:34 +000030324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30325fi
cristy8b350f62009-11-15 23:12:43 +000030326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030327$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30328fi
cristy8b350f62009-11-15 23:12:43 +000030329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030330$as_echo_n "checking if JPEG package is complete... " >&6; }
30331 if test $passed -gt 0; then
30332 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30334$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030335 have_jpeg='no (failed tests)'
30336 else
30337 JPEG_LIBS='-ljpeg'
30338 LIBS="$JPEG_LIBS $LIBS"
30339
cristy8b350f62009-11-15 23:12:43 +000030340$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030341
cristyad38abe2012-12-23 23:03:21 +000030342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30343$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030344 have_jpeg='yes'
30345 fi
30346 else
cristyad38abe2012-12-23 23:03:21 +000030347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30348$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030349 fi
30350fi
cristy73bd4a52010-10-05 11:24:23 +000030351 if test "$have_jpeg" = 'yes'; then
30352 JPEG_DELEGATE_TRUE=
30353 JPEG_DELEGATE_FALSE='#'
30354else
30355 JPEG_DELEGATE_TRUE='#'
30356 JPEG_DELEGATE_FALSE=
30357fi
30358
cristy3ed852e2009-09-05 21:47:34 +000030359
30360
30361
30362#
cristy3ed852e2009-09-05 21:47:34 +000030363# Check for LCMS delegate library.
30364#
cristy71203402010-06-18 13:12:03 +000030365# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030366
30367# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030368if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030369 withval=$with_lcms; with_lcms=$withval
30370else
30371 with_lcms='yes'
30372fi
30373
cristy71203402010-06-18 13:12:03 +000030374if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030375 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30376fi
30377
cristy71203402010-06-18 13:12:03 +000030378# Disable LCMS2.
30379
30380# Check whether --with-lcms2 was given.
30381if test "${with_lcms2+set}" = set; then :
30382 withval=$with_lcms2; with_lcms2=$withval
30383else
30384 with_lcms2='yes'
30385fi
30386
30387if test "$with_lcms2" != 'yes' ; then
30388 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30389fi
30390
30391have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030392LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030393if test "$with_lcms2" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30395$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30397$as_echo_n "checking for LCMS v2... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30399$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030400 failed=0
30401 passed=0
30402 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030403
30404 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030405 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030406if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030407 have_lcms_header='yes'
30408fi
30409
30410
30411 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030412
30413$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30414
cristy71203402010-06-18 13:12:03 +000030415 passed=`expr $passed + 1`
30416 fi
30417
30418 # Check for <lcms2/lcms2.h)
30419 if test "$have_lcms_header" != 'yes'; then
30420 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 +000030421if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030422 have_lcms_header='yes'
30423fi
30424
30425
cristy71203402010-06-18 13:12:03 +000030426 if test "$have_lcms_header" = 'yes'; then
30427 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030428
cristy71203402010-06-18 13:12:03 +000030429$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030430
cristy71203402010-06-18 13:12:03 +000030431 fi
cristyd09bcf92010-03-25 03:04:45 +000030432 fi
cristy71203402010-06-18 13:12:03 +000030433
30434 # Failed to find lcms header?
30435 if test "$have_lcms_header" != 'yes'; then
30436 failed=`expr $failed + 1`
30437 fi
30438
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30440$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030441if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030442 $as_echo_n "(cached) " >&6
30443else
30444 ac_check_lib_save_LIBS=$LIBS
30445LIBS="-llcms2 $LIBS"
30446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30447/* end confdefs.h. */
30448
30449/* Override any GCC internal prototype to avoid an error.
30450 Use char because int might match the return type of a GCC
30451 builtin and then its argument prototype would still apply. */
30452#ifdef __cplusplus
30453extern "C"
30454#endif
cristy71203402010-06-18 13:12:03 +000030455char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030456int
30457main ()
30458{
cristy71203402010-06-18 13:12:03 +000030459return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030460 ;
30461 return 0;
30462}
30463_ACEOF
30464if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030465 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030466else
cristy71203402010-06-18 13:12:03 +000030467 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030468fi
30469rm -f core conftest.err conftest.$ac_objext \
30470 conftest$ac_exeext conftest.$ac_ext
30471LIBS=$ac_check_lib_save_LIBS
30472fi
cristy71203402010-06-18 13:12:03 +000030473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30474$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030475if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030476 passed=`expr $passed + 1`
30477else
30478 failed=`expr $failed + 1`
30479fi
30480
cristy71203402010-06-18 13:12:03 +000030481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30482$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030483 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030484 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30486$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030487 have_lcms2='no (failed tests)'
30488 else
30489 LCMS_LIBS='-llcms2'
30490 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30492$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030493 have_lcms2='yes'
30494 fi
cristyd09bcf92010-03-25 03:04:45 +000030495 else
cristyad38abe2012-12-23 23:03:21 +000030496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30497$as_echo "no" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030498 fi
30499fi
30500
cristy71203402010-06-18 13:12:03 +000030501#
30502# Check for LCMS v1 (1.11 or later)
30503#
30504if test $have_lcms2 = 'yes'; then
30505 with_lcms='no'
30506fi
30507
30508have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030509if test "$with_lcms" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30511$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30513$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30515$as_echo "" >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030516 failed=0
30517 passed=0
30518 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030519
30520 # Check for <lcms.h>
30521 if test "$have_lcms_header" != 'yes'; then
30522 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030523if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030524 have_lcms_header='yes'
30525fi
30526
30527
cristy71203402010-06-18 13:12:03 +000030528 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030529 passed=`expr $passed + 1`
30530
cristy8b350f62009-11-15 23:12:43 +000030531$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030532
cristy71203402010-06-18 13:12:03 +000030533 fi
30534 fi
30535
30536 # Check for <lcms/lcms.h>
30537 if test "$have_lcms_header" != 'yes'; then
30538 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 +000030539if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030540 have_lcms_header='yes'
30541fi
30542
30543
cristy71203402010-06-18 13:12:03 +000030544 if test "$have_lcms_header" = 'yes'; then
30545 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030546
cristy8b350f62009-11-15 23:12:43 +000030547$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030548
cristy71203402010-06-18 13:12:03 +000030549 fi
cristy3ed852e2009-09-05 21:47:34 +000030550 fi
cristy71203402010-06-18 13:12:03 +000030551
30552 # Failed to find lcms header?
30553 if test "$have_lcms_header" != 'yes'; then
30554 failed=`expr $failed + 1`
30555 fi
30556
30557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30558$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030559if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030560 $as_echo_n "(cached) " >&6
30561else
30562 ac_check_lib_save_LIBS=$LIBS
30563LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030565/* end confdefs.h. */
30566
30567/* Override any GCC internal prototype to avoid an error.
30568 Use char because int might match the return type of a GCC
30569 builtin and then its argument prototype would still apply. */
30570#ifdef __cplusplus
30571extern "C"
30572#endif
cristy71203402010-06-18 13:12:03 +000030573char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030574int
30575main ()
30576{
cristy71203402010-06-18 13:12:03 +000030577return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030578 ;
30579 return 0;
30580}
30581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030582if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030583 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030584else
cristy71203402010-06-18 13:12:03 +000030585 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030586fi
cristy8b350f62009-11-15 23:12:43 +000030587rm -f core conftest.err conftest.$ac_objext \
30588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030589LIBS=$ac_check_lib_save_LIBS
30590fi
cristy71203402010-06-18 13:12:03 +000030591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30592$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030593if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030594 passed=`expr $passed + 1`
30595else
30596 failed=`expr $failed + 1`
30597fi
30598
cristy8b350f62009-11-15 23:12:43 +000030599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030600$as_echo_n "checking if LCMS package is complete... " >&6; }
30601 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030602 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30604$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000030605 have_lcms='no (failed tests)'
30606 else
30607 LCMS_LIBS='-llcms'
30608 LIBS="$LCMS_LIBS $LIBS"
cristyad38abe2012-12-23 23:03:21 +000030609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30610$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000030611 have_lcms='yes'
30612 fi
cristy3ed852e2009-09-05 21:47:34 +000030613 else
cristyad38abe2012-12-23 23:03:21 +000030614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30615$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030616 fi
30617fi
cristy71203402010-06-18 13:12:03 +000030618
cristy73bd4a52010-10-05 11:24:23 +000030619 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30620 LCMS_DELEGATE_TRUE=
30621 LCMS_DELEGATE_FALSE='#'
30622else
30623 LCMS_DELEGATE_TRUE='#'
30624 LCMS_DELEGATE_FALSE=
30625fi
30626
cristy71203402010-06-18 13:12:03 +000030627if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30628
30629$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30630
30631fi
30632
cristy3ed852e2009-09-05 21:47:34 +000030633
30634
30635
30636#
cristy99db3872014-01-01 15:11:34 +000030637# Check for the OpenJP2 delegate library.
30638#
30639
30640# Check whether --with-openjp2 was given.
30641if test "${with_openjp2+set}" = set; then :
30642 withval=$with_openjp2; with_openjp2=$withval
30643else
30644 with_openjp2='yes'
30645fi
30646
30647
30648if test "$with_openjp2" != 'yes'; then
30649 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30650fi
30651
30652have_openjp2='no'
30653LIBOPENJP2_CFLAGS=""
30654LIBOPENJP2_LIBS=""
30655LIBOPENJP2_PKG=""
30656if test "x$with_openjp2" = "xyes"; then
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30658$as_echo "-------------------------------------------------------------" >&6; }
30659
30660pkg_failed=no
30661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30662$as_echo_n "checking for LIBOPENJP2... " >&6; }
30663
30664if test -n "$LIBOPENJP2_CFLAGS"; then
30665 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30666 elif test -n "$PKG_CONFIG"; then
30667 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30669 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030670 ac_status=$?
30671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30672 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030673 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030674 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030675else
30676 pkg_failed=yes
30677fi
30678 else
30679 pkg_failed=untried
30680fi
30681if test -n "$LIBOPENJP2_LIBS"; then
30682 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30683 elif test -n "$PKG_CONFIG"; then
30684 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30686 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030687 ac_status=$?
30688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30689 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030690 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030691 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030692else
30693 pkg_failed=yes
30694fi
30695 else
30696 pkg_failed=untried
30697fi
30698
30699
30700
30701if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30703$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030704
30705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30706 _pkg_short_errors_supported=yes
30707else
30708 _pkg_short_errors_supported=no
30709fi
30710 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030711 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030712 else
cristy146497a2015-05-17 22:46:16 +000030713 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000030714 fi
30715 # Put the nasty error message in config.log where it belongs
30716 echo "$LIBOPENJP2_PKG_ERRORS" >&5
30717
cristy146497a2015-05-17 22:46:16 +000030718 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000030719elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30721$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000030722 have_openjp2=no
30723else
30724 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
30725 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30727$as_echo "yes" >&6; }
30728 have_openjp2=yes
30729fi
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30731$as_echo "" >&6; }
30732fi
30733
30734if test "$have_openjp2" = 'yes'; then
30735
30736$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
30737
30738 if test "$build_modules" = 'no'; then
30739 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
30740 fi
30741fi
30742
30743 if test "$have_openjp2" = 'yes'; then
30744 LIBOPENJP2_DELEGATE_TRUE=
30745 LIBOPENJP2_DELEGATE_FALSE='#'
30746else
30747 LIBOPENJP2_DELEGATE_TRUE='#'
30748 LIBOPENJP2_DELEGATE_FALSE=
30749fi
30750
30751
30752
30753
30754
30755
30756#
cristy3ed852e2009-09-05 21:47:34 +000030757# Check for the LQR (Liquid Rescale) delegate library.
30758#
30759
30760# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030761if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030762 withval=$with_lqr; with_lqr=$withval
30763else
30764 with_lqr='yes'
30765fi
30766
30767
30768if test "$with_lqr" != 'yes'; then
30769 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30770fi
30771
30772have_lqr='no'
30773LQR_CFLAGS=""
30774LQR_LIBS=""
30775LQR_PKG=""
30776if test "x$with_lqr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30778$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030779
30780pkg_failed=no
30781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30782$as_echo_n "checking for LQR... " >&6; }
30783
30784if test -n "$LQR_CFLAGS"; then
30785 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30786 elif test -n "$PKG_CONFIG"; then
30787 if test -n "$PKG_CONFIG" && \
30788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30789 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30790 ac_status=$?
30791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30792 test $ac_status = 0; }; then
30793 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030794 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030795else
30796 pkg_failed=yes
30797fi
30798 else
30799 pkg_failed=untried
30800fi
30801if test -n "$LQR_LIBS"; then
30802 pkg_cv_LQR_LIBS="$LQR_LIBS"
30803 elif test -n "$PKG_CONFIG"; then
30804 if test -n "$PKG_CONFIG" && \
30805 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30806 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30807 ac_status=$?
30808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30809 test $ac_status = 0; }; then
30810 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030811 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030812else
30813 pkg_failed=yes
30814fi
30815 else
30816 pkg_failed=untried
30817fi
30818
30819
30820
30821if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30823$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030824
30825if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30826 _pkg_short_errors_supported=yes
30827else
30828 _pkg_short_errors_supported=no
30829fi
30830 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030831 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030832 else
cristy146497a2015-05-17 22:46:16 +000030833 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030834 fi
30835 # Put the nasty error message in config.log where it belongs
30836 echo "$LQR_PKG_ERRORS" >&5
30837
cristy146497a2015-05-17 22:46:16 +000030838 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000030839elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30841$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030842 have_lqr=no
30843else
30844 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30845 LQR_LIBS=$pkg_cv_LQR_LIBS
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30847$as_echo "yes" >&6; }
30848 have_lqr=yes
30849fi
cristyad38abe2012-12-23 23:03:21 +000030850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30851$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030852fi
30853
30854if test "$have_lqr" = 'yes'; then
30855
cristy8b350f62009-11-15 23:12:43 +000030856$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030857
30858 CFLAGS="$LQR_CFLAGS $CFLAGS"
30859fi
30860
cristy73bd4a52010-10-05 11:24:23 +000030861 if test "$have_lqr" = 'yes'; then
30862 LQR_DELEGATE_TRUE=
30863 LQR_DELEGATE_FALSE='#'
30864else
30865 LQR_DELEGATE_TRUE='#'
30866 LQR_DELEGATE_FALSE=
30867fi
30868
cristy3ed852e2009-09-05 21:47:34 +000030869
30870
30871
30872
cristy81beccd2011-10-03 18:17:24 +000030873# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030874
30875# Check whether --with-lzma was given.
30876if test "${with_lzma+set}" = set; then :
30877 withval=$with_lzma; with_lzma=$withval
30878else
30879 with_lzma='yes'
30880fi
30881
cristy81beccd2011-10-03 18:17:24 +000030882if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030883 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30884fi
30885
cristyb94e5002011-11-14 13:20:10 +000030886LZMA_PKG=""
30887if test "x$with_lzma" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000030888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30889$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030890
30891pkg_failed=no
30892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030893$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030894
30895if test -n "$LZMA_CFLAGS"; then
30896 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30897 elif test -n "$PKG_CONFIG"; then
30898 if test -n "$PKG_CONFIG" && \
30899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30900 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30901 ac_status=$?
30902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30903 test $ac_status = 0; }; then
30904 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030905 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030906else
30907 pkg_failed=yes
30908fi
30909 else
30910 pkg_failed=untried
30911fi
30912if test -n "$LZMA_LIBS"; then
30913 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30914 elif test -n "$PKG_CONFIG"; then
30915 if test -n "$PKG_CONFIG" && \
30916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30917 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30918 ac_status=$?
30919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30920 test $ac_status = 0; }; then
30921 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030922 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000030923else
30924 pkg_failed=yes
30925fi
30926 else
30927 pkg_failed=untried
30928fi
30929
30930
30931
30932if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30934$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030935
30936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30937 _pkg_short_errors_supported=yes
30938else
30939 _pkg_short_errors_supported=no
30940fi
30941 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030942 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030943 else
cristy146497a2015-05-17 22:46:16 +000030944 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000030945 fi
30946 # Put the nasty error message in config.log where it belongs
30947 echo "$LZMA_PKG_ERRORS" >&5
30948
cristy146497a2015-05-17 22:46:16 +000030949 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000030950elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30952$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000030953 have_lzma=no
30954else
30955 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30956 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30958$as_echo "yes" >&6; }
30959 have_lzma=yes
30960fi
cristyad38abe2012-12-23 23:03:21 +000030961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30962$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000030963fi
30964
cristyb94e5002011-11-14 13:20:10 +000030965if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030966
30967$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30968
cristyc6722092012-10-14 00:19:31 +000030969 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030970 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030971 fi
cristyfbb0ef02010-12-19 02:32:11 +000030972fi
cristyb94e5002011-11-14 13:20:10 +000030973
cristyfbb0ef02010-12-19 02:32:11 +000030974 if test "$have_lzma" = 'yes'; then
30975 LZMA_DELEGATE_TRUE=
30976 LZMA_DELEGATE_FALSE='#'
30977else
30978 LZMA_DELEGATE_TRUE='#'
30979 LZMA_DELEGATE_FALSE=
30980fi
30981
30982
30983
30984
cristyb94e5002011-11-14 13:20:10 +000030985
cristy3ed852e2009-09-05 21:47:34 +000030986#
30987# Check for the OpenEXR delegate library.
30988#
30989
30990# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030991if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030992 withval=$with_openexr; with_openexr=$withval
30993else
30994 with_openexr='yes'
30995fi
30996
30997
30998if test "$with_openexr" != 'yes'; then
30999 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
31000fi
31001
31002have_openexr='no'
31003OPENEXR_CFLAGS=""
31004OPENEXR_LIBS=""
31005OPENEXR_PKG=""
31006if test "x$with_openexr" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31008$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031009
31010pkg_failed=no
31011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
31012$as_echo_n "checking for OPENEXR... " >&6; }
31013
31014if test -n "$OPENEXR_CFLAGS"; then
31015 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31016 elif test -n "$PKG_CONFIG"; then
31017 if test -n "$PKG_CONFIG" && \
31018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31019 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31020 ac_status=$?
31021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31022 test $ac_status = 0; }; then
31023 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031024 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031025else
31026 pkg_failed=yes
31027fi
31028 else
31029 pkg_failed=untried
31030fi
31031if test -n "$OPENEXR_LIBS"; then
31032 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31033 elif test -n "$PKG_CONFIG"; then
31034 if test -n "$PKG_CONFIG" && \
31035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31036 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31037 ac_status=$?
31038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31039 test $ac_status = 0; }; then
31040 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031041 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031042else
31043 pkg_failed=yes
31044fi
31045 else
31046 pkg_failed=untried
31047fi
31048
31049
31050
31051if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31053$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031054
31055if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31056 _pkg_short_errors_supported=yes
31057else
31058 _pkg_short_errors_supported=no
31059fi
31060 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031061 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031062 else
cristy146497a2015-05-17 22:46:16 +000031063 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031064 fi
31065 # Put the nasty error message in config.log where it belongs
31066 echo "$OPENEXR_PKG_ERRORS" >&5
31067
cristy146497a2015-05-17 22:46:16 +000031068 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000031069elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31071$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031072 have_openexr=no
31073else
31074 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31075 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31077$as_echo "yes" >&6; }
31078 have_openexr=yes
31079fi
cristyad38abe2012-12-23 23:03:21 +000031080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31081$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031082fi
31083
31084if test "$have_openexr" = 'yes'; then
31085
cristy8b350f62009-11-15 23:12:43 +000031086$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031087
cristyc6722092012-10-14 00:19:31 +000031088 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031089 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31090 fi
31091fi
31092
cristy73bd4a52010-10-05 11:24:23 +000031093 if test "$have_openexr" = 'yes'; then
31094 OPENEXR_DELEGATE_TRUE=
31095 OPENEXR_DELEGATE_FALSE='#'
31096else
31097 OPENEXR_DELEGATE_TRUE='#'
31098 OPENEXR_DELEGATE_FALSE=
31099fi
31100
cristy3ed852e2009-09-05 21:47:34 +000031101
31102
31103
31104
31105#
cristy41cbe8a2011-10-27 01:35:18 +000031106# Check for PANGO delegate library.
31107#
31108
31109# Check whether --with-pango was given.
31110if test "${with_pango+set}" = set; then :
31111 withval=$with_pango; with_pango=$withval
31112else
cristyfc3d0222012-02-07 15:05:57 +000031113 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031114fi
31115
31116
31117if test "$with_pango" != 'yes'; then
31118 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31119fi
31120
31121have_pango='no'
cristya054b762012-03-26 23:16:00 +000031122have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031123PANGO_CFLAGS=""
31124PANGO_LIBS=""
31125PANGO_PKG=""
31126if test "x$with_pango" = "xyes"; then
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31128$as_echo "-------------------------------------------------------------" >&6; }
31129
31130pkg_failed=no
31131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31132$as_echo_n "checking for PANGO... " >&6; }
31133
31134if test -n "$PANGO_CFLAGS"; then
31135 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31136 elif test -n "$PKG_CONFIG"; then
31137 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31139 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031140 ac_status=$?
31141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31142 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031143 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031144 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031145else
31146 pkg_failed=yes
31147fi
31148 else
31149 pkg_failed=untried
31150fi
31151if test -n "$PANGO_LIBS"; then
31152 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31153 elif test -n "$PKG_CONFIG"; then
31154 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31156 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031157 ac_status=$?
31158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31159 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031160 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031161 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031162else
31163 pkg_failed=yes
31164fi
31165 else
31166 pkg_failed=untried
31167fi
31168
31169
31170
31171if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31173$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031174
31175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31176 _pkg_short_errors_supported=yes
31177else
31178 _pkg_short_errors_supported=no
31179fi
31180 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031181 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031182 else
cristy146497a2015-05-17 22:46:16 +000031183 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031184 fi
31185 # Put the nasty error message in config.log where it belongs
31186 echo "$PANGO_PKG_ERRORS" >&5
31187
cristy146497a2015-05-17 22:46:16 +000031188 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031189elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31191$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031192 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031193else
31194 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31195 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31197$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031198 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031199fi
31200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31201$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031202
31203pkg_failed=no
31204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31205$as_echo_n "checking for PANGO... " >&6; }
31206
31207if test -n "$PANGO_CFLAGS"; then
31208 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31209 elif test -n "$PKG_CONFIG"; then
31210 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31212 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031213 ac_status=$?
31214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31215 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031216 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031217 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031218else
31219 pkg_failed=yes
31220fi
31221 else
31222 pkg_failed=untried
31223fi
31224if test -n "$PANGO_LIBS"; then
31225 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31226 elif test -n "$PKG_CONFIG"; then
31227 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031228 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31229 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031230 ac_status=$?
31231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31232 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031233 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031234 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031235else
31236 pkg_failed=yes
31237fi
31238 else
31239 pkg_failed=untried
31240fi
31241
31242
31243
31244if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31246$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031247
31248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31249 _pkg_short_errors_supported=yes
31250else
31251 _pkg_short_errors_supported=no
31252fi
31253 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031254 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031255 else
cristy146497a2015-05-17 22:46:16 +000031256 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031257 fi
31258 # Put the nasty error message in config.log where it belongs
31259 echo "$PANGO_PKG_ERRORS" >&5
31260
cristy146497a2015-05-17 22:46:16 +000031261 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000031262elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31264$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031265 have_pango=no
31266else
31267 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31268 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31270$as_echo "yes" >&6; }
31271 have_pango=yes
31272fi
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31274$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031275fi
31276
31277if test "$have_pango" = 'yes'; then
31278
31279$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31280
cristyc6722092012-10-14 00:19:31 +000031281 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031282 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31283 fi
31284fi
31285
cristya054b762012-03-26 23:16:00 +000031286if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031287
cristya054b762012-03-26 23:16:00 +000031288$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031289
cristyc6722092012-10-14 00:19:31 +000031290 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031291 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031292 fi
31293fi
31294
31295 if test "$have_pango" = 'yes'; then
31296 PANGO_DELEGATE_TRUE=
31297 PANGO_DELEGATE_FALSE='#'
31298else
31299 PANGO_DELEGATE_TRUE='#'
31300 PANGO_DELEGATE_FALSE=
31301fi
31302
cristya054b762012-03-26 23:16:00 +000031303 if test "$have_pangocairo" = 'yes'; then
31304 PANGOCAIRO_DELEGATE_TRUE=
31305 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031306else
cristya054b762012-03-26 23:16:00 +000031307 PANGOCAIRO_DELEGATE_TRUE='#'
31308 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031309fi
31310
31311
31312
31313
31314
31315#
cristy3ed852e2009-09-05 21:47:34 +000031316# Check for PNG delegate library.
31317#
31318
31319# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031320if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031321 withval=$with_png; with_png=$withval
31322else
31323 with_png='yes'
31324fi
31325
31326
31327if test "$with_png" != 'yes'; then
31328 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31329fi
31330
cristy81beccd2011-10-03 18:17:24 +000031331have_png='no'
31332PNG_LIBS=''
31333
31334if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000031335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31336$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31338$as_echo_n "checking for PNG support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31340$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031341 failed=0
31342 passed=0
31343 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31344if test "x$ac_cv_header_png_h" = xyes; then :
31345 passed=`expr $passed + 1`
31346else
31347 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031348fi
31349
cristy81beccd2011-10-03 18:17:24 +000031350
31351
31352 if test $passed -gt 0; then
glennrp3fc1c212013-01-10 01:52:32 +000031353 for var in 7 6 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031354 if test "$have_png" = 'no' ; then
31355 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031356 pnglib='png'
31357 else
31358 pnglib="png1${var}"
31359 fi
31360
31361# Test for compatible LIBPNG library
31362 failed=0
31363 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031364 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031365 if test "${pnglib}" != 'png' ; then
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31367$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31369/* end confdefs.h. */
31370#include <stdio.h>
31371#include <stdlib.h>
31372#include <png.h>
31373
31374int
31375main ()
31376{
31377
31378#if PNG_LIBPNG_VER_MINOR != ${var}
31379#error LIBPNG library must be version 1${var}!
31380Kaboom, Kaboom
31381#endif
31382return 0;
31383
31384 ;
31385 return 0;
31386}
31387_ACEOF
31388if ac_fn_c_try_compile "$LINENO"; then :
31389 ac_cv_libpng_ok='yes'
31390else
31391 ac_cv_libpng_ok='no'
31392fi
31393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31394 if test "$ac_cv_libpng_ok" = 'yes' ; then
31395 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31397$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031398 else
31399 failed=`expr $failed + 1`
cristyad38abe2012-12-23 23:03:21 +000031400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31401$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031402 fi
31403 else
31404 passed=`expr $passed + 1`
cristyad38abe2012-12-23 23:03:21 +000031405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31406$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031407 fi
31408 fi
31409
31410 if test $passed -gt 0 -a $failed -le 0; then
cristy03f187e2013-01-24 00:22:19 +000031411 if test "1${var}" = '17' ; then
31412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5
31413$as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; }
31414if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then :
31415 $as_echo_n "(cached) " >&6
31416else
31417 ac_check_lib_save_LIBS=$LIBS
31418LIBS="-lpng17 $LIBS"
31419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31420/* end confdefs.h. */
31421
31422/* Override any GCC internal prototype to avoid an error.
31423 Use char because int might match the return type of a GCC
31424 builtin and then its argument prototype would still apply. */
31425#ifdef __cplusplus
31426extern "C"
31427#endif
31428char png_get_io_ptr ();
31429int
31430main ()
31431{
31432return png_get_io_ptr ();
31433 ;
31434 return 0;
31435}
31436_ACEOF
31437if ac_fn_c_try_link "$LINENO"; then :
31438 ac_cv_lib_png17_png_get_io_ptr=yes
31439else
31440 ac_cv_lib_png17_png_get_io_ptr=no
31441fi
31442rm -f core conftest.err conftest.$ac_objext \
31443 conftest$ac_exeext conftest.$ac_ext
31444LIBS=$ac_check_lib_save_LIBS
31445fi
31446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5
31447$as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; }
31448if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then :
31449 passed=`expr $passed + 1`
31450else
31451 failed=`expr $failed + 1`
31452fi
31453
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5
31455$as_echo_n "checking for png_longjmp in -lpng17... " >&6; }
31456if ${ac_cv_lib_png17_png_longjmp+:} false; then :
31457 $as_echo_n "(cached) " >&6
31458else
31459 ac_check_lib_save_LIBS=$LIBS
31460LIBS="-lpng17 $LIBS"
31461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31462/* end confdefs.h. */
31463
31464/* Override any GCC internal prototype to avoid an error.
31465 Use char because int might match the return type of a GCC
31466 builtin and then its argument prototype would still apply. */
31467#ifdef __cplusplus
31468extern "C"
31469#endif
31470char png_longjmp ();
31471int
31472main ()
31473{
31474return png_longjmp ();
31475 ;
31476 return 0;
31477}
31478_ACEOF
31479if ac_fn_c_try_link "$LINENO"; then :
31480 ac_cv_lib_png17_png_longjmp=yes
31481else
31482 ac_cv_lib_png17_png_longjmp=no
31483fi
31484rm -f core conftest.err conftest.$ac_objext \
31485 conftest$ac_exeext conftest.$ac_ext
31486LIBS=$ac_check_lib_save_LIBS
31487fi
31488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5
31489$as_echo "$ac_cv_lib_png17_png_longjmp" >&6; }
31490if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then :
31491 passed=`expr $passed + 1`
31492else
31493 failed=`expr $failed + 1`
31494fi
31495
31496 fi
31497 if test "1${var}" = '16' ; then
31498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5
31499$as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; }
31500if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then :
31501 $as_echo_n "(cached) " >&6
31502else
31503 ac_check_lib_save_LIBS=$LIBS
31504LIBS="-lpng16 $LIBS"
31505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31506/* end confdefs.h. */
31507
31508/* Override any GCC internal prototype to avoid an error.
31509 Use char because int might match the return type of a GCC
31510 builtin and then its argument prototype would still apply. */
31511#ifdef __cplusplus
31512extern "C"
31513#endif
31514char png_get_io_ptr ();
31515int
31516main ()
31517{
31518return png_get_io_ptr ();
31519 ;
31520 return 0;
31521}
31522_ACEOF
31523if ac_fn_c_try_link "$LINENO"; then :
31524 ac_cv_lib_png16_png_get_io_ptr=yes
31525else
31526 ac_cv_lib_png16_png_get_io_ptr=no
31527fi
31528rm -f core conftest.err conftest.$ac_objext \
31529 conftest$ac_exeext conftest.$ac_ext
31530LIBS=$ac_check_lib_save_LIBS
31531fi
31532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5
31533$as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; }
31534if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then :
31535 passed=`expr $passed + 1`
31536else
31537 failed=`expr $failed + 1`
31538fi
31539
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5
31541$as_echo_n "checking for png_longjmp in -lpng16... " >&6; }
31542if ${ac_cv_lib_png16_png_longjmp+:} false; then :
31543 $as_echo_n "(cached) " >&6
31544else
31545 ac_check_lib_save_LIBS=$LIBS
31546LIBS="-lpng16 $LIBS"
31547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31548/* end confdefs.h. */
31549
31550/* Override any GCC internal prototype to avoid an error.
31551 Use char because int might match the return type of a GCC
31552 builtin and then its argument prototype would still apply. */
31553#ifdef __cplusplus
31554extern "C"
31555#endif
31556char png_longjmp ();
31557int
31558main ()
31559{
31560return png_longjmp ();
31561 ;
31562 return 0;
31563}
31564_ACEOF
31565if ac_fn_c_try_link "$LINENO"; then :
31566 ac_cv_lib_png16_png_longjmp=yes
31567else
31568 ac_cv_lib_png16_png_longjmp=no
31569fi
31570rm -f core conftest.err conftest.$ac_objext \
31571 conftest$ac_exeext conftest.$ac_ext
31572LIBS=$ac_check_lib_save_LIBS
31573fi
31574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5
31575$as_echo "$ac_cv_lib_png16_png_longjmp" >&6; }
31576if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then :
31577 passed=`expr $passed + 1`
31578else
31579 failed=`expr $failed + 1`
31580fi
31581
31582 fi
cristy81beccd2011-10-03 18:17:24 +000031583 if test "1${var}" = '15' ; then
31584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31585$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31586if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31587 $as_echo_n "(cached) " >&6
31588else
31589 ac_check_lib_save_LIBS=$LIBS
31590LIBS="-lpng15 $LIBS"
31591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31592/* end confdefs.h. */
31593
31594/* Override any GCC internal prototype to avoid an error.
31595 Use char because int might match the return type of a GCC
31596 builtin and then its argument prototype would still apply. */
31597#ifdef __cplusplus
31598extern "C"
31599#endif
31600char png_get_io_ptr ();
31601int
31602main ()
31603{
31604return png_get_io_ptr ();
31605 ;
31606 return 0;
31607}
31608_ACEOF
31609if ac_fn_c_try_link "$LINENO"; then :
31610 ac_cv_lib_png15_png_get_io_ptr=yes
31611else
31612 ac_cv_lib_png15_png_get_io_ptr=no
31613fi
31614rm -f core conftest.err conftest.$ac_objext \
31615 conftest$ac_exeext conftest.$ac_ext
31616LIBS=$ac_check_lib_save_LIBS
31617fi
31618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31619$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31620if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31621 passed=`expr $passed + 1`
31622else
31623 failed=`expr $failed + 1`
31624fi
31625
31626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31627$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31628if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31629 $as_echo_n "(cached) " >&6
31630else
31631 ac_check_lib_save_LIBS=$LIBS
31632LIBS="-lpng15 $LIBS"
31633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31634/* end confdefs.h. */
31635
31636/* Override any GCC internal prototype to avoid an error.
31637 Use char because int might match the return type of a GCC
31638 builtin and then its argument prototype would still apply. */
31639#ifdef __cplusplus
31640extern "C"
31641#endif
31642char png_longjmp ();
31643int
31644main ()
31645{
31646return png_longjmp ();
31647 ;
31648 return 0;
31649}
31650_ACEOF
31651if ac_fn_c_try_link "$LINENO"; then :
31652 ac_cv_lib_png15_png_longjmp=yes
31653else
31654 ac_cv_lib_png15_png_longjmp=no
31655fi
31656rm -f core conftest.err conftest.$ac_objext \
31657 conftest$ac_exeext conftest.$ac_ext
31658LIBS=$ac_check_lib_save_LIBS
31659fi
31660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31661$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31662if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31663 passed=`expr $passed + 1`
31664else
31665 failed=`expr $failed + 1`
31666fi
31667
31668 fi
31669 if test "1${var}" = '14' ; then
31670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31671$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31672if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31673 $as_echo_n "(cached) " >&6
31674else
31675 ac_check_lib_save_LIBS=$LIBS
31676LIBS="-lpng14 $LIBS"
31677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31678/* end confdefs.h. */
31679
31680/* Override any GCC internal prototype to avoid an error.
31681 Use char because int might match the return type of a GCC
31682 builtin and then its argument prototype would still apply. */
31683#ifdef __cplusplus
31684extern "C"
31685#endif
31686char png_get_io_ptr ();
31687int
31688main ()
31689{
31690return png_get_io_ptr ();
31691 ;
31692 return 0;
31693}
31694_ACEOF
31695if ac_fn_c_try_link "$LINENO"; then :
31696 ac_cv_lib_png14_png_get_io_ptr=yes
31697else
31698 ac_cv_lib_png14_png_get_io_ptr=no
31699fi
31700rm -f core conftest.err conftest.$ac_objext \
31701 conftest$ac_exeext conftest.$ac_ext
31702LIBS=$ac_check_lib_save_LIBS
31703fi
31704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31705$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31706if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31707 passed=`expr $passed + 1`
31708else
31709 failed=`expr $failed + 1`
31710fi
31711
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31713$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31714if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31715 $as_echo_n "(cached) " >&6
31716else
31717 ac_check_lib_save_LIBS=$LIBS
31718LIBS="-lpng14 $LIBS"
31719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31720/* end confdefs.h. */
31721
31722/* Override any GCC internal prototype to avoid an error.
31723 Use char because int might match the return type of a GCC
31724 builtin and then its argument prototype would still apply. */
31725#ifdef __cplusplus
31726extern "C"
31727#endif
31728char png_get_io_state ();
31729int
31730main ()
31731{
31732return png_get_io_state ();
31733 ;
31734 return 0;
31735}
31736_ACEOF
31737if ac_fn_c_try_link "$LINENO"; then :
31738 ac_cv_lib_png14_png_get_io_state=yes
31739else
31740 ac_cv_lib_png14_png_get_io_state=no
31741fi
31742rm -f core conftest.err conftest.$ac_objext \
31743 conftest$ac_exeext conftest.$ac_ext
31744LIBS=$ac_check_lib_save_LIBS
31745fi
31746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31747$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31748if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31749 passed=`expr $passed + 1`
31750else
31751 failed=`expr $failed + 1`
31752fi
31753
31754 fi
31755 if test "1${var}" = '12' ; then
31756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31757$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31758if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31759 $as_echo_n "(cached) " >&6
31760else
31761 ac_check_lib_save_LIBS=$LIBS
31762LIBS="-lpng12 $LIBS"
31763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31764/* end confdefs.h. */
31765
31766/* Override any GCC internal prototype to avoid an error.
31767 Use char because int might match the return type of a GCC
31768 builtin and then its argument prototype would still apply. */
31769#ifdef __cplusplus
31770extern "C"
31771#endif
31772char png_get_io_ptr ();
31773int
31774main ()
31775{
31776return png_get_io_ptr ();
31777 ;
31778 return 0;
31779}
31780_ACEOF
31781if ac_fn_c_try_link "$LINENO"; then :
31782 ac_cv_lib_png12_png_get_io_ptr=yes
31783else
31784 ac_cv_lib_png12_png_get_io_ptr=no
31785fi
31786rm -f core conftest.err conftest.$ac_objext \
31787 conftest$ac_exeext conftest.$ac_ext
31788LIBS=$ac_check_lib_save_LIBS
31789fi
31790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31791$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31792if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31793 passed=`expr $passed + 1`
31794else
31795 failed=`expr $failed + 1`
31796fi
31797
31798 fi
31799 if test "1${var}" = '1' ; then
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31801$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31802if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31803 $as_echo_n "(cached) " >&6
31804else
31805 ac_check_lib_save_LIBS=$LIBS
31806LIBS="-lpng $LIBS"
31807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31808/* end confdefs.h. */
31809
31810/* Override any GCC internal prototype to avoid an error.
31811 Use char because int might match the return type of a GCC
31812 builtin and then its argument prototype would still apply. */
31813#ifdef __cplusplus
31814extern "C"
31815#endif
31816char png_get_io_ptr ();
31817int
31818main ()
31819{
31820return png_get_io_ptr ();
31821 ;
31822 return 0;
31823}
31824_ACEOF
31825if ac_fn_c_try_link "$LINENO"; then :
31826 ac_cv_lib_png_png_get_io_ptr=yes
31827else
31828 ac_cv_lib_png_png_get_io_ptr=no
31829fi
31830rm -f core conftest.err conftest.$ac_objext \
31831 conftest$ac_exeext conftest.$ac_ext
31832LIBS=$ac_check_lib_save_LIBS
31833fi
31834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31835$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31836if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31837 passed=`expr $passed + 1`
31838else
31839 failed=`expr $failed + 1`
31840fi
31841
31842 fi
31843 if test $passed -gt 0 -a $failed -le 0 ; then
31844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31845$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31846 if test $passed -gt 0 ; then
31847 if test $failed -gt 0 ; then
cristyad38abe2012-12-23 23:03:21 +000031848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31849$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031850 have_png='no (failed tests)'
31851 else
31852 PNG_LIBS="-l${pnglib}"
31853 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031854
cristy8b350f62009-11-15 23:12:43 +000031855$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031856
cristyad38abe2012-12-23 23:03:21 +000031857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31858$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031859 have_png='yes'
31860 fi
31861 fi
31862 fi
31863 fi
31864 fi
31865 done
31866 fi
cristy3ed852e2009-09-05 21:47:34 +000031867fi
cristy64877302011-08-23 19:10:31 +000031868
cristy73bd4a52010-10-05 11:24:23 +000031869 if test "$have_png" = 'yes'; then
31870 PNG_DELEGATE_TRUE=
31871 PNG_DELEGATE_FALSE='#'
31872else
31873 PNG_DELEGATE_TRUE='#'
31874 PNG_DELEGATE_FALSE=
31875fi
31876
cristy3ed852e2009-09-05 21:47:34 +000031877
cristy50d3f5c2011-09-10 20:09:06 +000031878
cristy3ed852e2009-09-05 21:47:34 +000031879
31880
31881#
31882# Check for RSVG delegate library.
31883#
31884
31885# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031886if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031887 withval=$with_rsvg; with_rsvg=$withval
31888else
cristy1164d5f2012-08-15 00:58:25 +000031889 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031890fi
31891
31892
31893if test "$with_rsvg" != 'yes'; then
31894 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31895fi
31896
31897have_rsvg='no'
31898have_cairo='no'
31899RSVG_CFLAGS=""
31900RSVG_LIBS=""
31901RSVG_PKG=""
31902if test "x$with_rsvg" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31904$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031905
31906pkg_failed=no
31907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31908$as_echo_n "checking for RSVG... " >&6; }
31909
31910if test -n "$RSVG_CFLAGS"; then
31911 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31912 elif test -n "$PKG_CONFIG"; then
31913 if test -n "$PKG_CONFIG" && \
31914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31915 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31916 ac_status=$?
31917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31918 test $ac_status = 0; }; then
31919 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031920 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031921else
31922 pkg_failed=yes
31923fi
31924 else
31925 pkg_failed=untried
31926fi
31927if test -n "$RSVG_LIBS"; then
31928 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31929 elif test -n "$PKG_CONFIG"; then
31930 if test -n "$PKG_CONFIG" && \
31931 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31932 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31933 ac_status=$?
31934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31935 test $ac_status = 0; }; then
31936 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031937 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031938else
31939 pkg_failed=yes
31940fi
31941 else
31942 pkg_failed=untried
31943fi
31944
31945
31946
31947if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31949$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031950
31951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31952 _pkg_short_errors_supported=yes
31953else
31954 _pkg_short_errors_supported=no
31955fi
31956 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031957 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031958 else
cristy146497a2015-05-17 22:46:16 +000031959 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031960 fi
31961 # Put the nasty error message in config.log where it belongs
31962 echo "$RSVG_PKG_ERRORS" >&5
31963
cristy146497a2015-05-17 22:46:16 +000031964 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031965elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31967$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031968 have_rsvg=no
31969else
31970 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31971 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31973$as_echo "yes" >&6; }
31974 have_rsvg=yes
31975fi
cristyad38abe2012-12-23 23:03:21 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31977$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031978
31979pkg_failed=no
31980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31981$as_echo_n "checking for CAIRO_SVG... " >&6; }
31982
31983if test -n "$CAIRO_SVG_CFLAGS"; then
31984 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31985 elif test -n "$PKG_CONFIG"; then
31986 if test -n "$PKG_CONFIG" && \
31987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31988 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31989 ac_status=$?
31990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31991 test $ac_status = 0; }; then
31992 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031993 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031994else
31995 pkg_failed=yes
31996fi
31997 else
31998 pkg_failed=untried
31999fi
32000if test -n "$CAIRO_SVG_LIBS"; then
32001 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
32002 elif test -n "$PKG_CONFIG"; then
32003 if test -n "$PKG_CONFIG" && \
32004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32005 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32006 ac_status=$?
32007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32008 test $ac_status = 0; }; then
32009 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032010 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000032011else
32012 pkg_failed=yes
32013fi
32014 else
32015 pkg_failed=untried
32016fi
32017
32018
32019
32020if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000032021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32022$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032023
32024if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32025 _pkg_short_errors_supported=yes
32026else
32027 _pkg_short_errors_supported=no
32028fi
32029 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000032030 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032031 else
cristy146497a2015-05-17 22:46:16 +000032032 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032033 fi
32034 # Put the nasty error message in config.log where it belongs
32035 echo "$CAIRO_SVG_PKG_ERRORS" >&5
32036
cristy146497a2015-05-17 22:46:16 +000032037 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000032038elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000032039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32040$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032041 have_cairo=no
32042else
32043 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
32044 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
32045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32046$as_echo "yes" >&6; }
32047 have_cairo=yes
32048fi
cristyad38abe2012-12-23 23:03:21 +000032049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32050$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032051fi
32052
32053if test "$have_rsvg" = 'yes'; then
32054
cristy8b350f62009-11-15 23:12:43 +000032055$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032056
cristyc6722092012-10-14 00:19:31 +000032057 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000032058 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
32059 fi
32060fi
32061
32062if test "$have_cairo" = 'yes'; then
32063
cristy8b350f62009-11-15 23:12:43 +000032064$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032065
cristyc6722092012-10-14 00:19:31 +000032066 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000032067 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
32068 fi
32069fi
32070
cristy73bd4a52010-10-05 11:24:23 +000032071 if test "$have_rsvg" = 'yes'; then
32072 RSVG_DELEGATE_TRUE=
32073 RSVG_DELEGATE_FALSE='#'
32074else
32075 RSVG_DELEGATE_TRUE='#'
32076 RSVG_DELEGATE_FALSE=
32077fi
32078
32079 if test "$have_cairo" = 'yes'; then
32080 CAIRO_DELEGATE_TRUE=
32081 CAIRO_DELEGATE_FALSE='#'
32082else
32083 CAIRO_DELEGATE_TRUE='#'
32084 CAIRO_DELEGATE_FALSE=
32085fi
32086
cristy3ed852e2009-09-05 21:47:34 +000032087
32088
32089
32090
32091#
32092# Check for TIFF delegate library.
32093#
32094
32095# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000032096if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032097 withval=$with_tiff; with_tiff=$withval
32098else
32099 with_tiff='yes'
32100fi
32101
32102
32103if test "$with_tiff" != 'yes'; then
32104 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
32105fi
32106
32107have_tiff='no'
32108TIFF_LIBS=''
32109if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32111$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032113$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32115$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032116 failed=0
32117 passed=0
cristy8b350f62009-11-15 23:12:43 +000032118 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032119if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032120 passed=`expr $passed + 1`
32121else
32122 failed=`expr $failed + 1`
32123fi
32124
32125
cristy8b350f62009-11-15 23:12:43 +000032126 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032127if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032128 passed=`expr $passed + 1`
32129else
32130 failed=`expr $failed + 1`
32131fi
32132
32133
cristy8b350f62009-11-15 23:12:43 +000032134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032135$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032136if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032137 $as_echo_n "(cached) " >&6
32138else
32139 ac_check_lib_save_LIBS=$LIBS
32140LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032142/* end confdefs.h. */
32143
32144/* Override any GCC internal prototype to avoid an error.
32145 Use char because int might match the return type of a GCC
32146 builtin and then its argument prototype would still apply. */
32147#ifdef __cplusplus
32148extern "C"
32149#endif
32150char TIFFOpen ();
32151int
32152main ()
32153{
32154return TIFFOpen ();
32155 ;
32156 return 0;
32157}
32158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032159if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032160 ac_cv_lib_tiff_TIFFOpen=yes
32161else
cristy8b350f62009-11-15 23:12:43 +000032162 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032163fi
cristy8b350f62009-11-15 23:12:43 +000032164rm -f core conftest.err conftest.$ac_objext \
32165 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032166LIBS=$ac_check_lib_save_LIBS
32167fi
cristy8b350f62009-11-15 23:12:43 +000032168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032169$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032170if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032171 passed=`expr $passed + 1`
32172else
32173 failed=`expr $failed + 1`
32174fi
32175
cristy8b350f62009-11-15 23:12:43 +000032176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032177$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032178if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032179 $as_echo_n "(cached) " >&6
32180else
32181 ac_check_lib_save_LIBS=$LIBS
32182LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032184/* end confdefs.h. */
32185
32186/* Override any GCC internal prototype to avoid an error.
32187 Use char because int might match the return type of a GCC
32188 builtin and then its argument prototype would still apply. */
32189#ifdef __cplusplus
32190extern "C"
32191#endif
32192char TIFFClientOpen ();
32193int
32194main ()
32195{
32196return TIFFClientOpen ();
32197 ;
32198 return 0;
32199}
32200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032201if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032202 ac_cv_lib_tiff_TIFFClientOpen=yes
32203else
cristy8b350f62009-11-15 23:12:43 +000032204 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032205fi
cristy8b350f62009-11-15 23:12:43 +000032206rm -f core conftest.err conftest.$ac_objext \
32207 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032208LIBS=$ac_check_lib_save_LIBS
32209fi
cristy8b350f62009-11-15 23:12:43 +000032210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032211$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032212if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032213 passed=`expr $passed + 1`
32214else
32215 failed=`expr $failed + 1`
32216fi
32217
cristy8b350f62009-11-15 23:12:43 +000032218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032219$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032220if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032221 $as_echo_n "(cached) " >&6
32222else
32223 ac_check_lib_save_LIBS=$LIBS
32224LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032226/* end confdefs.h. */
32227
32228/* Override any GCC internal prototype to avoid an error.
32229 Use char because int might match the return type of a GCC
32230 builtin and then its argument prototype would still apply. */
32231#ifdef __cplusplus
32232extern "C"
32233#endif
32234char TIFFIsByteSwapped ();
32235int
32236main ()
32237{
32238return TIFFIsByteSwapped ();
32239 ;
32240 return 0;
32241}
32242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032244 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32245else
cristy8b350f62009-11-15 23:12:43 +000032246 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032247fi
cristy8b350f62009-11-15 23:12:43 +000032248rm -f core conftest.err conftest.$ac_objext \
32249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032250LIBS=$ac_check_lib_save_LIBS
32251fi
cristy8b350f62009-11-15 23:12:43 +000032252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032253$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032254if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032255 passed=`expr $passed + 1`
32256else
32257 failed=`expr $failed + 1`
32258fi
32259
cristy8b350f62009-11-15 23:12:43 +000032260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032261$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032262if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032263 $as_echo_n "(cached) " >&6
32264else
32265 ac_check_lib_save_LIBS=$LIBS
32266LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032268/* end confdefs.h. */
32269
32270/* Override any GCC internal prototype to avoid an error.
32271 Use char because int might match the return type of a GCC
32272 builtin and then its argument prototype would still apply. */
32273#ifdef __cplusplus
32274extern "C"
32275#endif
32276char TIFFReadRGBATile ();
32277int
32278main ()
32279{
32280return TIFFReadRGBATile ();
32281 ;
32282 return 0;
32283}
32284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032286 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32287else
cristy8b350f62009-11-15 23:12:43 +000032288 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032289fi
cristy8b350f62009-11-15 23:12:43 +000032290rm -f core conftest.err conftest.$ac_objext \
32291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032292LIBS=$ac_check_lib_save_LIBS
32293fi
cristy8b350f62009-11-15 23:12:43 +000032294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032295$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032296if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032297 passed=`expr $passed + 1`
32298else
32299 failed=`expr $failed + 1`
32300fi
32301
cristy8b350f62009-11-15 23:12:43 +000032302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032303$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032304if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032305 $as_echo_n "(cached) " >&6
32306else
32307 ac_check_lib_save_LIBS=$LIBS
32308LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032310/* end confdefs.h. */
32311
32312/* Override any GCC internal prototype to avoid an error.
32313 Use char because int might match the return type of a GCC
32314 builtin and then its argument prototype would still apply. */
32315#ifdef __cplusplus
32316extern "C"
32317#endif
32318char TIFFReadRGBAStrip ();
32319int
32320main ()
32321{
32322return TIFFReadRGBAStrip ();
32323 ;
32324 return 0;
32325}
32326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032328 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32329else
cristy8b350f62009-11-15 23:12:43 +000032330 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032331fi
cristy8b350f62009-11-15 23:12:43 +000032332rm -f core conftest.err conftest.$ac_objext \
32333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032334LIBS=$ac_check_lib_save_LIBS
32335fi
cristy8b350f62009-11-15 23:12:43 +000032336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032337$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032338if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032339 passed=`expr $passed + 1`
32340else
32341 failed=`expr $failed + 1`
32342fi
32343
cristy8b350f62009-11-15 23:12:43 +000032344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032345$as_echo_n "checking if TIFF package is complete... " >&6; }
32346 if test $passed -gt 0; then
32347 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32349$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032350 have_tiff='no (failed tests)'
32351 else
32352 TIFF_LIBS='-ltiff'
32353 LIBS="$TIFF_LIBS $LIBS"
32354
cristy8b350f62009-11-15 23:12:43 +000032355$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032356
cristyad38abe2012-12-23 23:03:21 +000032357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32358$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032359 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032360 for ac_header in tiffconf.h
32361do :
32362 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032363if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032364 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032365#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032366_ACEOF
32367
32368fi
32369
32370done
32371
cristy8b350f62009-11-15 23:12:43 +000032372 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032373 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32374 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32375 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032376do :
32377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32378ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032379if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032380 cat >>confdefs.h <<_ACEOF
32381#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32382_ACEOF
32383
32384fi
32385done
32386
32387 fi
32388 else
cristyad38abe2012-12-23 23:03:21 +000032389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32390$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032391 fi
32392fi
cristy73bd4a52010-10-05 11:24:23 +000032393 if test "$have_tiff" = 'yes'; then
32394 TIFF_DELEGATE_TRUE=
32395 TIFF_DELEGATE_FALSE='#'
32396else
32397 TIFF_DELEGATE_TRUE='#'
32398 TIFF_DELEGATE_FALSE=
32399fi
32400
cristy3ed852e2009-09-05 21:47:34 +000032401
32402
32403
32404#
cristyb1860752011-03-14 00:27:46 +000032405# Check for WEBP delegate library.
32406#
32407
32408# Check whether --with-webp was given.
32409if test "${with_webp+set}" = set; then :
32410 withval=$with_webp; with_webp=$withval
32411else
32412 with_webp='yes'
32413fi
32414
32415
32416if test "$with_webp" != 'yes'; then
32417 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32418fi
32419
32420have_webp='no'
32421WEBP_LIBS=''
32422if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32424$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32426$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32428$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032429 failed=0
32430 passed=0
32431 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32432if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32433 passed=`expr $passed + 1`
32434else
32435 failed=`expr $failed + 1`
32436fi
32437
32438
cristy6d670312013-03-22 23:23:01 +000032439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32440$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32441if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032442 $as_echo_n "(cached) " >&6
32443else
32444 ac_check_lib_save_LIBS=$LIBS
32445LIBS="-lwebp $LIBS"
32446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32447/* end confdefs.h. */
32448
32449/* Override any GCC internal prototype to avoid an error.
32450 Use char because int might match the return type of a GCC
32451 builtin and then its argument prototype would still apply. */
32452#ifdef __cplusplus
32453extern "C"
32454#endif
cristy6d670312013-03-22 23:23:01 +000032455char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032456int
32457main ()
32458{
cristy6d670312013-03-22 23:23:01 +000032459return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032460 ;
32461 return 0;
32462}
32463_ACEOF
32464if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032465 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032466else
cristy6d670312013-03-22 23:23:01 +000032467 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032468fi
32469rm -f core conftest.err conftest.$ac_objext \
32470 conftest$ac_exeext conftest.$ac_ext
32471LIBS=$ac_check_lib_save_LIBS
32472fi
cristy6d670312013-03-22 23:23:01 +000032473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32474$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32475if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032476 passed=`expr $passed + 1`
32477else
32478 failed=`expr $failed + 1`
32479fi
32480
32481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32482$as_echo_n "checking if WEBP package is complete... " >&6; }
32483 if test $passed -gt 0; then
32484 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32486$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032487 have_webp='no (failed tests)'
32488 else
32489 WEBP_LIBS='-lwebp'
32490 LIBS="$WEBP_LIBS $LIBS"
32491
32492$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32493
cristyad38abe2012-12-23 23:03:21 +000032494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32495$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032496 have_webp='yes'
32497 fi
32498 else
cristyad38abe2012-12-23 23:03:21 +000032499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32500$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032501 fi
32502fi
32503 if test "$have_webp" = 'yes'; then
32504 WEBP_DELEGATE_TRUE=
32505 WEBP_DELEGATE_FALSE='#'
32506else
32507 WEBP_DELEGATE_TRUE='#'
32508 WEBP_DELEGATE_FALSE=
32509fi
32510
32511
32512
32513
32514#
cristy3ed852e2009-09-05 21:47:34 +000032515# Set Windows font directory.
32516#
32517
32518# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032519if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032520 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32521else
cristy5a3dc992014-12-05 19:50:04 +000032522 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032523fi
32524
cristy5a3dc992014-12-05 19:50:04 +000032525
32526if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032527 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32528fi
32529
32530
32531#
32532# Check for WMF delegate library.
32533#
32534
32535# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032536if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032537 withval=$with_wmf; with_wmf=$withval
32538else
cristyfc3d0222012-02-07 15:05:57 +000032539 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032540fi
32541
32542
32543if test "$with_wmf" != 'yes'; then
32544 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32545fi
32546
32547have_wmf='no'
32548WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032549WMF_LIBS_DEPS=''
32550OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032551if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32553$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032555$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32557$as_echo "" >&6; }
32558 have_libwmf='no'
32559 have_libwmflite='no'
32560 have_libwmf_ipa_h='no'
32561
32562 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32563"
32564if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32565 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032566fi
32567
32568
cristy03f7cf92011-12-15 01:40:41 +000032569 if test "$have_libwmf_ipa_h" = 'yes'; then
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32571$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32572if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032573 $as_echo_n "(cached) " >&6
32574else
32575 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032576LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032578/* end confdefs.h. */
32579
32580/* Override any GCC internal prototype to avoid an error.
32581 Use char because int might match the return type of a GCC
32582 builtin and then its argument prototype would still apply. */
32583#ifdef __cplusplus
32584extern "C"
32585#endif
cristy03f7cf92011-12-15 01:40:41 +000032586char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032587int
32588main ()
32589{
cristy03f7cf92011-12-15 01:40:41 +000032590return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032591 ;
32592 return 0;
32593}
32594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032595if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032596 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032597else
cristy03f7cf92011-12-15 01:40:41 +000032598 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032599fi
cristy8b350f62009-11-15 23:12:43 +000032600rm -f core conftest.err conftest.$ac_objext \
32601 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032602LIBS=$ac_check_lib_save_LIBS
32603fi
cristy03f7cf92011-12-15 01:40:41 +000032604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32605$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32606if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32607 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032608fi
32609
cristy03f7cf92011-12-15 01:40:41 +000032610 if test "$have_libwmflite" = 'yes'; then
32611
32612$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32613
32614 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032615 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032616 have_wmf='yes'
32617 else
32618 WMF_LIBS_DEPS=''
32619 WMF_CONFIG_LIBS=`libwmf-config --libs`
32620 for lib in xml2 expat freetype jpeg png z; do
32621 testlib="-l${lib}"
32622 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32623 done
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32625$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32626if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32627 $as_echo_n "(cached) " >&6
32628else
32629 ac_check_lib_save_LIBS=$LIBS
32630LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32632/* end confdefs.h. */
32633
32634/* Override any GCC internal prototype to avoid an error.
32635 Use char because int might match the return type of a GCC
32636 builtin and then its argument prototype would still apply. */
32637#ifdef __cplusplus
32638extern "C"
32639#endif
32640char wmf_api_create ();
32641int
32642main ()
32643{
32644return wmf_api_create ();
32645 ;
32646 return 0;
32647}
32648_ACEOF
32649if ac_fn_c_try_link "$LINENO"; then :
32650 ac_cv_lib_wmf_wmf_api_create=yes
32651else
32652 ac_cv_lib_wmf_wmf_api_create=no
32653fi
32654rm -f core conftest.err conftest.$ac_objext \
32655 conftest$ac_exeext conftest.$ac_ext
32656LIBS=$ac_check_lib_save_LIBS
32657fi
32658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32659$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32660if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32661 have_libwmf='yes'
32662fi
32663
32664 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032665
cristy8b350f62009-11-15 23:12:43 +000032666$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032667
cristy03f7cf92011-12-15 01:40:41 +000032668 WMF_LIBS='-lwmf'
32669 LIBS="$WMF_LIBS $LIBS"
32670 have_wmf='yes'
32671 else
32672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32673$as_echo "no -- some components failed test" >&6; }
32674 have_wmf='no (failed tests)'
32675 have_wmflite='no (failed tests)'
32676 LIBS="$OLIBS"
32677 WMF_LIBS=''
32678 fi
glennrp33e524b2011-08-24 17:41:57 +000032679 fi
cristy03f7cf92011-12-15 01:40:41 +000032680 fi
32681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32682$as_echo_n "checking if WMF package is complete... " >&6; }
32683 if test "$have_wmf" = 'yes'; then
32684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32685$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032686 else
cristy03f7cf92011-12-15 01:40:41 +000032687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32688$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032689 fi
cristy3ed852e2009-09-05 21:47:34 +000032690fi
cristy73bd4a52010-10-05 11:24:23 +000032691 if test "$have_wmf" = 'yes'; then
32692 WMF_DELEGATE_TRUE=
32693 WMF_DELEGATE_FALSE='#'
32694else
32695 WMF_DELEGATE_TRUE='#'
32696 WMF_DELEGATE_FALSE=
32697fi
32698
cristy3ed852e2009-09-05 21:47:34 +000032699
32700
32701
cristy81beccd2011-10-03 18:17:24 +000032702
32703
cristy3ed852e2009-09-05 21:47:34 +000032704#
32705# Check for XML delegate library.
32706#
32707
32708# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032709if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032710 withval=$with_xml; with_xml=$withval
32711else
cristyfc3d0222012-02-07 15:05:57 +000032712 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032713fi
32714
32715
cristy81beccd2011-10-03 18:17:24 +000032716if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032717 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32718fi
32719
cristy81beccd2011-10-03 18:17:24 +000032720have_xml='no'
32721XML_LIBS=''
32722if test "$with_xml" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32724$as_echo "-------------------------------------------------------------" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32726$as_echo_n "checking for XML... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32728$as_echo "" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032729 PERSIST_LDFLAGS=$LDFLAGS
32730 PERSIST_CPPFLAGS=$CPPFLAGS
32731 xml2_config=''
32732 # Extract the first word of "xml2-config", so it can be a program name with args.
32733set dummy xml2-config; ac_word=$2
32734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32735$as_echo_n "checking for $ac_word... " >&6; }
32736if ${ac_cv_path_xml2_config+:} false; then :
32737 $as_echo_n "(cached) " >&6
32738else
32739 case $xml2_config in
32740 [\\/]* | ?:[\\/]*)
32741 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32742 ;;
32743 *)
32744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32745for as_dir in $PATH
32746do
32747 IFS=$as_save_IFS
32748 test -z "$as_dir" && as_dir=.
32749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032751 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32753 break 2
32754 fi
32755done
32756 done
32757IFS=$as_save_IFS
32758
32759 ;;
32760esac
32761fi
32762xml2_config=$ac_cv_path_xml2_config
32763if test -n "$xml2_config"; then
32764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32765$as_echo "$xml2_config" >&6; }
32766else
32767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32768$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032769fi
32770
cristy81beccd2011-10-03 18:17:24 +000032771 if test -n "$xml2_config"; then
32772 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32773 # the shared library installed under /usr/lib, whereas the package
32774 # installs itself under $prefix/libxml and $prefix/lib.
cristy4a069772014-10-05 19:26:36 +000032775 xml2_prefix=`${xml2_config} --prefix`
cristy81beccd2011-10-03 18:17:24 +000032776 if test -d "${xml2_prefix}/include/libxml2"; then
32777 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32778 fi
32779 if test "${xml2_prefix}" != '/usr'; then
32780 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32781 fi
32782 fi
32783 failed=0
32784 passed=0
32785 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32786if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32787 passed=`expr $passed + 1`
32788else
32789 failed=`expr $failed + 1`
32790fi
32791
32792
32793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32794$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32795if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32796 $as_echo_n "(cached) " >&6
32797else
32798 ac_check_lib_save_LIBS=$LIBS
32799LIBS="-lxml2 $LIBS"
32800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32801/* end confdefs.h. */
32802
32803/* Override any GCC internal prototype to avoid an error.
32804 Use char because int might match the return type of a GCC
32805 builtin and then its argument prototype would still apply. */
32806#ifdef __cplusplus
32807extern "C"
32808#endif
32809char xmlSAXVersion ();
32810int
32811main ()
32812{
32813return xmlSAXVersion ();
32814 ;
32815 return 0;
32816}
32817_ACEOF
32818if ac_fn_c_try_link "$LINENO"; then :
32819 ac_cv_lib_xml2_xmlSAXVersion=yes
32820else
32821 ac_cv_lib_xml2_xmlSAXVersion=no
32822fi
32823rm -f core conftest.err conftest.$ac_objext \
32824 conftest$ac_exeext conftest.$ac_ext
32825LIBS=$ac_check_lib_save_LIBS
32826fi
32827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32828$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32829if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32830 passed=`expr $passed + 1`
32831else
32832 failed=`expr $failed + 1`
32833fi
32834
32835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32836$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32837if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32838 $as_echo_n "(cached) " >&6
32839else
32840 ac_check_lib_save_LIBS=$LIBS
32841LIBS="-lxml2 $LIBS"
32842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32843/* end confdefs.h. */
32844
32845/* Override any GCC internal prototype to avoid an error.
32846 Use char because int might match the return type of a GCC
32847 builtin and then its argument prototype would still apply. */
32848#ifdef __cplusplus
32849extern "C"
32850#endif
32851char xmlParseChunk ();
32852int
32853main ()
32854{
32855return xmlParseChunk ();
32856 ;
32857 return 0;
32858}
32859_ACEOF
32860if ac_fn_c_try_link "$LINENO"; then :
32861 ac_cv_lib_xml2_xmlParseChunk=yes
32862else
32863 ac_cv_lib_xml2_xmlParseChunk=no
32864fi
32865rm -f core conftest.err conftest.$ac_objext \
32866 conftest$ac_exeext conftest.$ac_ext
32867LIBS=$ac_check_lib_save_LIBS
32868fi
32869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32870$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32871if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32872 passed=`expr $passed + 1`
32873else
32874 failed=`expr $failed + 1`
32875fi
32876
32877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32878$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32879if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32880 $as_echo_n "(cached) " >&6
32881else
32882 ac_check_lib_save_LIBS=$LIBS
32883LIBS="-lxml2 $LIBS"
32884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32885/* end confdefs.h. */
32886
32887/* Override any GCC internal prototype to avoid an error.
32888 Use char because int might match the return type of a GCC
32889 builtin and then its argument prototype would still apply. */
32890#ifdef __cplusplus
32891extern "C"
32892#endif
32893char xmlCreatePushParserCtxt ();
32894int
32895main ()
32896{
32897return xmlCreatePushParserCtxt ();
32898 ;
32899 return 0;
32900}
32901_ACEOF
32902if ac_fn_c_try_link "$LINENO"; then :
32903 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32904else
32905 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32906fi
32907rm -f core conftest.err conftest.$ac_objext \
32908 conftest$ac_exeext conftest.$ac_ext
32909LIBS=$ac_check_lib_save_LIBS
32910fi
32911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32912$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32913if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32914 passed=`expr $passed + 1`
32915else
32916 failed=`expr $failed + 1`
32917fi
32918
32919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32920$as_echo_n "checking if XML package is complete... " >&6; }
32921 if test $passed -gt 0; then
32922 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32924$as_echo "no -- some components failed test" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032925 have_xml='no (failed tests)'
32926 LDFLAGS="$PERSIST_LDFLAGS"
32927 CPPFLAGS="$PERSIST_CPPFLAGS"
32928 else
32929 XML_LIBS='-lxml2'
32930 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032931
cristy8b350f62009-11-15 23:12:43 +000032932$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032933
cristyad38abe2012-12-23 23:03:21 +000032934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32935$as_echo "yes" >&6; }
cristy81beccd2011-10-03 18:17:24 +000032936 have_xml='yes'
32937 fi
32938 else
cristyad38abe2012-12-23 23:03:21 +000032939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32940$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032941 fi
32942fi
cristy73bd4a52010-10-05 11:24:23 +000032943 if test "$have_xml" = 'yes'; then
32944 XML_DELEGATE_TRUE=
32945 XML_DELEGATE_FALSE='#'
32946else
32947 XML_DELEGATE_TRUE='#'
32948 XML_DELEGATE_FALSE=
32949fi
32950
cristy3ed852e2009-09-05 21:47:34 +000032951
32952
32953
32954# Substitute compiler name to build/link PerlMagick
32955#
32956
32957
32958#
32959# Configure install Paths
32960#
cristy7def36a2011-10-28 19:04:41 +000032961
cristy2a11bef2011-10-28 18:33:11 +000032962# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032963INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032964INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32965DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032966case "${build_os}" in
32967 mingw* )
32968 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32969 ;;
32970esac
32971
32972cat >>confdefs.h <<_ACEOF
32973#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32974_ACEOF
32975
32976
cristy3ed852e2009-09-05 21:47:34 +000032977
cristye52f12f2012-12-31 15:32:36 +000032978# Path to ImageMagick header files (arch part)
32979INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32980DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32981case "${build_os}" in
32982 mingw* )
32983 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32984 ;;
32985esac
32986
32987cat >>confdefs.h <<_ACEOF
32988#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32989_ACEOF
32990
32991
32992
cristy3ed852e2009-09-05 21:47:34 +000032993# Subdirectory under lib to place ImageMagick lib files
32994LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32995
32996cat >>confdefs.h <<_ACEOF
32997#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32998_ACEOF
32999
33000
33001# Path to ImageMagick bin directory
33002EXECUTABLE_PATH="${BIN_DIR}"
33003DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
33004case "${build_os}" in
33005 mingw* )
33006 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
33007 ;;
33008esac
33009
33010cat >>confdefs.h <<_ACEOF
33011#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
33012_ACEOF
33013
33014
33015
33016# Path to ImageMagick lib
33017LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
33018DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
33019case "${build_os}" in
33020 mingw* )
33021 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
33022 ;;
33023esac
33024
33025cat >>confdefs.h <<_ACEOF
33026#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
33027_ACEOF
33028
33029
33030
cristy3ed852e2009-09-05 21:47:34 +000033031#
cristy8d0ff762013-03-10 20:33:28 +000033032# path to local binaries
33033if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
33034 LIB_BIN_BASEDIRNAME="bin"
33035fi
33036
33037cat >>confdefs.h <<_ACEOF
33038#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
33039_ACEOF
33040
33041
33042
33043if test "x$LIB_BIN_DIR" = "x"; then
33044 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33045fi
33046
33047
33048LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
33049
33050LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
33051
33052
33053#
cristy01ff9f32012-12-01 18:15:29 +000033054# path to modules lib
33055if test "x$MODULES_BASEDIRNAME" = "x"; then
33056 MODULES_BASEDIRNAME="modules"
33057fi
cristy3ed852e2009-09-05 21:47:34 +000033058
33059cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033060#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033061_ACEOF
33062
cristy01ff9f32012-12-01 18:15:29 +000033063
33064
33065if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000033066 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33067else
cristy3ed852e2009-09-05 21:47:34 +000033068
33069cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033070#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033071_ACEOF
33072
cristycf4a3c22012-12-02 21:47:25 +000033073fi
cristy01ff9f32012-12-01 18:15:29 +000033074
33075
cristy371d4812012-12-01 19:48:10 +000033076MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033077
33078MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
33079
33080
33081#
33082# path to coders lib
33083if test "x$CODER_DIRNAME" = "x"; then
33084 CODER_DIRNAME="coders"
33085fi
33086
33087cat >>confdefs.h <<_ACEOF
33088#define CODER_DIRNAME "$CODER_DIRNAME"
33089_ACEOF
33090
33091
33092
cristy371d4812012-12-01 19:48:10 +000033093CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033094CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033095
33096
33097#
33098# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000033099#
33100# path to coders lib
33101if test "x$FILTER_DIRNAME" = "x"; then
33102 FILTER_DIRNAME="filters"
33103fi
cristy3ed852e2009-09-05 21:47:34 +000033104
33105cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000033106#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000033107_ACEOF
33108
cristy3ed852e2009-09-05 21:47:34 +000033109
cristy3ed852e2009-09-05 21:47:34 +000033110
cristy371d4812012-12-01 19:48:10 +000033111FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000033112FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000033113
33114
33115#
33116# Path to ImageMagick documentation files
cristybdabdd62013-03-04 17:43:36 +000033117DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000033118DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
33119DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033120case "${build_os}" in
33121 mingw* )
33122 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
33123 ;;
33124esac
33125
33126cat >>confdefs.h <<_ACEOF
33127#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33128_ACEOF
33129
33130
33131
cristydd17feb2014-03-05 02:06:32 +000033132#
33133# Enable/Disable documentation
33134# Check whether --enable-docs was given.
33135if test "${enable_docs+set}" = set; then :
33136 enableval=$enable_docs; wantdocs=$enableval
33137else
cristy02272312014-03-07 00:55:25 +000033138 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000033139fi
33140
cristy02272312014-03-07 00:55:25 +000033141 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000033142 INSTALL_DOC_TRUE=
33143 INSTALL_DOC_FALSE='#'
33144else
33145 INSTALL_DOC_TRUE='#'
33146 INSTALL_DOC_FALSE=
33147fi
33148
33149
cristy2a11bef2011-10-28 18:33:11 +000033150# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000033151CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000033152
33153cat >>confdefs.h <<_ACEOF
33154#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33155_ACEOF
33156
cristy7def36a2011-10-28 19:04:41 +000033157CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000033158DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33159case "${build_os}" in
33160 mingw* )
33161 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33162 ;;
33163esac
33164
33165cat >>confdefs.h <<_ACEOF
33166#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33167_ACEOF
33168
33169
33170
cristy2a11bef2011-10-28 18:33:11 +000033171# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000033172SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000033173
33174cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033175#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033176_ACEOF
33177
cristy670aa3c2011-11-03 00:54:00 +000033178SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000033179DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000033180case "${build_os}" in
33181 mingw* )
cristy4f820712011-04-01 12:35:43 +000033182 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000033183 ;;
33184esac
33185
33186cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000033187#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000033188_ACEOF
33189
33190
33191
cristy54378032012-12-04 15:52:20 +000033192#
33193# Subdirectory to place architecture-dependent configuration files.
33194if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33195 SHAREARCH_BASEDIRNAME="config"
33196fi
cristy670aa3c2011-11-03 00:54:00 +000033197
33198cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033199#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033200_ACEOF
33201
cristy54378032012-12-04 15:52:20 +000033202
33203
33204if test "x$SHAREARCH_DIRNAME" = "x"; then
33205 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33206else
cristy670aa3c2011-11-03 00:54:00 +000033207
33208cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000033209#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000033210_ACEOF
33211
cristy54378032012-12-04 15:52:20 +000033212fi
33213
33214
33215SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33216
33217SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000033218
33219
cristy3ed852e2009-09-05 21:47:34 +000033220#
33221# program_transform_name is formed for use in a Makefile, so create a
33222# modified version for use in a shell script.
33223configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33224
33225# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000033226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33227$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000033229$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33231$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033232AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000033233BPGDecodeDelegateDefault='bpgdec'
33234BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000033235BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000033236BZIPDelegateDefault='bzip2'
33237BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000033238CatDelegateDefault='cat'
33239DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000033240DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000033241GVCDecodeDelegateDefault='dot'
33242DVIDecodeDelegateDefault='dvips'
33243EchoDelegateDefault='echo'
33244EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000033245ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
33246DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
33247MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
33248GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000033249HPGLDecodeDelegateDefault='hp2xx'
33250HTMLDecodeDelegateDefault='html2ps'
33251ILBMDecodeDelegateDefault='ilbmtoppm'
33252ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000033253JXRDecodeDelegateDefault='JxrDecApp'
33254JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000033255LPDelegateDefault='lp'
33256LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000033257LaunchDelegateDefault='gimp'
33258MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000033259MPEGDecodeDelegateDefault='avconv'
33260MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000033261MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000033262MVDelegateDefault='mv'
33263PCLDelegateDefault='pcl6'
33264PGPDecodeDelegateDefault='pgpv'
33265POVDelegateDefault='povray'
33266if test "$native_win32_build" = 'yes'; then
33267 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000033268elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033269 PSDelegateDefault='gsc'
33270else
33271 PSDelegateDefault='gs'
33272fi
33273RLEEncodeDelegateDefault='rawtorle'
33274RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000033275RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000033276SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000033277SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000033278TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000033279UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000033280WebPDecodeDelegateDefault='dwebp'
33281WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000033282WMFDecodeDelegateDefault='wmf2eps'
33283WWWDecodeDelegateDefault='curl'
33284XPSDelegateDefault='gxps'
33285ZipDelegateDefault='gzip'
33286
33287# Search for delegates
33288# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33289set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033291$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033292if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033293 $as_echo_n "(cached) " >&6
33294else
33295 case $AutotraceDecodeDelegate in
33296 [\\/]* | ?:[\\/]*)
33297 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33298 ;;
33299 *)
33300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33301for as_dir in $PATH
33302do
33303 IFS=$as_save_IFS
33304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033307 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033309 break 2
33310 fi
33311done
cristy8b350f62009-11-15 23:12:43 +000033312 done
cristy3ed852e2009-09-05 21:47:34 +000033313IFS=$as_save_IFS
33314
33315 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33316 ;;
33317esac
33318fi
33319AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33320if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033322$as_echo "$AutotraceDecodeDelegate" >&6; }
33323else
cristy8b350f62009-11-15 23:12:43 +000033324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033325$as_echo "no" >&6; }
33326fi
33327
33328
cristy16b412d2014-12-15 11:09:48 +000033329# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
33330set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
33331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33332$as_echo_n "checking for $ac_word... " >&6; }
33333if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
33334 $as_echo_n "(cached) " >&6
33335else
33336 case $BGPDecodeDelegate in
33337 [\\/]* | ?:[\\/]*)
33338 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
33339 ;;
33340 *)
33341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33342for as_dir in $PATH
33343do
33344 IFS=$as_save_IFS
33345 test -z "$as_dir" && as_dir=.
33346 for ac_exec_ext in '' $ac_executable_extensions; do
33347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33348 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33350 break 2
33351 fi
33352done
33353 done
33354IFS=$as_save_IFS
33355
33356 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33357 ;;
33358esac
33359fi
33360BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33361if test -n "$BGPDecodeDelegate"; then
33362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33363$as_echo "$BGPDecodeDelegate" >&6; }
33364else
33365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33366$as_echo "no" >&6; }
33367fi
33368
33369
33370# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33371set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33373$as_echo_n "checking for $ac_word... " >&6; }
33374if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33375 $as_echo_n "(cached) " >&6
33376else
33377 case $BGPEncodeDelegate in
33378 [\\/]* | ?:[\\/]*)
33379 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33380 ;;
33381 *)
33382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33383for as_dir in $PATH
33384do
33385 IFS=$as_save_IFS
33386 test -z "$as_dir" && as_dir=.
33387 for ac_exec_ext in '' $ac_executable_extensions; do
33388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33389 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33391 break 2
33392 fi
33393done
33394 done
33395IFS=$as_save_IFS
33396
33397 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33398 ;;
33399esac
33400fi
33401BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33402if test -n "$BGPEncodeDelegate"; then
33403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33404$as_echo "$BGPEncodeDelegate" >&6; }
33405else
33406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33407$as_echo "no" >&6; }
33408fi
33409
33410
cristy3ed852e2009-09-05 21:47:34 +000033411# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33412set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033414$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033415if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033416 $as_echo_n "(cached) " >&6
33417else
33418 case $BlenderDecodeDelegate in
33419 [\\/]* | ?:[\\/]*)
33420 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33421 ;;
33422 *)
33423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33424for as_dir in $PATH
33425do
33426 IFS=$as_save_IFS
33427 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033428 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033430 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033432 break 2
33433 fi
33434done
cristy8b350f62009-11-15 23:12:43 +000033435 done
cristy3ed852e2009-09-05 21:47:34 +000033436IFS=$as_save_IFS
33437
33438 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33439 ;;
33440esac
33441fi
33442BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33443if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033445$as_echo "$BlenderDecodeDelegate" >&6; }
33446else
cristy8b350f62009-11-15 23:12:43 +000033447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033448$as_echo "no" >&6; }
33449fi
33450
33451
33452# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33453set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033455$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033456if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033457 $as_echo_n "(cached) " >&6
33458else
33459 case $BZIPDelegate in
33460 [\\/]* | ?:[\\/]*)
33461 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33462 ;;
33463 *)
33464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33465for as_dir in $PATH
33466do
33467 IFS=$as_save_IFS
33468 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033469 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033471 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033473 break 2
33474 fi
33475done
cristy8b350f62009-11-15 23:12:43 +000033476 done
cristy3ed852e2009-09-05 21:47:34 +000033477IFS=$as_save_IFS
33478
33479 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33480 ;;
33481esac
33482fi
33483BZIPDelegate=$ac_cv_path_BZIPDelegate
33484if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033486$as_echo "$BZIPDelegate" >&6; }
33487else
cristy8b350f62009-11-15 23:12:43 +000033488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033489$as_echo "no" >&6; }
33490fi
33491
33492
cristyc59f0e72012-08-27 12:59:33 +000033493for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33494do
33495 # Extract the first word of "$ac_prog", so it can be a program name with args.
33496set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033499if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033500 $as_echo_n "(cached) " >&6
33501else
33502 case $BrowseDelegate in
33503 [\\/]* | ?:[\\/]*)
33504 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33505 ;;
33506 *)
33507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33508for as_dir in $PATH
33509do
33510 IFS=$as_save_IFS
33511 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033514 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033516 break 2
33517 fi
33518done
cristy8b350f62009-11-15 23:12:43 +000033519 done
cristy3ed852e2009-09-05 21:47:34 +000033520IFS=$as_save_IFS
33521
cristy3ed852e2009-09-05 21:47:34 +000033522 ;;
33523esac
33524fi
33525BrowseDelegate=$ac_cv_path_BrowseDelegate
33526if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528$as_echo "$BrowseDelegate" >&6; }
33529else
cristy8b350f62009-11-15 23:12:43 +000033530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo "no" >&6; }
33532fi
33533
33534
cristyc59f0e72012-08-27 12:59:33 +000033535 test -n "$BrowseDelegate" && break
33536done
33537test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33538
cristy3ed852e2009-09-05 21:47:34 +000033539# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33540set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033543if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033544 $as_echo_n "(cached) " >&6
33545else
33546 case $CatDelegate in
33547 [\\/]* | ?:[\\/]*)
33548 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33549 ;;
33550 *)
33551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33552for as_dir in $PATH
33553do
33554 IFS=$as_save_IFS
33555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033558 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033560 break 2
33561 fi
33562done
cristy8b350f62009-11-15 23:12:43 +000033563 done
cristy3ed852e2009-09-05 21:47:34 +000033564IFS=$as_save_IFS
33565
33566 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33567 ;;
33568esac
33569fi
33570CatDelegate=$ac_cv_path_CatDelegate
33571if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033573$as_echo "$CatDelegate" >&6; }
33574else
cristy8b350f62009-11-15 23:12:43 +000033575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033576$as_echo "no" >&6; }
33577fi
33578
33579
33580# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33581set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033584if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033585 $as_echo_n "(cached) " >&6
33586else
33587 case $DNGDecodeDelegate in
33588 [\\/]* | ?:[\\/]*)
33589 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33590 ;;
33591 *)
33592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33593for as_dir in $PATH
33594do
33595 IFS=$as_save_IFS
33596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033599 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033601 break 2
33602 fi
33603done
cristy8b350f62009-11-15 23:12:43 +000033604 done
cristy3ed852e2009-09-05 21:47:34 +000033605IFS=$as_save_IFS
33606
33607 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33608 ;;
33609esac
33610fi
33611DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33612if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033614$as_echo "$DNGDecodeDelegate" >&6; }
33615else
cristy8b350f62009-11-15 23:12:43 +000033616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033617$as_echo "no" >&6; }
33618fi
33619
33620
cristy66f238e2014-05-16 12:21:48 +000033621# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33622set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033624$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033625if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033626 $as_echo_n "(cached) " >&6
33627else
cristy66f238e2014-05-16 12:21:48 +000033628 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033629 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033630 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033631 ;;
33632 *)
33633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33634for as_dir in $PATH
33635do
33636 IFS=$as_save_IFS
33637 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033638 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033640 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033642 break 2
33643 fi
33644done
cristy8b350f62009-11-15 23:12:43 +000033645 done
cristy3ed852e2009-09-05 21:47:34 +000033646IFS=$as_save_IFS
33647
cristy66f238e2014-05-16 12:21:48 +000033648 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033649 ;;
33650esac
33651fi
cristy66f238e2014-05-16 12:21:48 +000033652DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33653if test -n "$DOCDecodeDelegate"; then
33654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33655$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033656else
cristy8b350f62009-11-15 23:12:43 +000033657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033658$as_echo "no" >&6; }
33659fi
33660
33661
33662# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33663set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033666if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033667 $as_echo_n "(cached) " >&6
33668else
33669 case $DVIDecodeDelegate in
33670 [\\/]* | ?:[\\/]*)
33671 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33672 ;;
33673 *)
33674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33675for as_dir in $PATH
33676do
33677 IFS=$as_save_IFS
33678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033681 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033683 break 2
33684 fi
33685done
cristy8b350f62009-11-15 23:12:43 +000033686 done
cristy3ed852e2009-09-05 21:47:34 +000033687IFS=$as_save_IFS
33688
33689 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33690 ;;
33691esac
33692fi
33693DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33694if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033696$as_echo "$DVIDecodeDelegate" >&6; }
33697else
cristy8b350f62009-11-15 23:12:43 +000033698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033699$as_echo "no" >&6; }
33700fi
33701
33702
cristy3ed852e2009-09-05 21:47:34 +000033703# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33704set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033706$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033707if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033708 $as_echo_n "(cached) " >&6
33709else
33710 case $ConvertDelegate in
33711 [\\/]* | ?:[\\/]*)
33712 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33713 ;;
33714 *)
33715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33716for as_dir in $PATH
33717do
33718 IFS=$as_save_IFS
33719 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033720 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033722 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033724 break 2
33725 fi
33726done
cristy8b350f62009-11-15 23:12:43 +000033727 done
cristy3ed852e2009-09-05 21:47:34 +000033728IFS=$as_save_IFS
33729
33730 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33731 ;;
33732esac
33733fi
33734ConvertDelegate=$ac_cv_path_ConvertDelegate
33735if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737$as_echo "$ConvertDelegate" >&6; }
33738else
cristy8b350f62009-11-15 23:12:43 +000033739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033740$as_echo "no" >&6; }
33741fi
33742
33743
33744# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33745set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033748if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033749 $as_echo_n "(cached) " >&6
33750else
33751 case $DisplayDelegate in
33752 [\\/]* | ?:[\\/]*)
33753 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33754 ;;
33755 *)
33756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33757for as_dir in $PATH
33758do
33759 IFS=$as_save_IFS
33760 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033763 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033765 break 2
33766 fi
33767done
cristy8b350f62009-11-15 23:12:43 +000033768 done
cristy3ed852e2009-09-05 21:47:34 +000033769IFS=$as_save_IFS
33770
33771 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33772 ;;
33773esac
33774fi
33775DisplayDelegate=$ac_cv_path_DisplayDelegate
33776if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778$as_echo "$DisplayDelegate" >&6; }
33779else
cristy8b350f62009-11-15 23:12:43 +000033780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781$as_echo "no" >&6; }
33782fi
33783
33784
cristy66f238e2014-05-16 12:21:48 +000033785# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33786set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033788$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033789if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033790 $as_echo_n "(cached) " >&6
33791else
cristy66f238e2014-05-16 12:21:48 +000033792 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033793 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033794 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033795 ;;
33796 *)
33797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33798for as_dir in $PATH
33799do
33800 IFS=$as_save_IFS
33801 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033804 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033806 break 2
33807 fi
33808done
cristy8b350f62009-11-15 23:12:43 +000033809 done
cristy3ed852e2009-09-05 21:47:34 +000033810IFS=$as_save_IFS
33811
cristy66f238e2014-05-16 12:21:48 +000033812 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033813 ;;
33814esac
33815fi
cristy66f238e2014-05-16 12:21:48 +000033816EchoDelegate=$ac_cv_path_EchoDelegate
33817if test -n "$EchoDelegate"; then
33818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33819$as_echo "$EchoDelegate" >&6; }
33820else
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33822$as_echo "no" >&6; }
33823fi
33824
33825
33826# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33827set dummy "$EditorDelegateDefault"; ac_word=$2
33828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33829$as_echo_n "checking for $ac_word... " >&6; }
33830if ${ac_cv_path_EditorDelegate+:} false; then :
33831 $as_echo_n "(cached) " >&6
33832else
33833 case $EditorDelegate in
33834 [\\/]* | ?:[\\/]*)
33835 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33836 ;;
33837 *)
33838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33839for as_dir in $PATH
33840do
33841 IFS=$as_save_IFS
33842 test -z "$as_dir" && as_dir=.
33843 for ac_exec_ext in '' $ac_executable_extensions; do
33844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33845 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33847 break 2
33848 fi
33849done
33850 done
33851IFS=$as_save_IFS
33852
33853 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33854 ;;
33855esac
33856fi
33857EditorDelegate=$ac_cv_path_EditorDelegate
33858if test -n "$EditorDelegate"; then
33859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33860$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033861else
cristy8b350f62009-11-15 23:12:43 +000033862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033863$as_echo "no" >&6; }
33864fi
33865
33866
33867# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33868set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033870$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033871if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033872 $as_echo_n "(cached) " >&6
33873else
33874 case $GnuplotDecodeDelegate in
33875 [\\/]* | ?:[\\/]*)
33876 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33877 ;;
33878 *)
33879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33880for as_dir in $PATH
33881do
33882 IFS=$as_save_IFS
33883 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033886 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033888 break 2
33889 fi
33890done
cristy8b350f62009-11-15 23:12:43 +000033891 done
cristy3ed852e2009-09-05 21:47:34 +000033892IFS=$as_save_IFS
33893
33894 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33895 ;;
33896esac
33897fi
33898GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33899if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033901$as_echo "$GnuplotDecodeDelegate" >&6; }
33902else
cristy8b350f62009-11-15 23:12:43 +000033903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033904$as_echo "no" >&6; }
33905fi
33906
33907
cristy66f238e2014-05-16 12:21:48 +000033908# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33909set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33911$as_echo_n "checking for $ac_word... " >&6; }
33912if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33913 $as_echo_n "(cached) " >&6
33914else
33915 case $GVCDecodeDelegate in
33916 [\\/]* | ?:[\\/]*)
33917 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33918 ;;
33919 *)
33920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33921for as_dir in $PATH
33922do
33923 IFS=$as_save_IFS
33924 test -z "$as_dir" && as_dir=.
33925 for ac_exec_ext in '' $ac_executable_extensions; do
33926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33927 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33929 break 2
33930 fi
33931done
33932 done
33933IFS=$as_save_IFS
33934
33935 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33936 ;;
33937esac
33938fi
33939GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33940if test -n "$GVCDecodeDelegate"; then
33941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33942$as_echo "$GVCDecodeDelegate" >&6; }
33943else
33944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33945$as_echo "no" >&6; }
33946fi
33947
33948
cristy3ed852e2009-09-05 21:47:34 +000033949# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33950set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033953if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033954 $as_echo_n "(cached) " >&6
33955else
33956 case $HPGLDecodeDelegate in
33957 [\\/]* | ?:[\\/]*)
33958 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33959 ;;
33960 *)
33961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33962for as_dir in $PATH
33963do
33964 IFS=$as_save_IFS
33965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033968 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033970 break 2
33971 fi
33972done
cristy8b350f62009-11-15 23:12:43 +000033973 done
cristy3ed852e2009-09-05 21:47:34 +000033974IFS=$as_save_IFS
33975
33976 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33977 ;;
33978esac
33979fi
33980HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33981if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033983$as_echo "$HPGLDecodeDelegate" >&6; }
33984else
cristy8b350f62009-11-15 23:12:43 +000033985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033986$as_echo "no" >&6; }
33987fi
33988
33989
33990# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33991set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033994if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033995 $as_echo_n "(cached) " >&6
33996else
33997 case $HTMLDecodeDelegate in
33998 [\\/]* | ?:[\\/]*)
33999 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
34000 ;;
34001 *)
34002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34003for as_dir in $PATH
34004do
34005 IFS=$as_save_IFS
34006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034009 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034011 break 2
34012 fi
34013done
cristy8b350f62009-11-15 23:12:43 +000034014 done
cristy3ed852e2009-09-05 21:47:34 +000034015IFS=$as_save_IFS
34016
34017 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
34018 ;;
34019esac
34020fi
34021HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
34022if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034024$as_echo "$HTMLDecodeDelegate" >&6; }
34025else
cristy8b350f62009-11-15 23:12:43 +000034026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034027$as_echo "no" >&6; }
34028fi
34029
34030
34031# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
34032set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034035if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034036 $as_echo_n "(cached) " >&6
34037else
34038 case $ILBMDecodeDelegate in
34039 [\\/]* | ?:[\\/]*)
34040 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
34041 ;;
34042 *)
34043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34044for as_dir in $PATH
34045do
34046 IFS=$as_save_IFS
34047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034050 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034052 break 2
34053 fi
34054done
cristy8b350f62009-11-15 23:12:43 +000034055 done
cristy3ed852e2009-09-05 21:47:34 +000034056IFS=$as_save_IFS
34057
34058 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
34059 ;;
34060esac
34061fi
34062ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
34063if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065$as_echo "$ILBMDecodeDelegate" >&6; }
34066else
cristy8b350f62009-11-15 23:12:43 +000034067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034068$as_echo "no" >&6; }
34069fi
34070
34071
34072# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
34073set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034076if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034077 $as_echo_n "(cached) " >&6
34078else
34079 case $ILBMEncodeDelegate in
34080 [\\/]* | ?:[\\/]*)
34081 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
34082 ;;
34083 *)
34084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34085for as_dir in $PATH
34086do
34087 IFS=$as_save_IFS
34088 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034091 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034093 break 2
34094 fi
34095done
cristy8b350f62009-11-15 23:12:43 +000034096 done
cristy3ed852e2009-09-05 21:47:34 +000034097IFS=$as_save_IFS
34098
34099 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
34100 ;;
34101esac
34102fi
34103ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
34104if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034106$as_echo "$ILBMEncodeDelegate" >&6; }
34107else
cristy8b350f62009-11-15 23:12:43 +000034108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034109$as_echo "no" >&6; }
34110fi
34111
34112
cristy71f53d52013-04-27 13:33:59 +000034113# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
34114set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
34115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34116$as_echo_n "checking for $ac_word... " >&6; }
34117if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
34118 $as_echo_n "(cached) " >&6
34119else
34120 case $JXRDecodeDelegate in
34121 [\\/]* | ?:[\\/]*)
34122 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
34123 ;;
34124 *)
34125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34126for as_dir in $PATH
34127do
34128 IFS=$as_save_IFS
34129 test -z "$as_dir" && as_dir=.
34130 for ac_exec_ext in '' $ac_executable_extensions; do
34131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34132 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34134 break 2
34135 fi
34136done
34137 done
34138IFS=$as_save_IFS
34139
34140 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34141 ;;
34142esac
34143fi
34144JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34145if test -n "$JXRDecodeDelegate"; then
34146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34147$as_echo "$JXRDecodeDelegate" >&6; }
34148else
34149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34150$as_echo "no" >&6; }
34151fi
34152
34153
34154# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34155set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34157$as_echo_n "checking for $ac_word... " >&6; }
34158if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34159 $as_echo_n "(cached) " >&6
34160else
34161 case $JXREncodeDelegate in
34162 [\\/]* | ?:[\\/]*)
34163 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34164 ;;
34165 *)
34166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34167for as_dir in $PATH
34168do
34169 IFS=$as_save_IFS
34170 test -z "$as_dir" && as_dir=.
34171 for ac_exec_ext in '' $ac_executable_extensions; do
34172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34173 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34175 break 2
34176 fi
34177done
34178 done
34179IFS=$as_save_IFS
34180
34181 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34182 ;;
34183esac
34184fi
34185JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34186if test -n "$JXREncodeDelegate"; then
34187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34188$as_echo "$JXREncodeDelegate" >&6; }
34189else
34190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34191$as_echo "no" >&6; }
34192fi
34193
34194
cristy3ed852e2009-09-05 21:47:34 +000034195# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34196set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034198$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034199if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034200 $as_echo_n "(cached) " >&6
34201else
34202 case $LPDelegate in
34203 [\\/]* | ?:[\\/]*)
34204 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34205 ;;
34206 *)
34207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34208for as_dir in $PATH
34209do
34210 IFS=$as_save_IFS
34211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034214 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034216 break 2
34217 fi
34218done
cristy8b350f62009-11-15 23:12:43 +000034219 done
cristy3ed852e2009-09-05 21:47:34 +000034220IFS=$as_save_IFS
34221
34222 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34223 ;;
34224esac
34225fi
34226LPDelegate=$ac_cv_path_LPDelegate
34227if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034229$as_echo "$LPDelegate" >&6; }
34230else
cristy8b350f62009-11-15 23:12:43 +000034231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034232$as_echo "no" >&6; }
34233fi
34234
34235
34236# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34237set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034240if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034241 $as_echo_n "(cached) " >&6
34242else
34243 case $LPRDelegate in
34244 [\\/]* | ?:[\\/]*)
34245 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34246 ;;
34247 *)
34248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34249for as_dir in $PATH
34250do
34251 IFS=$as_save_IFS
34252 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034253 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034255 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034257 break 2
34258 fi
34259done
cristy8b350f62009-11-15 23:12:43 +000034260 done
cristy3ed852e2009-09-05 21:47:34 +000034261IFS=$as_save_IFS
34262
34263 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34264 ;;
34265esac
34266fi
34267LPRDelegate=$ac_cv_path_LPRDelegate
34268if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034270$as_echo "$LPRDelegate" >&6; }
34271else
cristy8b350f62009-11-15 23:12:43 +000034272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034273$as_echo "no" >&6; }
34274fi
34275
34276
cristy3ed852e2009-09-05 21:47:34 +000034277# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34278set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034280$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034281if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034282 $as_echo_n "(cached) " >&6
34283else
34284 case $LaunchDelegate in
34285 [\\/]* | ?:[\\/]*)
34286 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34287 ;;
34288 *)
34289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34290for as_dir in $PATH
34291do
34292 IFS=$as_save_IFS
34293 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034294 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034296 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034298 break 2
34299 fi
34300done
cristy8b350f62009-11-15 23:12:43 +000034301 done
cristy3ed852e2009-09-05 21:47:34 +000034302IFS=$as_save_IFS
34303
34304 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34305 ;;
34306esac
34307fi
34308LaunchDelegate=$ac_cv_path_LaunchDelegate
34309if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034311$as_echo "$LaunchDelegate" >&6; }
34312else
cristy8b350f62009-11-15 23:12:43 +000034313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034314$as_echo "no" >&6; }
34315fi
34316
34317
34318# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34319set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034321$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034322if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034323 $as_echo_n "(cached) " >&6
34324else
34325 case $MANDelegate in
34326 [\\/]* | ?:[\\/]*)
34327 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34328 ;;
34329 *)
34330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34331for as_dir in $PATH
34332do
34333 IFS=$as_save_IFS
34334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034337 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034339 break 2
34340 fi
34341done
cristy8b350f62009-11-15 23:12:43 +000034342 done
cristy3ed852e2009-09-05 21:47:34 +000034343IFS=$as_save_IFS
34344
34345 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34346 ;;
34347esac
34348fi
34349MANDelegate=$ac_cv_path_MANDelegate
34350if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034352$as_echo "$MANDelegate" >&6; }
34353else
cristy8b350f62009-11-15 23:12:43 +000034354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034355$as_echo "no" >&6; }
34356fi
34357
34358
cristy66f238e2014-05-16 12:21:48 +000034359# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34360set dummy "$MogrifyDelegateDefault"; ac_word=$2
34361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34362$as_echo_n "checking for $ac_word... " >&6; }
34363if ${ac_cv_path_MogrifyDelegate+:} false; then :
34364 $as_echo_n "(cached) " >&6
34365else
34366 case $MogrifyDelegate in
34367 [\\/]* | ?:[\\/]*)
34368 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34369 ;;
34370 *)
34371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34372for as_dir in $PATH
34373do
34374 IFS=$as_save_IFS
34375 test -z "$as_dir" && as_dir=.
34376 for ac_exec_ext in '' $ac_executable_extensions; do
34377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34378 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34380 break 2
34381 fi
34382done
34383 done
34384IFS=$as_save_IFS
34385
34386 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34387 ;;
34388esac
34389fi
34390MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34391if test -n "$MogrifyDelegate"; then
34392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34393$as_echo "$MogrifyDelegate" >&6; }
34394else
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34396$as_echo "no" >&6; }
34397fi
34398
34399
cristy3ed852e2009-09-05 21:47:34 +000034400# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34401set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034403$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034404if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034405 $as_echo_n "(cached) " >&6
34406else
34407 case $MPEGDecodeDelegate in
34408 [\\/]* | ?:[\\/]*)
34409 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34410 ;;
34411 *)
34412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34413for as_dir in $PATH
34414do
34415 IFS=$as_save_IFS
34416 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034417 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034419 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034421 break 2
34422 fi
34423done
cristy8b350f62009-11-15 23:12:43 +000034424 done
cristy3ed852e2009-09-05 21:47:34 +000034425IFS=$as_save_IFS
34426
34427 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34428 ;;
34429esac
34430fi
34431MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34432if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034434$as_echo "$MPEGDecodeDelegate" >&6; }
34435else
cristy8b350f62009-11-15 23:12:43 +000034436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034437$as_echo "no" >&6; }
34438fi
34439
34440
cristy058d15f2014-08-21 18:53:03 +000034441if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034442 MPEGDecodeDelegateDefault='ffmpeg'
34443 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34444set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34446$as_echo_n "checking for $ac_word... " >&6; }
34447if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34448 $as_echo_n "(cached) " >&6
34449else
34450 case $MPEGDecodeDelegate in
34451 [\\/]* | ?:[\\/]*)
34452 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34453 ;;
34454 *)
34455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34456for as_dir in $PATH
34457do
34458 IFS=$as_save_IFS
34459 test -z "$as_dir" && as_dir=.
34460 for ac_exec_ext in '' $ac_executable_extensions; do
34461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34462 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34464 break 2
34465 fi
34466done
34467 done
34468IFS=$as_save_IFS
34469
34470 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34471 ;;
34472esac
34473fi
34474MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34475if test -n "$MPEGDecodeDelegate"; then
34476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34477$as_echo "$MPEGDecodeDelegate" >&6; }
34478else
34479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34480$as_echo "no" >&6; }
34481fi
34482
34483
34484fi;
cristy3ed852e2009-09-05 21:47:34 +000034485# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34486set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034489if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034490 $as_echo_n "(cached) " >&6
34491else
34492 case $MPEGEncodeDelegate in
34493 [\\/]* | ?:[\\/]*)
34494 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34495 ;;
34496 *)
34497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34498for as_dir in $PATH
34499do
34500 IFS=$as_save_IFS
34501 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034504 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034506 break 2
34507 fi
34508done
cristy8b350f62009-11-15 23:12:43 +000034509 done
cristy3ed852e2009-09-05 21:47:34 +000034510IFS=$as_save_IFS
34511
34512 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34513 ;;
34514esac
34515fi
34516MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34517if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034519$as_echo "$MPEGEncodeDelegate" >&6; }
34520else
cristy8b350f62009-11-15 23:12:43 +000034521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034522$as_echo "no" >&6; }
34523fi
34524
34525
cristy058d15f2014-08-21 18:53:03 +000034526if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034527 MPEGEncodeDelegateDefault='ffmpeg'
34528 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34529set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34531$as_echo_n "checking for $ac_word... " >&6; }
34532if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34533 $as_echo_n "(cached) " >&6
34534else
34535 case $MPEGEncodeDelegate in
34536 [\\/]* | ?:[\\/]*)
34537 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34538 ;;
34539 *)
34540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34541for as_dir in $PATH
34542do
34543 IFS=$as_save_IFS
34544 test -z "$as_dir" && as_dir=.
34545 for ac_exec_ext in '' $ac_executable_extensions; do
34546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34547 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34549 break 2
34550 fi
34551done
34552 done
34553IFS=$as_save_IFS
34554
34555 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34556 ;;
34557esac
34558fi
34559MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34560if test -n "$MPEGEncodeDelegate"; then
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34562$as_echo "$MPEGEncodeDelegate" >&6; }
34563else
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34565$as_echo "no" >&6; }
34566fi
34567
34568
34569fi;
cristy935c86e2010-06-05 23:50:07 +000034570# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34571set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034574if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034575 $as_echo_n "(cached) " >&6
34576else
34577 case $MrSIDDecodeDelegate in
34578 [\\/]* | ?:[\\/]*)
34579 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34580 ;;
34581 *)
34582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34583for as_dir in $PATH
34584do
34585 IFS=$as_save_IFS
34586 test -z "$as_dir" && as_dir=.
34587 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034589 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34591 break 2
34592 fi
34593done
34594 done
34595IFS=$as_save_IFS
34596
34597 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34598 ;;
34599esac
34600fi
34601MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34602if test -n "$MrSIDDecodeDelegate"; then
34603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34604$as_echo "$MrSIDDecodeDelegate" >&6; }
34605else
34606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34607$as_echo "no" >&6; }
34608fi
34609
34610
cristy3ed852e2009-09-05 21:47:34 +000034611# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34612set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034615if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034616 $as_echo_n "(cached) " >&6
34617else
34618 case $MVDelegate in
34619 [\\/]* | ?:[\\/]*)
34620 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34621 ;;
34622 *)
34623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34624for as_dir in $PATH
34625do
34626 IFS=$as_save_IFS
34627 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034628 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034630 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034632 break 2
34633 fi
34634done
cristy8b350f62009-11-15 23:12:43 +000034635 done
cristy3ed852e2009-09-05 21:47:34 +000034636IFS=$as_save_IFS
34637
34638 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34639 ;;
34640esac
34641fi
34642MVDelegate=$ac_cv_path_MVDelegate
34643if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034645$as_echo "$MVDelegate" >&6; }
34646else
cristy8b350f62009-11-15 23:12:43 +000034647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034648$as_echo "no" >&6; }
34649fi
34650
34651
34652# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34653set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034656if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034657 $as_echo_n "(cached) " >&6
34658else
34659 case $PCLDelegate in
34660 [\\/]* | ?:[\\/]*)
34661 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34662 ;;
34663 *)
34664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34665for as_dir in $PATH
34666do
34667 IFS=$as_save_IFS
34668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034671 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034673 break 2
34674 fi
34675done
cristy8b350f62009-11-15 23:12:43 +000034676 done
cristy3ed852e2009-09-05 21:47:34 +000034677IFS=$as_save_IFS
34678
34679 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34680 ;;
34681esac
34682fi
34683PCLDelegate=$ac_cv_path_PCLDelegate
34684if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034686$as_echo "$PCLDelegate" >&6; }
34687else
cristy8b350f62009-11-15 23:12:43 +000034688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034689$as_echo "no" >&6; }
34690fi
34691
34692
34693# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34694set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034696$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034697if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034698 $as_echo_n "(cached) " >&6
34699else
34700 case $PGPDecodeDelegate in
34701 [\\/]* | ?:[\\/]*)
34702 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34703 ;;
34704 *)
34705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34706for as_dir in $PATH
34707do
34708 IFS=$as_save_IFS
34709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034712 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034714 break 2
34715 fi
34716done
cristy8b350f62009-11-15 23:12:43 +000034717 done
cristy3ed852e2009-09-05 21:47:34 +000034718IFS=$as_save_IFS
34719
34720 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34721 ;;
34722esac
34723fi
34724PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34725if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034727$as_echo "$PGPDecodeDelegate" >&6; }
34728else
cristy8b350f62009-11-15 23:12:43 +000034729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034730$as_echo "no" >&6; }
34731fi
34732
34733
34734# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34735set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034738if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034739 $as_echo_n "(cached) " >&6
34740else
34741 case $POVDelegate in
34742 [\\/]* | ?:[\\/]*)
34743 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34744 ;;
34745 *)
34746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34747for as_dir in $PATH
34748do
34749 IFS=$as_save_IFS
34750 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034751 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034753 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034755 break 2
34756 fi
34757done
cristy8b350f62009-11-15 23:12:43 +000034758 done
cristy3ed852e2009-09-05 21:47:34 +000034759IFS=$as_save_IFS
34760
34761 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34762 ;;
34763esac
34764fi
34765POVDelegate=$ac_cv_path_POVDelegate
34766if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034768$as_echo "$POVDelegate" >&6; }
34769else
cristy8b350f62009-11-15 23:12:43 +000034770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034771$as_echo "no" >&6; }
34772fi
34773
34774
34775for ac_prog in gsx gsc "$PSDelegateDefault"
34776do
34777 # Extract the first word of "$ac_prog", so it can be a program name with args.
34778set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034781if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034782 $as_echo_n "(cached) " >&6
34783else
34784 case $PSDelegate in
34785 [\\/]* | ?:[\\/]*)
34786 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34787 ;;
34788 *)
34789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34790for as_dir in $PATH
34791do
34792 IFS=$as_save_IFS
34793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034796 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034798 break 2
34799 fi
34800done
cristy8b350f62009-11-15 23:12:43 +000034801 done
cristy3ed852e2009-09-05 21:47:34 +000034802IFS=$as_save_IFS
34803
34804 ;;
34805esac
34806fi
34807PSDelegate=$ac_cv_path_PSDelegate
34808if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034810$as_echo "$PSDelegate" >&6; }
34811else
cristy8b350f62009-11-15 23:12:43 +000034812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034813$as_echo "no" >&6; }
34814fi
34815
34816
34817 test -n "$PSDelegate" && break
34818done
34819test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34820
34821# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34822set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034825if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034826 $as_echo_n "(cached) " >&6
34827else
34828 case $RLEEncodeDelegate in
34829 [\\/]* | ?:[\\/]*)
34830 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34831 ;;
34832 *)
34833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34834for as_dir in $PATH
34835do
34836 IFS=$as_save_IFS
34837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034840 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034842 break 2
34843 fi
34844done
cristy8b350f62009-11-15 23:12:43 +000034845 done
cristy3ed852e2009-09-05 21:47:34 +000034846IFS=$as_save_IFS
34847
34848 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34849 ;;
34850esac
34851fi
34852RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34853if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034855$as_echo "$RLEEncodeDelegate" >&6; }
34856else
cristy8b350f62009-11-15 23:12:43 +000034857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034858$as_echo "no" >&6; }
34859fi
34860
34861
34862# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34863set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034866if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034867 $as_echo_n "(cached) " >&6
34868else
34869 case $RMDelegate in
34870 [\\/]* | ?:[\\/]*)
34871 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34872 ;;
34873 *)
34874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34875for as_dir in $PATH
34876do
34877 IFS=$as_save_IFS
34878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034881 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034883 break 2
34884 fi
34885done
cristy8b350f62009-11-15 23:12:43 +000034886 done
cristy3ed852e2009-09-05 21:47:34 +000034887IFS=$as_save_IFS
34888
34889 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34890 ;;
34891esac
34892fi
34893RMDelegate=$ac_cv_path_RMDelegate
34894if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034896$as_echo "$RMDelegate" >&6; }
34897else
cristy8b350f62009-11-15 23:12:43 +000034898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034899$as_echo "no" >&6; }
34900fi
34901
34902
cristy4689cf02010-02-17 21:15:45 +000034903# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34904set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034907if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034908 $as_echo_n "(cached) " >&6
34909else
34910 case $RSVGDecodeDelegate in
34911 [\\/]* | ?:[\\/]*)
34912 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34913 ;;
34914 *)
34915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34916for as_dir in $PATH
34917do
34918 IFS=$as_save_IFS
34919 test -z "$as_dir" && as_dir=.
34920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034922 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34924 break 2
34925 fi
34926done
34927 done
34928IFS=$as_save_IFS
34929
34930 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34931 ;;
34932esac
34933fi
34934RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34935if test -n "$RSVGDecodeDelegate"; then
34936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34937$as_echo "$RSVGDecodeDelegate" >&6; }
34938else
34939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34940$as_echo "no" >&6; }
34941fi
34942
34943
cristy3ed852e2009-09-05 21:47:34 +000034944# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34945set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034948if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034949 $as_echo_n "(cached) " >&6
34950else
34951 case $SCANDecodeDelegate in
34952 [\\/]* | ?:[\\/]*)
34953 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34954 ;;
34955 *)
34956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34957for as_dir in $PATH
34958do
34959 IFS=$as_save_IFS
34960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034963 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034965 break 2
34966 fi
34967done
cristy8b350f62009-11-15 23:12:43 +000034968 done
cristy3ed852e2009-09-05 21:47:34 +000034969IFS=$as_save_IFS
34970
34971 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34972 ;;
34973esac
34974fi
34975SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34976if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034978$as_echo "$SCANDecodeDelegate" >&6; }
34979else
cristy8b350f62009-11-15 23:12:43 +000034980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034981$as_echo "no" >&6; }
34982fi
34983
34984
cristyec6934f2012-08-14 18:38:40 +000034985# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34986set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34988$as_echo_n "checking for $ac_word... " >&6; }
34989if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34990 $as_echo_n "(cached) " >&6
34991else
34992 case $SVGDecodeDelegate in
34993 [\\/]* | ?:[\\/]*)
34994 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34995 ;;
34996 *)
34997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34998for as_dir in $PATH
34999do
35000 IFS=$as_save_IFS
35001 test -z "$as_dir" && as_dir=.
35002 for ac_exec_ext in '' $ac_executable_extensions; do
35003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35004 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35006 break 2
35007 fi
35008done
35009 done
35010IFS=$as_save_IFS
35011
35012 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
35013 ;;
35014esac
35015fi
35016SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
35017if test -n "$SVGDecodeDelegate"; then
35018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
35019$as_echo "$SVGDecodeDelegate" >&6; }
35020else
35021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35022$as_echo "no" >&6; }
35023fi
35024
35025
cristy3ed852e2009-09-05 21:47:34 +000035026# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
35027set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035030if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035031 $as_echo_n "(cached) " >&6
35032else
35033 case $TXTDelegate in
35034 [\\/]* | ?:[\\/]*)
35035 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
35036 ;;
35037 *)
35038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35039for as_dir in $PATH
35040do
35041 IFS=$as_save_IFS
35042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035045 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035047 break 2
35048 fi
35049done
cristy8b350f62009-11-15 23:12:43 +000035050 done
cristy3ed852e2009-09-05 21:47:34 +000035051IFS=$as_save_IFS
35052
35053 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
35054 ;;
35055esac
35056fi
35057TXTDelegate=$ac_cv_path_TXTDelegate
35058if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035060$as_echo "$TXTDelegate" >&6; }
35061else
cristy8b350f62009-11-15 23:12:43 +000035062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035063$as_echo "no" >&6; }
35064fi
35065
35066
cristy5ac9ac82010-07-29 13:24:24 +000035067# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
35068set dummy "$UniconvertorDelegateDefault"; ac_word=$2
35069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035071if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000035072 $as_echo_n "(cached) " >&6
35073else
35074 case $UniconvertorDelegate in
35075 [\\/]* | ?:[\\/]*)
35076 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
35077 ;;
35078 *)
35079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35080for as_dir in $PATH
35081do
35082 IFS=$as_save_IFS
35083 test -z "$as_dir" && as_dir=.
35084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000035086 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
35087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35088 break 2
35089 fi
35090done
35091 done
35092IFS=$as_save_IFS
35093
35094 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
35095 ;;
35096esac
35097fi
35098UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
35099if test -n "$UniconvertorDelegate"; then
35100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
35101$as_echo "$UniconvertorDelegate" >&6; }
35102else
35103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35104$as_echo "no" >&6; }
35105fi
35106
35107
cristy86e86092013-08-04 17:43:57 +000035108# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
35109set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
35110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35111$as_echo_n "checking for $ac_word... " >&6; }
35112if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
35113 $as_echo_n "(cached) " >&6
35114else
35115 case $WebPDecodeDelegate in
35116 [\\/]* | ?:[\\/]*)
35117 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
35118 ;;
35119 *)
35120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35121for as_dir in $PATH
35122do
35123 IFS=$as_save_IFS
35124 test -z "$as_dir" && as_dir=.
35125 for ac_exec_ext in '' $ac_executable_extensions; do
35126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35127 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35129 break 2
35130 fi
35131done
35132 done
35133IFS=$as_save_IFS
35134
35135 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35136 ;;
35137esac
35138fi
35139WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35140if test -n "$WebPDecodeDelegate"; then
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35142$as_echo "$WebPDecodeDelegate" >&6; }
35143else
35144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35145$as_echo "no" >&6; }
35146fi
35147
35148
35149# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35150set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35152$as_echo_n "checking for $ac_word... " >&6; }
35153if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35154 $as_echo_n "(cached) " >&6
35155else
35156 case $WebPEncodeDelegate in
35157 [\\/]* | ?:[\\/]*)
35158 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35159 ;;
35160 *)
35161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35162for as_dir in $PATH
35163do
35164 IFS=$as_save_IFS
35165 test -z "$as_dir" && as_dir=.
35166 for ac_exec_ext in '' $ac_executable_extensions; do
35167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35168 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35170 break 2
35171 fi
35172done
35173 done
35174IFS=$as_save_IFS
35175
35176 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35177 ;;
35178esac
35179fi
35180WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35181if test -n "$WebPEncodeDelegate"; then
35182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35183$as_echo "$WebPEncodeDelegate" >&6; }
35184else
35185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35186$as_echo "no" >&6; }
35187fi
35188
35189
cristy3ed852e2009-09-05 21:47:34 +000035190# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
35191set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035194if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035195 $as_echo_n "(cached) " >&6
35196else
35197 case $WMFDecodeDelegate in
35198 [\\/]* | ?:[\\/]*)
35199 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
35200 ;;
35201 *)
35202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35203for as_dir in $PATH
35204do
35205 IFS=$as_save_IFS
35206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035209 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035211 break 2
35212 fi
35213done
cristy8b350f62009-11-15 23:12:43 +000035214 done
cristy3ed852e2009-09-05 21:47:34 +000035215IFS=$as_save_IFS
35216
35217 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
35218 ;;
35219esac
35220fi
35221WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
35222if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035224$as_echo "$WMFDecodeDelegate" >&6; }
35225else
cristy8b350f62009-11-15 23:12:43 +000035226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035227$as_echo "no" >&6; }
35228fi
35229
35230
35231# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35232set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035235if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035236 $as_echo_n "(cached) " >&6
35237else
35238 case $WWWDecodeDelegate in
35239 [\\/]* | ?:[\\/]*)
35240 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35241 ;;
35242 *)
35243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35244for as_dir in $PATH
35245do
35246 IFS=$as_save_IFS
35247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035250 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035252 break 2
35253 fi
35254done
cristy8b350f62009-11-15 23:12:43 +000035255 done
cristy3ed852e2009-09-05 21:47:34 +000035256IFS=$as_save_IFS
35257
35258 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
35259 ;;
35260esac
35261fi
35262WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35263if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035265$as_echo "$WWWDecodeDelegate" >&6; }
35266else
cristy8b350f62009-11-15 23:12:43 +000035267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035268$as_echo "no" >&6; }
35269fi
35270
35271
35272# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35273set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035276if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035277 $as_echo_n "(cached) " >&6
35278else
35279 case $XPSDelegate in
35280 [\\/]* | ?:[\\/]*)
35281 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35282 ;;
35283 *)
35284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35285for as_dir in $PATH
35286do
35287 IFS=$as_save_IFS
35288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035291 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035293 break 2
35294 fi
35295done
cristy8b350f62009-11-15 23:12:43 +000035296 done
cristy3ed852e2009-09-05 21:47:34 +000035297IFS=$as_save_IFS
35298
35299 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35300 ;;
35301esac
35302fi
35303XPSDelegate=$ac_cv_path_XPSDelegate
35304if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035306$as_echo "$XPSDelegate" >&6; }
35307else
cristy8b350f62009-11-15 23:12:43 +000035308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035309$as_echo "no" >&6; }
35310fi
35311
35312
35313# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35314set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035316$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035317if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035318 $as_echo_n "(cached) " >&6
35319else
35320 case $ZipDelegate in
35321 [\\/]* | ?:[\\/]*)
35322 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35323 ;;
35324 *)
35325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35326for as_dir in $PATH
35327do
35328 IFS=$as_save_IFS
35329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035332 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035334 break 2
35335 fi
35336done
cristy8b350f62009-11-15 23:12:43 +000035337 done
cristy3ed852e2009-09-05 21:47:34 +000035338IFS=$as_save_IFS
35339
35340 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35341 ;;
35342esac
35343fi
35344ZipDelegate=$ac_cv_path_ZipDelegate
35345if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035347$as_echo "$ZipDelegate" >&6; }
35348else
cristy8b350f62009-11-15 23:12:43 +000035349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035350$as_echo "no" >&6; }
35351fi
35352
35353
35354
35355# Prefer lpr to lp; lp needs options tacked on.
35356if test "$LPRDelegate" != no; then
35357 PrintDelegate="$LPRDelegate"
35358else
35359 PrintDelegate="$LPDelegate -c -s"
35360fi
35361
35362
35363# Installed ImageMagick utiltity paths
35364ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35365DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35366MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35367
35368# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035369have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035370have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35371have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35372have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035373have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035374have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35375have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035376have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35377
35378#
35379# Test for font directories
35380#
35381type_include_files=''
35382
cristy5a3dc992014-12-05 19:50:04 +000035383 Apple fonts.
35384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35385$as_echo_n "checking for Apple fonts directory... " >&6; }
35386apple_font_dir=''
35387if test "${with_apple_font_dir}" != 'default'; then
35388 apple_font_dir="${with_apple_font_dir}/"
35389else
35390 for font_dir in '/Library/Fonts/'; do
35391 if test -f "${font_dir}Arial.ttf"; then
35392 apple_font_dir="${font_dir}"
35393 break 1
35394 fi
35395 done
35396fi
35397if test "${apple_font_dir}x" != 'x'; then
35398 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35400$as_echo "$apple_font_dir" >&6; }
35401else
35402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35403$as_echo "not found!" >&6; };
35404fi
35405
35406
cristy430a7312010-01-21 20:44:04 +000035407# Dejavu fonts.
35408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35409$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35410dejavu_font_dir=''
35411if test "${with_dejavu_font_dir}" != 'default'; then
35412 dejavu_font_dir="${with_dejavu_font_dir}/"
35413else
35414 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35415 if test -f "${font_dir}DejaVuSerif.ttf"; then
35416 dejavu_font_dir="${font_dir}"
35417 break 1
35418 fi
35419 done
35420fi
35421if test "${dejavu_font_dir}x" != 'x'; then
35422 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35424$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035425else
cristyad38abe2012-12-23 23:03:21 +000035426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35427$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035428fi
35429
35430
cristy3ed852e2009-09-05 21:47:34 +000035431# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035433$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35434ghostscript_font_dir=''
35435if test "${with_gs_font_dir}" != 'default'; then
35436 ghostscript_font_dir="${with_gs_font_dir}/"
35437else
35438 if test "${native_win32_build}" = 'yes'; then
35439 # Native Windows Build
35440 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35441 if test -f "${font_dir}a010013l.pfb"; then
35442 ghostscript_font_dir="$font_dir"
35443 break 1
35444 fi
35445 done
35446 if test "${PSDelegate}" != 'gswin32c'; then
35447 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35448 fi
35449 else
35450 # Linux / Mac OS X / Unix Build
35451 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
35452 if test -f "${font_dir}a010013l.pfb"; then
35453 ghostscript_font_dir="${font_dir}"
35454 break 1
35455 fi
35456 done
35457 if test "${ghostscript_font_dir}x" = 'x'; then
35458 if test "$PSDelegate" != 'gs'; then
35459 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35460 fi
35461 fi
35462 fi
35463fi
35464if test "${ghostscript_font_dir}x" != 'x'; then
35465 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35467$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035468else
cristyad38abe2012-12-23 23:03:21 +000035469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35470$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035471fi
35472
35473case "${build_os}" in
35474 mingw* )
35475 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35476 ;;
35477esac
35478
cristy5a3dc992014-12-05 19:50:04 +000035479# Windows fonts.
35480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35481$as_echo_n "checking for Windows fonts directory... " >&6; }
35482windows_font_dir=''
35483if test "${with_windows_font_dir}" != 'default'; then
35484 windows_font_dir="${with_windows_font_dir}/"
35485else
35486 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35487 if test -f "${font_dir}arial.ttf"; then
35488 windows_font_dir="${font_dir}"
35489 break 1
35490 fi
35491 done
35492fi
35493if test "${windows_font_dir}x" != 'x'; then
35494 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35496$as_echo "$windows_font_dir" >&6; }
35497else
35498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35499$as_echo "not found!" >&6; };
35500fi
35501
35502
cristy3ed852e2009-09-05 21:47:34 +000035503
35504
35505#
35506# Handle case where user doesn't want frozen paths
35507#
35508if test "$with_frozenpaths" != 'yes'; then
35509 # Re-set delegate definitions to default (no paths)
35510 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035511 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35512 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035513 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35514 BZIPDelegate="$BZIPDelegateDefault"
35515 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035516 CatDelegate="$CatDelegateDefault"
35517 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035518 DisplayDelegate="$DisplayDelegateDefault"
35519 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035520 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035521 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35522 EchoDelegate="$EchoDelegateDefault"
35523 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035524 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035525 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035526 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35527 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35528 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35529 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035530 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35531 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035532 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035533 LaunchDelegate="$LaunchDelegateDefault"
35534 MANDelegate="$MANDelegateDefault"
35535 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35536 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035537 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035538 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35539 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035540 PCLDelegate="$PCLDelegateDefault"
35541 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35542 POVDelegate="$POVDelegateDefault"
35543 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035544 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35545 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035546 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035547 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035548 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035549 ShowImageDelegate="$ShowImageDelegateDefault"
35550 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035551 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035552 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35553 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035554 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35555 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35556 XPSDelegate="$XPSDelegateDefault"
35557 ZipDelegate="$ZipDelegateDefault"
35558fi
35559
35560# Delegate substitutions
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
cristy71f53d52013-04-27 13:33:59 +000035601
35602
cristy16b412d2014-12-15 11:09:48 +000035603
35604
cristy3ed852e2009-09-05 21:47:34 +000035605#
35606# RPM support.
35607#
35608RPM=''
35609for ac_prog in gnutar gtar tar
35610do
35611 # Extract the first word of "$ac_prog", so it can be a program name with args.
35612set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035614$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035615if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035616 $as_echo_n "(cached) " >&6
35617else
35618 if test -n "$TAR"; then
35619 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35620else
35621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35622for as_dir in $PATH
35623do
35624 IFS=$as_save_IFS
35625 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035628 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035630 break 2
35631 fi
35632done
cristy8b350f62009-11-15 23:12:43 +000035633 done
cristy3ed852e2009-09-05 21:47:34 +000035634IFS=$as_save_IFS
35635
35636fi
35637fi
35638TAR=$ac_cv_prog_TAR
35639if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035641$as_echo "$TAR" >&6; }
35642else
cristy8b350f62009-11-15 23:12:43 +000035643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035644$as_echo "no" >&6; }
35645fi
35646
35647
35648 test -n "$TAR" && break
35649done
35650
35651for ac_prog in perl
35652do
35653 # Extract the first word of "$ac_prog", so it can be a program name with args.
35654set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035656$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035657if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035658 $as_echo_n "(cached) " >&6
35659else
35660 if test -n "$PERL"; then
35661 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35662else
35663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35664for as_dir in $PATH
35665do
35666 IFS=$as_save_IFS
35667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035670 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035672 break 2
35673 fi
35674done
cristy8b350f62009-11-15 23:12:43 +000035675 done
cristy3ed852e2009-09-05 21:47:34 +000035676IFS=$as_save_IFS
35677
35678fi
35679fi
35680PERL=$ac_cv_prog_PERL
35681if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035683$as_echo "$PERL" >&6; }
35684else
cristy8b350f62009-11-15 23:12:43 +000035685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035686$as_echo "no" >&6; }
35687fi
35688
35689
35690 test -n "$PERL" && break
35691done
35692
35693for ac_prog in rpmbuild rpm
35694do
35695 # Extract the first word of "$ac_prog", so it can be a program name with args.
35696set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035699if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035700 $as_echo_n "(cached) " >&6
35701else
35702 if test -n "$RPM"; then
35703 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35704else
35705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35706for as_dir in $PATH
35707do
35708 IFS=$as_save_IFS
35709 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035710 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035712 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035714 break 2
35715 fi
35716done
cristy8b350f62009-11-15 23:12:43 +000035717 done
cristy3ed852e2009-09-05 21:47:34 +000035718IFS=$as_save_IFS
35719
35720fi
35721fi
35722RPM=$ac_cv_prog_RPM
35723if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035725$as_echo "$RPM" >&6; }
35726else
cristy8b350f62009-11-15 23:12:43 +000035727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035728$as_echo "no" >&6; }
35729fi
35730
35731
35732 test -n "$RPM" && break
35733done
35734
35735
cristy73bd4a52010-10-05 11:24:23 +000035736ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35737
35738
35739AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35740
35741
35742AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35743
35744
35745AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35746
35747
35748 if test "x$RPM" != "x" ; then
35749 RPM_DELEGATE_TRUE=
35750 RPM_DELEGATE_FALSE='#'
35751else
35752 RPM_DELEGATE_TRUE='#'
35753 RPM_DELEGATE_FALSE=
35754fi
35755
cristy3ed852e2009-09-05 21:47:34 +000035756
35757#
35758# 7ZIP support (http://p7zip.sourceforge.net/)
35759#
35760P7ZIP=''
35761for ac_prog in 7za
35762do
35763 # Extract the first word of "$ac_prog", so it can be a program name with args.
35764set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035766$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035767if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035768 $as_echo_n "(cached) " >&6
35769else
35770 if test -n "$P7ZIP"; then
35771 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35772else
35773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35774for as_dir in $PATH
35775do
35776 IFS=$as_save_IFS
35777 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035778 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035780 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035782 break 2
35783 fi
35784done
cristy8b350f62009-11-15 23:12:43 +000035785 done
cristy3ed852e2009-09-05 21:47:34 +000035786IFS=$as_save_IFS
35787
35788fi
35789fi
35790P7ZIP=$ac_cv_prog_P7ZIP
35791if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035793$as_echo "$P7ZIP" >&6; }
35794else
cristy8b350f62009-11-15 23:12:43 +000035795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035796$as_echo "no" >&6; }
35797fi
35798
35799
35800 test -n "$P7ZIP" && break
35801done
35802
35803
cristy73bd4a52010-10-05 11:24:23 +000035804 if test "x$P7ZIP" != "x" ; then
35805 P7ZIP_DELEGATE_TRUE=
35806 P7ZIP_DELEGATE_FALSE='#'
35807else
35808 P7ZIP_DELEGATE_TRUE='#'
35809 P7ZIP_DELEGATE_FALSE=
35810fi
35811
cristy3ed852e2009-09-05 21:47:34 +000035812
35813#
35814# ZIP support (http://www.info-zip.org/Zip.html)
35815#
35816ZIP=''
35817for ac_prog in zip
35818do
35819 # Extract the first word of "$ac_prog", so it can be a program name with args.
35820set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035823if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035824 $as_echo_n "(cached) " >&6
35825else
35826 if test -n "$ZIP"; then
35827 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35828else
35829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35830for as_dir in $PATH
35831do
35832 IFS=$as_save_IFS
35833 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035834 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035836 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035838 break 2
35839 fi
35840done
cristy8b350f62009-11-15 23:12:43 +000035841 done
cristy3ed852e2009-09-05 21:47:34 +000035842IFS=$as_save_IFS
35843
35844fi
35845fi
35846ZIP=$ac_cv_prog_ZIP
35847if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035849$as_echo "$ZIP" >&6; }
35850else
cristy8b350f62009-11-15 23:12:43 +000035851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035852$as_echo "no" >&6; }
35853fi
35854
35855
35856 test -n "$ZIP" && break
35857done
35858
35859
cristy73bd4a52010-10-05 11:24:23 +000035860 if test "x$ZIP" != "x" ; then
35861 ZIP_DELEGATE_TRUE=
35862 ZIP_DELEGATE_FALSE='#'
35863else
35864 ZIP_DELEGATE_TRUE='#'
35865 ZIP_DELEGATE_FALSE=
35866fi
35867
cristy3ed852e2009-09-05 21:47:34 +000035868
35869#
35870# GhostPCL related configuration.
35871#
35872PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035873PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035874PCLMonoDevice=pbmraw
35875if test -z "$PCLVersion"; then
35876 PCLVersion='unknown'
35877fi
35878if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35880$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035882$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35884$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035885 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035887$as_echo_n "checking for pcl color device... " >&6; }
35888 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35889 :
35890 else
35891 PCLColorDevice=ppmraw
35892 fi
cristyad38abe2012-12-23 23:03:21 +000035893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35894$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035895
35896 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035898$as_echo_n "checking for pcl CMYK device... " >&6; }
35899 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35900 :
35901 else
35902 PCLCMYKDevice=$PCLColorDevice
35903 fi
cristyad38abe2012-12-23 23:03:21 +000035904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35905$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035906
35907 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035909$as_echo_n "checking for pcl mono device... " >&6; }
35910 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35911 :
35912 else
35913 PCLMonoDevice=$PCLColorDevice
35914 fi
cristyad38abe2012-12-23 23:03:21 +000035915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35916$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035917fi
35918
35919
35920
35921
35922
35923
35924#
35925# GhostXPS related configuration.
35926#
35927XPSColorDevice=ppmraw
35928XPSCMYKDevice=bmpsep8
35929XPSMonoDevice=pbmraw
35930if test -z "$XPSVersion"; then
35931 XPSVersion='unknown'
35932fi
35933if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35935$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035937$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35939$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035940 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035942$as_echo_n "checking for xps color device... " >&6; }
35943 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35944 :
35945 else
35946 XPSColorDevice=ppmraw
35947 fi
cristyad38abe2012-12-23 23:03:21 +000035948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35949$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035950
35951 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035953$as_echo_n "checking for xps CMYK device... " >&6; }
35954 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35955 :
35956 else
35957 XPSCMYKDevice=$XPSColorDevice
35958 fi
cristyad38abe2012-12-23 23:03:21 +000035959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35960$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035961
35962 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035964$as_echo_n "checking for xps mono device... " >&6; }
35965 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35966 :
35967 else
35968 XPSMonoDevice=$XPSColorDevice
35969 fi
cristyad38abe2012-12-23 23:03:21 +000035970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35971$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035972fi
35973
35974
35975
35976
35977
35978
35979#
35980# Ghostscript related configuration.
35981#
cristya97426c2011-02-04 01:41:27 +000035982GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035983GSColorDevice=pnmraw
35984GSCMYKDevice=pam
35985GSMonoDevice=pbmraw
35986GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035987GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035988GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035989GSVersion='unknown'
35990if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35992$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035994$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35996$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035998$as_echo_n "checking for Ghostscript version... " >&6; }
35999 if GSVersion=`$PSDelegate --version`; then
36000 :
36001 else
36002 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
36003 fi
cristyad38abe2012-12-23 23:03:21 +000036004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
36005$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036006
36007 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000036008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036009$as_echo_n "checking for gs alpha device... " >&6; }
36010 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36011 :
36012 else
36013 GSAlphaDevice=pnmraw
36014 fi
cristyad38abe2012-12-23 23:03:21 +000036015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
36016$as_echo "$GSAlphaDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036017
36018 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000036019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036020$as_echo_n "checking for gs color device... " >&6; }
36021 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36022 :
36023 else
36024 GSColorDevice=pnmraw
36025 fi
cristyad38abe2012-12-23 23:03:21 +000036026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
36027$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036028
36029 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000036030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036031$as_echo_n "checking for gs CMYK device... " >&6; }
36032 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36033 :
36034 else
36035 GSCMYKDevice=bmpsep8
36036 fi
cristyad38abe2012-12-23 23:03:21 +000036037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
36038$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036039
36040 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000036041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036042$as_echo_n "checking for gs mono device... " >&6; }
36043 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36044 :
36045 else
36046 GSMonoDevice=$GSColorDevice
36047 fi
cristyad38abe2012-12-23 23:03:21 +000036048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
36049$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036050
36051 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000036052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036053$as_echo_n "checking for gs PDF writing device... " >&6; }
36054 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36055 :
36056 else
36057 GSPDFDevice=nodevice
36058 fi
cristyad38abe2012-12-23 23:03:21 +000036059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
36060$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036061
36062 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000036063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036064$as_echo_n "checking for gs PS writing device... " >&6; }
36065 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36066 :
36067 else
cristy15308162015-01-09 23:43:12 +000036068 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000036069 fi
cristyad38abe2012-12-23 23:03:21 +000036070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
36071$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036072
36073 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000036074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036075$as_echo_n "checking for gs EPS writing device... " >&6; }
36076 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
36077 :
36078 else
cristy15308162015-01-09 23:43:12 +000036079 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000036080 fi
cristyad38abe2012-12-23 23:03:21 +000036081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
36082$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036083fi
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094#
36095# PerlMagick-related configuration
36096#
36097
36098# Look for PERL if PerlMagick requested
36099# If name/path of desired PERL interpreter is specified, look for that one first
36100have_perl='no'
36101if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000036102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36103$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036105$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36107$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036108 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036110$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036111if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036112 $as_echo_n "(cached) " >&6
36113else
36114 ac_cv_path_PERL="$with_perl"
36115fi
cristy8b350f62009-11-15 23:12:43 +000036116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036117$as_echo "$ac_cv_path_PERL" >&6; };
36118 PERL=$ac_cv_path_PERL
36119 have_perl="$ac_cv_path_PERL"
36120 else
36121 for ac_prog in perl perl5
36122do
36123 # Extract the first word of "$ac_prog", so it can be a program name with args.
36124set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036127if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036128 $as_echo_n "(cached) " >&6
36129else
36130 case $PERL in
36131 [\\/]* | ?:[\\/]*)
36132 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36133 ;;
36134 *)
36135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36136for as_dir in $PATH
36137do
36138 IFS=$as_save_IFS
36139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036142 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036144 break 2
36145 fi
36146done
cristy8b350f62009-11-15 23:12:43 +000036147 done
cristy3ed852e2009-09-05 21:47:34 +000036148IFS=$as_save_IFS
36149
36150 ;;
36151esac
36152fi
36153PERL=$ac_cv_path_PERL
36154if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036156$as_echo "$PERL" >&6; }
36157else
cristy8b350f62009-11-15 23:12:43 +000036158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036159$as_echo "no" >&6; }
36160fi
36161
36162
36163 test -n "$PERL" && break
36164done
36165 if test "$ac_cv_path_PERL"; then
36166 have_perl="$ac_cv_path_PERL"
36167 fi
36168 fi
36169fi
36170
cristy949301e2010-01-06 01:38:40 +000036171if test "$with_perl" != 'yes' ; then
36172 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36173fi
36174
36175PERL_SUPPORTS_DESTDIR='no'
36176
cristy3ed852e2009-09-05 21:47:34 +000036177with_perl_static='no'
36178with_perl_dynamic='no'
36179if test "$have_perl" != 'no'; then
36180 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36181 with_perl_static='yes'
36182 fi
36183 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36184 with_perl_dynamic='yes'
36185 fi
36186 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000036187
36188
36189
36190
36191 if test -n "$PERL"; then :
36192
36193 ax_perl_version="5.8.1"
36194
36195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36196$as_echo_n "checking for perl version... " >&6; }
36197
cristy17491be2014-06-24 01:10:53 +000036198 perl_version=`$PERL --version 2>&1 \
36199 | $SED -n -e '/This is perl/b inspect
36200b
36201: inspect
36202s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000036203
36204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36205$as_echo "$perl_version" >&6; }
36206
36207 PERL_VERSION=$perl_version
36208
36209
36210
36211
36212
36213 # Used to indicate true or false condition
36214 ax_compare_version=false
36215
36216 # Convert the two version strings to be compared into a format that
36217 # allows a simple string comparison. The end result is that a version
36218 # string of the form 1.12.5-r617 will be converted to the form
36219 # 0001001200050617. In other words, each number is zero padded to four
36220 # digits, and non digits are removed.
36221
36222 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36223 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36224 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36225 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36226 -e 's/[^0-9]//g'`
36227
36228
36229 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36230 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36231 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36232 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36233 -e 's/[^0-9]//g'`
36234
36235
36236 ax_compare_version=`echo "x$ax_compare_version_A
36237x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36238
36239
36240
36241 if test "$ax_compare_version" = "true" ; then
36242
36243 :
36244 PERL_SUPPORTS_DESTDIR='yes'
36245
36246 else
36247 :
36248 PERL_SUPPORTS_DESTDIR='no'
36249
36250 fi
36251
36252
36253else
36254
36255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36256$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36257 PERL_SUPPORTS_DESTDIR='no'
36258
cristy3ed852e2009-09-05 21:47:34 +000036259fi
cristy73bd4a52010-10-05 11:24:23 +000036260
36261fi
36262 if test "$have_perl" != 'no'; then
36263 WITH_PERL_TRUE=
36264 WITH_PERL_FALSE='#'
36265else
36266 WITH_PERL_TRUE='#'
36267 WITH_PERL_FALSE=
36268fi
36269
36270 if test $with_perl_static = 'yes'; then
36271 WITH_PERL_STATIC_TRUE=
36272 WITH_PERL_STATIC_FALSE='#'
36273else
36274 WITH_PERL_STATIC_TRUE='#'
36275 WITH_PERL_STATIC_FALSE=
36276fi
36277
36278 if test $with_perl_dynamic = 'yes'; then
36279 WITH_PERL_DYNAMIC_TRUE=
36280 WITH_PERL_DYNAMIC_FALSE='#'
36281else
36282 WITH_PERL_DYNAMIC_TRUE='#'
36283 WITH_PERL_DYNAMIC_FALSE=
36284fi
36285
cristy3ed852e2009-09-05 21:47:34 +000036286
36287
36288# Determine path to pick up MagickCore library from for use with building PerlMagick
36289MAGICKCORE_PATH="${LIB_DIR}"
36290if test $with_perl_static = 'yes'; then
36291 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36292 libtool_objdir=$objdir
36293
36294 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036295 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036296fi
36297
36298
cristy2a3eb392012-12-17 13:39:20 +000036299# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036300MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036301if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036302 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036303fi
cristy2a3eb392012-12-17 13:39:20 +000036304if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036305 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036306fi
36307if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036308 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036309fi
36310if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036311 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036312fi
cristy81ab5af2013-10-06 18:28:39 +000036313if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036314 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036315fi
36316if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036317 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036318fi
cristy2a3eb392012-12-17 13:39:20 +000036319if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036320 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036321fi
36322if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036323 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036324fi
36325if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036326 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036327fi
36328if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036329 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036330fi
36331if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036332 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036333fi
36334if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036335 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036336fi
36337if test "$have_jp2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036338 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2"
cristy2a3eb392012-12-17 13:39:20 +000036339fi
36340if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036341 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036342fi
36343if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036344 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036345fi
36346if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036347 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036348fi
36349if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036350 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036351fi
36352if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036353 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036354fi
cristy99db3872014-01-01 15:11:34 +000036355if test "$have_openjp2" = 'yes' ; then
36356 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036357fi
cristy2a3eb392012-12-17 13:39:20 +000036358if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036359 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036360fi
36361if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036362 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036363fi
36364have_ps='no'
36365if test "$have_dps" = 'yes' || \
36366 test "$have_gs" = 'yes' || \
36367 test "${native_win32_build}" = 'yes' ; then
36368 have_ps='yes'
36369fi
36370if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036371 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036372fi
cristy2a3eb392012-12-17 13:39:20 +000036373if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036374 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036375fi
36376if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036377 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036378fi
36379if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036380 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036381fi
36382if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036383 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036384fi
cristy3b640ed2013-07-29 00:27:59 +000036385if test "$have_webp" = 'yes' ; then
36386 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36387fi
cristy2a3eb392012-12-17 13:39:20 +000036388if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036389 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036390fi
36391if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036392 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036393fi
36394if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036395 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036396fi
36397if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036398 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036399fi
cristy2a3eb392012-12-17 13:39:20 +000036400# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036401MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036402MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036403
36404
cristyfa161182012-12-19 15:45:28 +000036405
cristy3ed852e2009-09-05 21:47:34 +000036406#
36407# Handle special compiler flags
36408#
36409
36410# Add '-p' if prof source profiling support enabled
36411if test "$enable_prof" = 'yes'; then
36412 CFLAGS="-p $CFLAGS"
36413 CXXFLAGS="-p $CXXFLAGS"
36414 LDFLAGS="-p $LDFLAGS"
36415fi
36416
36417# Add '-pg' if gprof source profiling support enabled
36418if test "$enable_gprof" = 'yes'; then
36419 CFLAGS="-pg $CFLAGS"
36420 CXXFLAGS="-pg $CXXFLAGS"
36421 LDFLAGS="-pg $LDFLAGS"
36422fi
36423
36424# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36425# This is a gcc-specific feature
36426if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036428$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036429if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036430 $as_echo_n "(cached) " >&6
36431else
36432 ac_check_lib_save_LIBS=$LIBS
36433LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036435/* end confdefs.h. */
36436
36437/* Override any GCC internal prototype to avoid an error.
36438 Use char because int might match the return type of a GCC
36439 builtin and then its argument prototype would still apply. */
36440#ifdef __cplusplus
36441extern "C"
36442#endif
36443char _gcov_init ();
36444int
36445main ()
36446{
36447return _gcov_init ();
36448 ;
36449 return 0;
36450}
36451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036452if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036453 ac_cv_lib_gcov__gcov_init=yes
36454else
cristy8b350f62009-11-15 23:12:43 +000036455 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036456fi
cristy8b350f62009-11-15 23:12:43 +000036457rm -f core conftest.err conftest.$ac_objext \
36458 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036459LIBS=$ac_check_lib_save_LIBS
36460fi
cristy8b350f62009-11-15 23:12:43 +000036461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036462$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036463if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036464 cat >>confdefs.h <<_ACEOF
36465#define HAVE_LIBGCOV 1
36466_ACEOF
36467
36468 LIBS="-lgcov $LIBS"
36469
36470fi
36471
cristy8b350f62009-11-15 23:12:43 +000036472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036473$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036474if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036475 $as_echo_n "(cached) " >&6
36476else
36477 ac_check_lib_save_LIBS=$LIBS
36478LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036480/* end confdefs.h. */
36481
36482/* Override any GCC internal prototype to avoid an error.
36483 Use char because int might match the return type of a GCC
36484 builtin and then its argument prototype would still apply. */
36485#ifdef __cplusplus
36486extern "C"
36487#endif
36488char __gcov_init ();
36489int
36490main ()
36491{
36492return __gcov_init ();
36493 ;
36494 return 0;
36495}
36496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036497if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036498 ac_cv_lib_gcov___gcov_init=yes
36499else
cristy8b350f62009-11-15 23:12:43 +000036500 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036501fi
cristy8b350f62009-11-15 23:12:43 +000036502rm -f core conftest.err conftest.$ac_objext \
36503 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036504LIBS=$ac_check_lib_save_LIBS
36505fi
cristy8b350f62009-11-15 23:12:43 +000036506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036507$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036508if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036509 cat >>confdefs.h <<_ACEOF
36510#define HAVE_LIBGCOV 1
36511_ACEOF
36512
36513 LIBS="-lgcov $LIBS"
36514
36515fi
36516
36517 case "$target_os" in
36518 darwin*)
36519 OSX_GCOV_LDFLAG="-Wl,-single_module"
36520 ;;
36521 *)
36522 OSX_GCOV_LDFLAG=""
36523 ;;
36524 esac
36525
36526 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36527 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36528 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36529fi
36530
36531#
36532# Build library dependency list for libMagickCore
36533#
36534
cristyc6722092012-10-14 00:19:31 +000036535if test "$build_modules" != 'no'; then
cristy3b0097d2014-11-04 15:34:47 +000036536 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036537else
cristy3b0097d2014-11-04 15:34:47 +000036538 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $OPENJPEG_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036539fi
36540
36541
36542#
36543# Remove extraneous spaces from output variables (asthetic)
36544#
36545X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
36546X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
36547X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
36548X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
36549
36550CC=`echo $CC | sed -e 's/ */ /g'`
36551CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
36552CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
36553CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036554DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
36555LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
36556TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36557MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
36558#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
36559
36560# Pass only user-provided LIBS as "global" libraries
36561LIBS=$USER_LIBS
36562
36563#AC_SUBST(CPPFLAGS)
36564
36565#AC_SUBST(LDFLAGS)
36566#AC_SUBST(X_PRE_LIBS)
36567#AC_SUBST(X_LIBS)
36568#AC_SUBST(X_EXTRA_LIBS)
36569
36570MAGICK_CFLAGS=$CFLAGS
36571MAGICK_CXXFLAGS="$CXXFLAGS"
36572MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36573MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36574MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036575MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036576
36577
36578
36579
36580
36581
36582
36583
36584# Set configured scripts to executable.
36585ac_config_commands="$ac_config_commands default"
36586
cristy2bd4b6e2012-07-22 15:29:11 +000036587ac_config_commands="$ac_config_commands magick.sh.in"
36588
cristy3ed852e2009-09-05 21:47:34 +000036589ac_config_commands="$ac_config_commands MagickCore-config.in"
36590
cristy3ed852e2009-09-05 21:47:34 +000036591ac_config_commands="$ac_config_commands MagickWand-config.in"
36592
cristy3ed852e2009-09-05 21:47:34 +000036593ac_config_commands="$ac_config_commands Magick++-config.in"
36594
36595ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36596
36597
cristyad38abe2012-12-23 23:03:21 +000036598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36599$as_echo "-------------------------------------------------------------" >&6; }
36600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36601$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036602
36603rm -f magick-version
36604
36605result_dejavu_font_dir='none'
36606if test "${dejavu_font_dir}x" != 'x'; then
36607 result_dejavu_font_dir=$dejavu_font_dir
36608fi
36609
36610result_ghostscript_font_dir='none'
36611if test "${ghostscript_font_dir}x" != 'x'; then
36612 result_ghostscript_font_dir=$ghostscript_font_dir
36613fi
36614
36615result_windows_font_dir='none'
36616if test "${windows_font_dir}x" != 'x'; then
36617 result_windows_font_dir=${windows_font_dir}
36618fi
36619
36620# ==============================================================================
36621# Generate build environment
36622# ==============================================================================
36623ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-apple.xml config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
36624
cristy3ed852e2009-09-05 21:47:34 +000036625cat >confcache <<\_ACEOF
36626# This file is a shell script that caches the results of configure
36627# tests run on this system so they can be shared between configure
36628# scripts and configure runs, see configure's option --config-cache.
36629# It is not useful on other systems. If it contains results you don't
36630# want to keep, you may remove or edit it.
36631#
36632# config.status only pays attention to the cache file if you give it
36633# the --recheck option to rerun configure.
36634#
36635# `ac_cv_env_foo' variables (set or unset) will be overridden when
36636# loading this file, other *unset* `ac_cv_foo' will be assigned the
36637# following values.
36638
36639_ACEOF
36640
36641# The following way of writing the cache mishandles newlines in values,
36642# but we know of no workaround that is simple, portable, and efficient.
36643# So, we kill variables containing newlines.
36644# Ultrix sh set writes to stderr and can't be redirected directly,
36645# and sets the high bit in the cache file unless we assign to the vars.
36646(
36647 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36648 eval ac_val=\$$ac_var
36649 case $ac_val in #(
36650 *${as_nl}*)
36651 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036652 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036653$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36654 esac
36655 case $ac_var in #(
36656 _ | IFS | as_nl) ;; #(
36657 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036658 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036659 esac ;;
36660 esac
36661 done
36662
36663 (set) 2>&1 |
36664 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36665 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036666 # `set' does not quote correctly, so add quotes: double-quote
36667 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036668 sed -n \
36669 "s/'/'\\\\''/g;
36670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36671 ;; #(
36672 *)
36673 # `set' quotes correctly as required by POSIX, so do not add quotes.
36674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36675 ;;
36676 esac |
36677 sort
36678) |
36679 sed '
36680 /^ac_cv_env_/b end
36681 t clear
36682 :clear
36683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36684 t end
36685 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36686 :end' >>confcache
36687if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36688 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036689 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036690 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036691$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036692 if test ! -f "$cache_file" || test -h "$cache_file"; then
36693 cat confcache >"$cache_file"
36694 else
36695 case $cache_file in #(
36696 */* | ?:*)
36697 mv -f confcache "$cache_file"$$ &&
36698 mv -f "$cache_file"$$ "$cache_file" ;; #(
36699 *)
36700 mv -f confcache "$cache_file" ;;
36701 esac
36702 fi
36703 fi
cristy3ed852e2009-09-05 21:47:34 +000036704 else
cristy8b350f62009-11-15 23:12:43 +000036705 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036706$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36707 fi
36708fi
36709rm -f confcache
36710
36711test "x$prefix" = xNONE && prefix=$ac_default_prefix
36712# Let make expand exec_prefix.
36713test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36714
36715DEFS=-DHAVE_CONFIG_H
36716
36717ac_libobjs=
36718ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036719U=
cristy3ed852e2009-09-05 21:47:34 +000036720for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36721 # 1. Remove the extension, and $U if already installed.
36722 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36723 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36724 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36725 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036726 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36727 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036728done
36729LIBOBJS=$ac_libobjs
36730
36731LTLIBOBJS=$ac_ltlibobjs
36732
36733
cristyc0890a62012-07-19 00:18:20 +000036734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36735$as_echo_n "checking that generated files are newer than configure... " >&6; }
36736 if test -n "$am_sleep_pid"; then
36737 # Hide warnings about reused PIDs.
36738 wait $am_sleep_pid 2>/dev/null
36739 fi
36740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36741$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036742 if test -n "$EXEEXT"; then
36743 am__EXEEXT_TRUE=
36744 am__EXEEXT_FALSE='#'
36745else
36746 am__EXEEXT_TRUE='#'
36747 am__EXEEXT_FALSE=
36748fi
cristy3ed852e2009-09-05 21:47:34 +000036749
cristy9af1cbf2014-12-28 22:03:09 +000036750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36751$as_echo_n "checking that generated files are newer than configure... " >&6; }
36752 if test -n "$am_sleep_pid"; then
36753 # Hide warnings about reused PIDs.
36754 wait $am_sleep_pid 2>/dev/null
36755 fi
36756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36757$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036758if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036759 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036760Usually this means the macro was only invoked conditionally." "$LINENO" 5
36761fi
36762if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036763 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036764Usually this means the macro was only invoked conditionally." "$LINENO" 5
36765fi
36766if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036767 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036768Usually this means the macro was only invoked conditionally." "$LINENO" 5
36769fi
36770if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036771 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036772Usually this means the macro was only invoked conditionally." "$LINENO" 5
36773fi
cristy9b86f202012-11-28 21:55:35 +000036774if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36775 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36776Usually this means the macro was only invoked conditionally." "$LINENO" 5
36777fi
cristy73bd4a52010-10-05 11:24:23 +000036778if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036779 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036780Usually this means the macro was only invoked conditionally." "$LINENO" 5
36781fi
36782if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036783 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036784Usually this means the macro was only invoked conditionally." "$LINENO" 5
36785fi
36786if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036787 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036788Usually this means the macro was only invoked conditionally." "$LINENO" 5
36789fi
36790if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036791 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036792Usually this means the macro was only invoked conditionally." "$LINENO" 5
36793fi
cristy73bd4a52010-10-05 11:24:23 +000036794if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036795 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036796Usually this means the macro was only invoked conditionally." "$LINENO" 5
36797fi
36798if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036799 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036800Usually this means the macro was only invoked conditionally." "$LINENO" 5
36801fi
cristy73bd4a52010-10-05 11:24:23 +000036802if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036803 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036804Usually this means the macro was only invoked conditionally." "$LINENO" 5
36805fi
cristy71d8c202012-03-20 17:05:01 +000036806if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36807 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36808Usually this means the macro was only invoked conditionally." "$LINENO" 5
36809fi
cristy73bd4a52010-10-05 11:24:23 +000036810
36811if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036812 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036813Usually this means the macro was only invoked conditionally." "$LINENO" 5
36814fi
36815if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036816 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036817Usually this means the macro was only invoked conditionally." "$LINENO" 5
36818fi
cristy3b0097d2014-11-04 15:34:47 +000036819if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36820 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36821Usually this means the macro was only invoked conditionally." "$LINENO" 5
36822fi
cristy73bd4a52010-10-05 11:24:23 +000036823if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036824 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036825Usually this means the macro was only invoked conditionally." "$LINENO" 5
36826fi
36827if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036828 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036829Usually this means the macro was only invoked conditionally." "$LINENO" 5
36830fi
36831if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036832 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036833Usually this means the macro was only invoked conditionally." "$LINENO" 5
36834fi
36835if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036836 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036837Usually this means the macro was only invoked conditionally." "$LINENO" 5
36838fi
cristy5eef09f2012-10-16 12:08:28 +000036839if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36840 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36841Usually this means the macro was only invoked conditionally." "$LINENO" 5
36842fi
cristy73bd4a52010-10-05 11:24:23 +000036843if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036844 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036845Usually this means the macro was only invoked conditionally." "$LINENO" 5
36846fi
36847if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036848 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036849Usually this means the macro was only invoked conditionally." "$LINENO" 5
36850fi
cristy73bd4a52010-10-05 11:24:23 +000036851if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036852 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036853Usually this means the macro was only invoked conditionally." "$LINENO" 5
36854fi
36855if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036856 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036857Usually this means the macro was only invoked conditionally." "$LINENO" 5
36858fi
cristy853d9902014-08-21 18:50:43 +000036859if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36860 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36861Usually this means the macro was only invoked conditionally." "$LINENO" 5
36862fi
cristy73bd4a52010-10-05 11:24:23 +000036863if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036864 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036865Usually this means the macro was only invoked conditionally." "$LINENO" 5
36866fi
36867if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036868 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036869Usually this means the macro was only invoked conditionally." "$LINENO" 5
36870fi
36871if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036872 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036873Usually this means the macro was only invoked conditionally." "$LINENO" 5
36874fi
36875if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036876 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036877Usually this means the macro was only invoked conditionally." "$LINENO" 5
36878fi
36879if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036880 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036881Usually this means the macro was only invoked conditionally." "$LINENO" 5
36882fi
36883if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036884 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036885Usually this means the macro was only invoked conditionally." "$LINENO" 5
36886fi
cristy73bd4a52010-10-05 11:24:23 +000036887if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036888 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036889Usually this means the macro was only invoked conditionally." "$LINENO" 5
36890fi
cristy99db3872014-01-01 15:11:34 +000036891if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36892 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36893Usually this means the macro was only invoked conditionally." "$LINENO" 5
36894fi
cristy73bd4a52010-10-05 11:24:23 +000036895if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036896 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036897Usually this means the macro was only invoked conditionally." "$LINENO" 5
36898fi
cristyfbb0ef02010-12-19 02:32:11 +000036899if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36900 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36901Usually this means the macro was only invoked conditionally." "$LINENO" 5
36902fi
cristy73bd4a52010-10-05 11:24:23 +000036903if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036904 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036905Usually this means the macro was only invoked conditionally." "$LINENO" 5
36906fi
cristy41cbe8a2011-10-27 01:35:18 +000036907if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36908 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36909Usually this means the macro was only invoked conditionally." "$LINENO" 5
36910fi
cristya054b762012-03-26 23:16:00 +000036911if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36912 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036913Usually this means the macro was only invoked conditionally." "$LINENO" 5
36914fi
cristy73bd4a52010-10-05 11:24:23 +000036915if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036916 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036917Usually this means the macro was only invoked conditionally." "$LINENO" 5
36918fi
36919if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036920 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036921Usually this means the macro was only invoked conditionally." "$LINENO" 5
36922fi
36923if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036924 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036925Usually this means the macro was only invoked conditionally." "$LINENO" 5
36926fi
36927if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036928 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036929Usually this means the macro was only invoked conditionally." "$LINENO" 5
36930fi
cristyb1860752011-03-14 00:27:46 +000036931if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36932 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36933Usually this means the macro was only invoked conditionally." "$LINENO" 5
36934fi
cristy73bd4a52010-10-05 11:24:23 +000036935if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036936 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036937Usually this means the macro was only invoked conditionally." "$LINENO" 5
36938fi
36939if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036940 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036941Usually this means the macro was only invoked conditionally." "$LINENO" 5
36942fi
cristydd17feb2014-03-05 02:06:32 +000036943if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36944 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36945Usually this means the macro was only invoked conditionally." "$LINENO" 5
36946fi
cristy73bd4a52010-10-05 11:24:23 +000036947if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036948 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036949Usually this means the macro was only invoked conditionally." "$LINENO" 5
36950fi
36951if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036952 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036953Usually this means the macro was only invoked conditionally." "$LINENO" 5
36954fi
36955if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036956 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036957Usually this means the macro was only invoked conditionally." "$LINENO" 5
36958fi
36959if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036960 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036961Usually this means the macro was only invoked conditionally." "$LINENO" 5
36962fi
36963if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036964 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036965Usually this means the macro was only invoked conditionally." "$LINENO" 5
36966fi
36967if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036968 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036969Usually this means the macro was only invoked conditionally." "$LINENO" 5
36970fi
cristy3ed852e2009-09-05 21:47:34 +000036971
cristyda16f162011-02-19 23:52:17 +000036972: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036973ac_write_fail=0
36974ac_clean_files_save=$ac_clean_files
36975ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036976{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036977$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036978as_write_fail=0
36979cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036980#! $SHELL
36981# Generated by $as_me.
36982# Run this file to recreate the current configuration.
36983# Compiler output produced by configure, useful for debugging
36984# configure, is in config.log if it exists.
36985
36986debug=false
36987ac_cs_recheck=false
36988ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036989
cristy8b350f62009-11-15 23:12:43 +000036990SHELL=\${CONFIG_SHELL-$SHELL}
36991export SHELL
36992_ASEOF
36993cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36994## -------------------- ##
36995## M4sh Initialization. ##
36996## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036997
36998# Be more Bourne compatible
36999DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000037000if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000037001 emulate sh
37002 NULLCMD=:
37003 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37004 # is contrary to our usage. Disable this feature.
37005 alias -g '${1+"$@"}'='"$@"'
37006 setopt NO_GLOB_SUBST
37007else
cristy8b350f62009-11-15 23:12:43 +000037008 case `(set -o) 2>/dev/null` in #(
37009 *posix*) :
37010 set -o posix ;; #(
37011 *) :
37012 ;;
cristy3ed852e2009-09-05 21:47:34 +000037013esac
cristy3ed852e2009-09-05 21:47:34 +000037014fi
37015
37016
cristy3ed852e2009-09-05 21:47:34 +000037017as_nl='
37018'
37019export as_nl
37020# Printing a long string crashes Solaris 7 /usr/bin/printf.
37021as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37022as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37023as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000037024# Prefer a ksh shell builtin over an external printf program on Solaris,
37025# but without wasting forks for bash or zsh.
37026if test -z "$BASH_VERSION$ZSH_VERSION" \
37027 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37028 as_echo='print -r --'
37029 as_echo_n='print -rn --'
37030elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000037031 as_echo='printf %s\n'
37032 as_echo_n='printf %s'
37033else
37034 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37035 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37036 as_echo_n='/usr/ucb/echo -n'
37037 else
37038 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37039 as_echo_n_body='eval
37040 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000037041 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000037042 *"$as_nl"*)
37043 expr "X$arg" : "X\\(.*\\)$as_nl";
37044 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37045 esac;
37046 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37047 '
37048 export as_echo_n_body
37049 as_echo_n='sh -c $as_echo_n_body as_echo'
37050 fi
37051 export as_echo_body
37052 as_echo='sh -c $as_echo_body as_echo'
37053fi
37054
37055# The user is always right.
37056if test "${PATH_SEPARATOR+set}" != set; then
37057 PATH_SEPARATOR=:
37058 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37059 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37060 PATH_SEPARATOR=';'
37061 }
37062fi
37063
cristy3ed852e2009-09-05 21:47:34 +000037064
37065# IFS
37066# We need space, tab and new line, in precisely that order. Quoting is
37067# there to prevent editors from complaining about space-tab.
37068# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37069# splitting by setting IFS to empty value.)
37070IFS=" "" $as_nl"
37071
37072# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000037073as_myself=
cristy8b350f62009-11-15 23:12:43 +000037074case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000037075 *[\\/]* ) as_myself=$0 ;;
37076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37077for as_dir in $PATH
37078do
37079 IFS=$as_save_IFS
37080 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000037081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37082 done
cristy3ed852e2009-09-05 21:47:34 +000037083IFS=$as_save_IFS
37084
37085 ;;
37086esac
37087# We did not find ourselves, most probably we were run as `sh COMMAND'
37088# in which case we are not to be found in the path.
37089if test "x$as_myself" = x; then
37090 as_myself=$0
37091fi
37092if test ! -f "$as_myself"; then
37093 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000037094 exit 1
cristy3ed852e2009-09-05 21:47:34 +000037095fi
37096
cristy8b350f62009-11-15 23:12:43 +000037097# Unset variables that we do not need and which cause bugs (e.g. in
37098# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37099# suppresses any "Segmentation fault" message there. '((' could
37100# trigger a bug in pdksh 5.2.14.
37101for as_var in BASH_ENV ENV MAIL MAILPATH
37102do eval test x\${$as_var+set} = xset \
37103 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000037104done
37105PS1='$ '
37106PS2='> '
37107PS4='+ '
37108
37109# NLS nuisances.
37110LC_ALL=C
37111export LC_ALL
37112LANGUAGE=C
37113export LANGUAGE
37114
cristy8b350f62009-11-15 23:12:43 +000037115# CDPATH.
37116(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37117
37118
cristy98dddb52010-11-04 00:30:15 +000037119# as_fn_error STATUS ERROR [LINENO LOG_FD]
37120# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000037121# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37122# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000037123# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000037124as_fn_error ()
37125{
cristy98dddb52010-11-04 00:30:15 +000037126 as_status=$1; test $as_status -eq 0 && as_status=1
37127 if test "$4"; then
37128 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37129 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000037130 fi
cristy98dddb52010-11-04 00:30:15 +000037131 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000037132 as_fn_exit $as_status
37133} # as_fn_error
37134
37135
37136# as_fn_set_status STATUS
37137# -----------------------
37138# Set $? to STATUS, without forking.
37139as_fn_set_status ()
37140{
37141 return $1
37142} # as_fn_set_status
37143
37144# as_fn_exit STATUS
37145# -----------------
37146# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37147as_fn_exit ()
37148{
37149 set +e
37150 as_fn_set_status $1
37151 exit $1
37152} # as_fn_exit
37153
37154# as_fn_unset VAR
37155# ---------------
37156# Portably unset VAR.
37157as_fn_unset ()
37158{
37159 { eval $1=; unset $1;}
37160}
37161as_unset=as_fn_unset
37162# as_fn_append VAR VALUE
37163# ----------------------
37164# Append the text in VALUE to the end of the definition contained in VAR. Take
37165# advantage of any shell optimizations that allow amortized linear growth over
37166# repeated appends, instead of the typical quadratic growth present in naive
37167# implementations.
37168if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37169 eval 'as_fn_append ()
37170 {
37171 eval $1+=\$2
37172 }'
37173else
37174 as_fn_append ()
37175 {
37176 eval $1=\$$1\$2
37177 }
37178fi # as_fn_append
37179
37180# as_fn_arith ARG...
37181# ------------------
37182# Perform arithmetic evaluation on the ARGs, and store the result in the
37183# global $as_val. Take advantage of shells that can avoid forks. The arguments
37184# must be portable across $(()) and expr.
37185if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37186 eval 'as_fn_arith ()
37187 {
37188 as_val=$(( $* ))
37189 }'
37190else
37191 as_fn_arith ()
37192 {
37193 as_val=`expr "$@" || test $? -eq 1`
37194 }
37195fi # as_fn_arith
37196
37197
cristy3ed852e2009-09-05 21:47:34 +000037198if expr a : '\(a\)' >/dev/null 2>&1 &&
37199 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37200 as_expr=expr
37201else
37202 as_expr=false
37203fi
37204
37205if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37206 as_basename=basename
37207else
37208 as_basename=false
37209fi
37210
cristy8b350f62009-11-15 23:12:43 +000037211if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37212 as_dirname=dirname
37213else
37214 as_dirname=false
37215fi
cristy3ed852e2009-09-05 21:47:34 +000037216
cristy3ed852e2009-09-05 21:47:34 +000037217as_me=`$as_basename -- "$0" ||
37218$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37219 X"$0" : 'X\(//\)$' \| \
37220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37221$as_echo X/"$0" |
37222 sed '/^.*\/\([^/][^/]*\)\/*$/{
37223 s//\1/
37224 q
37225 }
37226 /^X\/\(\/\/\)$/{
37227 s//\1/
37228 q
37229 }
37230 /^X\/\(\/\).*/{
37231 s//\1/
37232 q
37233 }
37234 s/.*/./; q'`
37235
cristy8b350f62009-11-15 23:12:43 +000037236# Avoid depending upon Character Ranges.
37237as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37238as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37239as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37240as_cr_digits='0123456789'
37241as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000037242
37243ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000037244case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000037245-n*)
cristy8b350f62009-11-15 23:12:43 +000037246 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000037247 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000037248 xy) ECHO_C='\c';;
37249 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37250 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000037251 esac;;
37252*)
37253 ECHO_N='-n';;
37254esac
cristy3ed852e2009-09-05 21:47:34 +000037255
37256rm -f conf$$ conf$$.exe conf$$.file
37257if test -d conf$$.dir; then
37258 rm -f conf$$.dir/conf$$.file
37259else
37260 rm -f conf$$.dir
37261 mkdir conf$$.dir 2>/dev/null
37262fi
37263if (echo >conf$$.file) 2>/dev/null; then
37264 if ln -s conf$$.file conf$$ 2>/dev/null; then
37265 as_ln_s='ln -s'
37266 # ... but there are two gotchas:
37267 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37268 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000037269 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000037270 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000037271 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037272 elif ln conf$$.file conf$$ 2>/dev/null; then
37273 as_ln_s=ln
37274 else
cristy14fefe52012-05-21 00:59:18 +000037275 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037276 fi
37277else
cristy14fefe52012-05-21 00:59:18 +000037278 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037279fi
37280rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37281rmdir conf$$.dir 2>/dev/null
37282
cristy8b350f62009-11-15 23:12:43 +000037283
37284# as_fn_mkdir_p
37285# -------------
37286# Create "$as_dir" as a directory, including parents if necessary.
37287as_fn_mkdir_p ()
37288{
37289
37290 case $as_dir in #(
37291 -*) as_dir=./$as_dir;;
37292 esac
37293 test -d "$as_dir" || eval $as_mkdir_p || {
37294 as_dirs=
37295 while :; do
37296 case $as_dir in #(
37297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37298 *) as_qdir=$as_dir;;
37299 esac
37300 as_dirs="'$as_qdir' $as_dirs"
37301 as_dir=`$as_dirname -- "$as_dir" ||
37302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37303 X"$as_dir" : 'X\(//\)[^/]' \| \
37304 X"$as_dir" : 'X\(//\)$' \| \
37305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37306$as_echo X"$as_dir" |
37307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37308 s//\1/
37309 q
37310 }
37311 /^X\(\/\/\)[^/].*/{
37312 s//\1/
37313 q
37314 }
37315 /^X\(\/\/\)$/{
37316 s//\1/
37317 q
37318 }
37319 /^X\(\/\).*/{
37320 s//\1/
37321 q
37322 }
37323 s/.*/./; q'`
37324 test -d "$as_dir" && break
37325 done
37326 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037328
37329
37330} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037331if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037332 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037333else
37334 test -d ./-p && rmdir ./-p
37335 as_mkdir_p=false
37336fi
37337
cristy14fefe52012-05-21 00:59:18 +000037338
37339# as_fn_executable_p FILE
37340# -----------------------
37341# Test if FILE is an executable regular file.
37342as_fn_executable_p ()
37343{
37344 test -f "$1" && test -x "$1"
37345} # as_fn_executable_p
37346as_test_x='test -x'
37347as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037348
37349# Sed expression to map a string onto a valid CPP name.
37350as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37351
37352# Sed expression to map a string onto a valid variable name.
37353as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37354
37355
37356exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037357## ----------------------------------- ##
37358## Main body of $CONFIG_STATUS script. ##
37359## ----------------------------------- ##
37360_ASEOF
37361test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037362
cristy8b350f62009-11-15 23:12:43 +000037363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37364# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037365# report actual input values of CONFIG_FILES etc. instead of their
37366# values after options handling.
37367ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037368This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037369generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037370
37371 CONFIG_FILES = $CONFIG_FILES
37372 CONFIG_HEADERS = $CONFIG_HEADERS
37373 CONFIG_LINKS = $CONFIG_LINKS
37374 CONFIG_COMMANDS = $CONFIG_COMMANDS
37375 $ $0 $@
37376
37377on `(hostname || uname -n) 2>/dev/null | sed 1q`
37378"
37379
37380_ACEOF
37381
37382case $ac_config_files in *"
37383"*) set x $ac_config_files; shift; ac_config_files=$*;;
37384esac
37385
37386case $ac_config_headers in *"
37387"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37388esac
37389
37390
37391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37392# Files that config.status was made for.
37393config_files="$ac_config_files"
37394config_headers="$ac_config_headers"
37395config_commands="$ac_config_commands"
37396
37397_ACEOF
37398
37399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37400ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037401\`$as_me' instantiates files and other configuration actions
37402from templates according to the current configuration. Unless the files
37403and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037404
cristy8b350f62009-11-15 23:12:43 +000037405Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037406
37407 -h, --help print this help, then exit
37408 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037409 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037410 -q, --quiet, --silent
37411 do not print progress messages
37412 -d, --debug don't remove temporary files
37413 --recheck update $as_me by reconfiguring in the same conditions
37414 --file=FILE[:TEMPLATE]
37415 instantiate the configuration file FILE
37416 --header=FILE[:TEMPLATE]
37417 instantiate the configuration header FILE
37418
37419Configuration files:
37420$config_files
37421
37422Configuration headers:
37423$config_headers
37424
37425Configuration commands:
37426$config_commands
37427
cristy8b350f62009-11-15 23:12:43 +000037428Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037429
37430_ACEOF
37431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037432ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037433ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037434ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037435configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037436 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037437
cristy14fefe52012-05-21 00:59:18 +000037438Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037439This config.status script is free software; the Free Software Foundation
37440gives unlimited permission to copy, distribute and modify it."
37441
37442ac_pwd='$ac_pwd'
37443srcdir='$srcdir'
37444INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037445MKDIR_P='$MKDIR_P'
37446AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037447test -n "\$AWK" || AWK=awk
37448_ACEOF
37449
37450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37451# The default lists apply if the user does not specify any file.
37452ac_need_defaults=:
37453while test $# != 0
37454do
37455 case $1 in
cristyda16f162011-02-19 23:52:17 +000037456 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37458 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37459 ac_shift=:
37460 ;;
cristyda16f162011-02-19 23:52:17 +000037461 --*=)
37462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37463 ac_optarg=
37464 ac_shift=:
37465 ;;
cristy3ed852e2009-09-05 21:47:34 +000037466 *)
37467 ac_option=$1
37468 ac_optarg=$2
37469 ac_shift=shift
37470 ;;
37471 esac
37472
37473 case $ac_option in
37474 # Handling of the options.
37475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37476 ac_cs_recheck=: ;;
37477 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37478 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037479 --config | --confi | --conf | --con | --co | --c )
37480 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037481 --debug | --debu | --deb | --de | --d | -d )
37482 debug=: ;;
37483 --file | --fil | --fi | --f )
37484 $ac_shift
37485 case $ac_optarg in
37486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037487 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037488 esac
cristy8b350f62009-11-15 23:12:43 +000037489 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037490 ac_need_defaults=false;;
37491 --header | --heade | --head | --hea )
37492 $ac_shift
37493 case $ac_optarg in
37494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37495 esac
cristy8b350f62009-11-15 23:12:43 +000037496 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037497 ac_need_defaults=false;;
37498 --he | --h)
37499 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037500 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037501Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037502 --help | --hel | -h )
37503 $as_echo "$ac_cs_usage"; exit ;;
37504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37505 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37506 ac_cs_silent=: ;;
37507
37508 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037509 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037510Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037511
cristy8b350f62009-11-15 23:12:43 +000037512 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037513 ac_need_defaults=false ;;
37514
37515 esac
37516 shift
37517done
37518
37519ac_configure_extra_args=
37520
37521if $ac_cs_silent; then
37522 exec 6>/dev/null
37523 ac_configure_extra_args="$ac_configure_extra_args --silent"
37524fi
37525
37526_ACEOF
37527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37528if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037529 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037530 shift
37531 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37532 CONFIG_SHELL='$SHELL'
37533 export CONFIG_SHELL
37534 exec "\$@"
37535fi
37536
37537_ACEOF
37538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37539exec 5>>config.log
37540{
37541 echo
37542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37543## Running $as_me. ##
37544_ASBOX
37545 $as_echo "$ac_log"
37546} >&5
37547
37548_ACEOF
37549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037550#
37551# INIT-COMMANDS
37552#
37553PACKAGE="$PACKAGE"
37554AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37555
37556
37557# The HP-UX ksh and POSIX shell print the target directory to stdout
37558# if CDPATH is set.
37559(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37560
37561sed_quote_subst='$sed_quote_subst'
37562double_quote_subst='$double_quote_subst'
37563delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037564SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37565Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37566GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37567EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37568FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37569SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37570ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37571LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37572macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37573macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37574AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37575DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37576OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37577enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37578enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37579pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37580enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037581PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037582host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37583host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37584host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37585build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37586build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37587build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37588NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37589LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37590max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37591ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37592exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37593lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37594lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37595lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037596lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37597lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037598reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37599reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37600deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37601file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037602file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37603want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37604sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037605AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37606AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037607archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037608STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37609RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37610old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37611old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37612old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37613lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37614CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37615CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37616compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37617GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37618lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37619lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37620lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37621lt_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 +000037622nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37623lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037624objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37625MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37626lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037627lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037628lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037629lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37630lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37631need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037632MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037633DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37634NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37635LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37636OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37637OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37638libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37639shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37640extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37641archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37642enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37643export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37644whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37645compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37646old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37647old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37648archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37649archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37650module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37651module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37652with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37653allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37654no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37655hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037656hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37657hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37658hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37659hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37660hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37661hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37662inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37663link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037664always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37665export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37666exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37667include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37668prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037669postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037670file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37671variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37672need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37673need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37674version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37675runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37676shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37677shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37678libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37679library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37680soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37681install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37682postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37683postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37684finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37685finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37686hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37687sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37688sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37689hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37690enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37691enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37692enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37693old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37694striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37695compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37696predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37697postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37698predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37699postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37700compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37701LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37702reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37703reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37704old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37705compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37706GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37707lt_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 +000037708lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037709lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037710lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37711lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37712archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37713enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37714export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37715whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37716compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37717old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37718old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37719archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37720archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37721module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37722module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37723with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37724allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37725no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37726hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037727hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37728hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37729hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37730hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37731hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37732hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37733inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37734link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037735always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37736export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37737exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37738include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37739prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037740postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037741file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37742hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37743compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37744predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37745postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37746predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37747postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37748compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037749
37750LTCC='$LTCC'
37751LTCFLAGS='$LTCFLAGS'
37752compiler='$compiler_DEFAULT'
37753
cristy0c60a692010-11-04 01:09:47 +000037754# A function that is used when there is no print builtin or printf.
37755func_fallback_echo ()
37756{
37757 eval 'cat <<_LTECHO_EOF
37758\$1
37759_LTECHO_EOF'
37760}
37761
cristy73bd4a52010-10-05 11:24:23 +000037762# Quote evaled strings.
37763for var in SED \
37764GREP \
37765EGREP \
37766FGREP \
cristy0c60a692010-11-04 01:09:47 +000037767SHELL \
37768ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037769LD \
cristy0c60a692010-11-04 01:09:47 +000037770AS \
37771DLLTOOL \
37772OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037773PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037774NM \
37775LN_S \
37776lt_SP2NL \
37777lt_NL2SP \
37778reload_flag \
37779deplibs_check_method \
37780file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037781file_magic_glob \
37782want_nocaseglob \
37783sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037784AR \
37785AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037786archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037787STRIP \
37788RANLIB \
37789CC \
37790CFLAGS \
37791compiler \
37792lt_cv_sys_global_symbol_pipe \
37793lt_cv_sys_global_symbol_to_cdecl \
37794lt_cv_sys_global_symbol_to_c_name_address \
37795lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037796nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037797lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037798lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037799lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037800lt_prog_compiler_static \
37801lt_cv_prog_compiler_c_o \
37802need_locks \
cristyda16f162011-02-19 23:52:17 +000037803MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037804DSYMUTIL \
37805NMEDIT \
37806LIPO \
37807OTOOL \
37808OTOOL64 \
37809shrext_cmds \
37810export_dynamic_flag_spec \
37811whole_archive_flag_spec \
37812compiler_needs_object \
37813with_gnu_ld \
37814allow_undefined_flag \
37815no_undefined_flag \
37816hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037817hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037818exclude_expsyms \
37819include_expsyms \
37820file_list_spec \
37821variables_saved_for_relink \
37822libname_spec \
37823library_names_spec \
37824soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037825install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037826finish_eval \
37827old_striplib \
37828striplib \
37829compiler_lib_search_dirs \
37830predep_objects \
37831postdep_objects \
37832predeps \
37833postdeps \
37834compiler_lib_search_path \
37835LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037836reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037837compiler_CXX \
37838lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037839lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037840lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037841lt_prog_compiler_static_CXX \
37842lt_cv_prog_compiler_c_o_CXX \
37843export_dynamic_flag_spec_CXX \
37844whole_archive_flag_spec_CXX \
37845compiler_needs_object_CXX \
37846with_gnu_ld_CXX \
37847allow_undefined_flag_CXX \
37848no_undefined_flag_CXX \
37849hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037850hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037851exclude_expsyms_CXX \
37852include_expsyms_CXX \
37853file_list_spec_CXX \
37854compiler_lib_search_dirs_CXX \
37855predep_objects_CXX \
37856postdep_objects_CXX \
37857predeps_CXX \
37858postdeps_CXX \
37859compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037860 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037861 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037862 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037863 ;;
37864 *)
37865 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37866 ;;
37867 esac
37868done
37869
37870# Double-quote double-evaled strings.
37871for var in reload_cmds \
37872old_postinstall_cmds \
37873old_postuninstall_cmds \
37874old_archive_cmds \
37875extract_expsyms_cmds \
37876old_archive_from_new_cmds \
37877old_archive_from_expsyms_cmds \
37878archive_cmds \
37879archive_expsym_cmds \
37880module_cmds \
37881module_expsym_cmds \
37882export_symbols_cmds \
37883prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037884postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037885postinstall_cmds \
37886postuninstall_cmds \
37887finish_cmds \
37888sys_lib_search_path_spec \
37889sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037890reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037891old_archive_cmds_CXX \
37892old_archive_from_new_cmds_CXX \
37893old_archive_from_expsyms_cmds_CXX \
37894archive_cmds_CXX \
37895archive_expsym_cmds_CXX \
37896module_cmds_CXX \
37897module_expsym_cmds_CXX \
37898export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037899prelink_cmds_CXX \
37900postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037901 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037902 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037903 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037904 ;;
37905 *)
37906 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37907 ;;
37908 esac
37909done
37910
cristy73bd4a52010-10-05 11:24:23 +000037911ac_aux_dir='$ac_aux_dir'
37912xsi_shell='$xsi_shell'
37913lt_shell_append='$lt_shell_append'
37914
37915# See if we are running on zsh, and set the options which allow our
37916# commands through without removal of \ escapes INIT.
37917if test -n "\${ZSH_VERSION+set}" ; then
37918 setopt NO_GLOB_SUBST
37919fi
37920
37921
37922 PACKAGE='$PACKAGE'
37923 VERSION='$VERSION'
37924 TIMESTAMP='$TIMESTAMP'
37925 RM='$RM'
37926 ofile='$ofile'
37927
37928
37929
37930
37931
37932
cristy3ed852e2009-09-05 21:47:34 +000037933_ACEOF
37934
37935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37936
37937# Handling of arguments.
37938for ac_config_target in $ac_config_targets
37939do
37940 case $ac_config_target in
37941 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037942 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037943 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37944 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37945 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37946 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37947 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37948 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37949 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37950 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037951 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037952 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37953 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37954 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37955 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37956 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037957 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037958 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037959 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037960 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37961 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37962 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37963 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37964 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037965 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037966 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037967 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37968 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37969 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037970 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37971 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037972 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037973 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037974 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037975 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037976 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37977 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37978 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37979 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037980 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37981 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37982 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37983 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37984 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37985 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37986 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37987 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37988 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37989 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37990 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37991 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037992 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37993 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037994
cristy98dddb52010-11-04 00:30:15 +000037995 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037996 esac
37997done
37998
37999
38000# If the user did not use the arguments to specify the items to instantiate,
38001# then the envvar interface is used. Set only those that are not.
38002# We use the long form for the default assignment because of an extremely
38003# bizarre bug on SunOS 4.1.3.
38004if $ac_need_defaults; then
38005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38008fi
38009
38010# Have a temporary directory for convenience. Make it in the build tree
38011# simply because there is no reason against having it here, and in addition,
38012# creating and moving files from /tmp can sometimes cause problems.
38013# Hook for its removal unless debugging.
38014# Note that there is a small window in which the directory will not be cleaned:
38015# after its creation but before its name has been assigned to `$tmp'.
38016$debug ||
38017{
cristyda16f162011-02-19 23:52:17 +000038018 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000038019 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000038020 : "${ac_tmp:=$tmp}"
38021 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000038022' 0
cristy8b350f62009-11-15 23:12:43 +000038023 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000038024}
38025# Create a (secure) tmp directory for tmp files.
38026
38027{
38028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000038029 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000038030} ||
38031{
38032 tmp=./conf$$-$RANDOM
38033 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000038034} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038035ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000038036
38037# Set up the scripts for CONFIG_FILES section.
38038# No need to generate them if there are no CONFIG_FILES.
38039# This happens for instance with `./config.status config.h'.
38040if test -n "$CONFIG_FILES"; then
38041
38042
cristy8b350f62009-11-15 23:12:43 +000038043ac_cr=`echo X | tr X '\015'`
38044# On cygwin, bash can eat \r inside `` if the user requested igncr.
38045# But we know of no other shell where ac_cr would be empty at this
38046# point, so we can use a bashism as a fallback.
38047if test "x$ac_cr" = x; then
38048 eval ac_cr=\$\'\\r\'
38049fi
cristy3ed852e2009-09-05 21:47:34 +000038050ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38051if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000038052 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000038053else
38054 ac_cs_awk_cr=$ac_cr
38055fi
38056
cristyda16f162011-02-19 23:52:17 +000038057echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000038058_ACEOF
38059
38060
38061{
38062 echo "cat >conf$$subs.awk <<_ACEOF" &&
38063 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38064 echo "_ACEOF"
38065} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38067ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000038068ac_delim='%!_!# '
38069for ac_last_try in false false false false false :; do
38070 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038072
38073 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38074 if test $ac_delim_n = $ac_delim_num; then
38075 break
38076 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038077 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038078 else
38079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38080 fi
38081done
38082rm -f conf$$subs.sh
38083
38084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000038085cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038086_ACEOF
38087sed -n '
38088h
38089s/^/S["/; s/!.*/"]=/
38090p
38091g
38092s/^[^!]*!//
38093:repl
38094t repl
38095s/'"$ac_delim"'$//
38096t delim
38097:nl
38098h
cristycd4c5312009-11-22 01:19:08 +000038099s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038100t more1
38101s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38102p
38103n
38104b repl
38105:more1
38106s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38107p
38108g
38109s/.\{148\}//
38110t nl
38111:delim
38112h
cristycd4c5312009-11-22 01:19:08 +000038113s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038114t more2
38115s/["\\]/\\&/g; s/^/"/; s/$/"/
38116p
38117b
38118:more2
38119s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38120p
38121g
38122s/.\{148\}//
38123t delim
38124' <conf$$subs.awk | sed '
38125/^[^""]/{
38126 N
38127 s/\n//
38128}
38129' >>$CONFIG_STATUS || ac_write_fail=1
38130rm -f conf$$subs.awk
38131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38132_ACAWK
cristyda16f162011-02-19 23:52:17 +000038133cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038134 for (key in S) S_is_set[key] = 1
38135 FS = ""
38136
38137}
38138{
38139 line = $ 0
38140 nfields = split(line, field, "@")
38141 substed = 0
38142 len = length(field[1])
38143 for (i = 2; i < nfields; i++) {
38144 key = field[i]
38145 keylen = length(key)
38146 if (S_is_set[key]) {
38147 value = S[key]
38148 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38149 len += length(value) + length(field[++i])
38150 substed = 1
38151 } else
38152 len += 1 + keylen
38153 }
38154
38155 print line
38156}
38157
38158_ACAWK
38159_ACEOF
38160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38161if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38162 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38163else
38164 cat
cristyda16f162011-02-19 23:52:17 +000038165fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000038166 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038167_ACEOF
38168
cristy98dddb52010-11-04 00:30:15 +000038169# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38170# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000038171# trailing colons and then remove the whole line if VPATH becomes empty
38172# (actually we leave an empty line to preserve line numbers).
38173if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000038174 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38175h
38176s///
38177s/^/:/
38178s/[ ]*$/:/
38179s/:\$(srcdir):/:/g
38180s/:\${srcdir}:/:/g
38181s/:@srcdir@:/:/g
38182s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000038183s/:*$//
cristy98dddb52010-11-04 00:30:15 +000038184x
38185s/\(=[ ]*\).*/\1/
38186G
38187s/\n//
cristy3ed852e2009-09-05 21:47:34 +000038188s/^[^=]*=[ ]*$//
38189}'
38190fi
38191
38192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38193fi # test -n "$CONFIG_FILES"
38194
38195# Set up the scripts for CONFIG_HEADERS section.
38196# No need to generate them if there are no CONFIG_HEADERS.
38197# This happens for instance with `./config.status Makefile'.
38198if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000038199cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000038200BEGIN {
38201_ACEOF
38202
38203# Transform confdefs.h into an awk script `defines.awk', embedded as
38204# here-document in config.status, that substitutes the proper values into
38205# config.h.in to produce config.h.
38206
38207# Create a delimiter string that does not exist in confdefs.h, to ease
38208# handling of long lines.
38209ac_delim='%!_!# '
38210for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000038211 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38212 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000038213 break
38214 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038215 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038216 else
38217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38218 fi
38219done
38220
38221# For the awk script, D is an array of macro values keyed by name,
38222# likewise P contains macro parameters if any. Preserve backslash
38223# newline sequences.
38224
38225ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38226sed -n '
38227s/.\{148\}/&'"$ac_delim"'/g
38228t rset
38229:rset
38230s/^[ ]*#[ ]*define[ ][ ]*/ /
38231t def
38232d
38233:def
38234s/\\$//
38235t bsnl
38236s/["\\]/\\&/g
38237s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38238D["\1"]=" \3"/p
38239s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38240d
38241:bsnl
38242s/["\\]/\\&/g
38243s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38244D["\1"]=" \3\\\\\\n"\\/p
38245t cont
38246s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38247t cont
38248d
38249:cont
38250n
38251s/.\{148\}/&'"$ac_delim"'/g
38252t clear
38253:clear
38254s/\\$//
38255t bsnlc
38256s/["\\]/\\&/g; s/^/"/; s/$/"/p
38257d
38258:bsnlc
38259s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38260b cont
38261' <confdefs.h | sed '
38262s/'"$ac_delim"'/"\\\
38263"/g' >>$CONFIG_STATUS || ac_write_fail=1
38264
38265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38266 for (key in D) D_is_set[key] = 1
38267 FS = ""
38268}
38269/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38270 line = \$ 0
38271 split(line, arg, " ")
38272 if (arg[1] == "#") {
38273 defundef = arg[2]
38274 mac1 = arg[3]
38275 } else {
38276 defundef = substr(arg[1], 2)
38277 mac1 = arg[2]
38278 }
38279 split(mac1, mac2, "(") #)
38280 macro = mac2[1]
38281 prefix = substr(line, 1, index(line, defundef) - 1)
38282 if (D_is_set[macro]) {
38283 # Preserve the white space surrounding the "#".
38284 print prefix "define", macro P[macro] D[macro]
38285 next
38286 } else {
38287 # Replace #undef with comments. This is necessary, for example,
38288 # in the case of _POSIX_SOURCE, which is predefined and required
38289 # on some systems where configure will not decide to define it.
38290 if (defundef == "undef") {
38291 print "/*", prefix defundef, macro, "*/"
38292 next
38293 }
38294 }
38295}
38296{ print }
38297_ACAWK
38298_ACEOF
38299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038300 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038301fi # test -n "$CONFIG_HEADERS"
38302
38303
38304eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38305shift
38306for ac_tag
38307do
38308 case $ac_tag in
38309 :[FHLC]) ac_mode=$ac_tag; continue;;
38310 esac
38311 case $ac_mode$ac_tag in
38312 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038313 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038314 :[FH]-) ac_tag=-:-;;
38315 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38316 esac
38317 ac_save_IFS=$IFS
38318 IFS=:
38319 set x $ac_tag
38320 IFS=$ac_save_IFS
38321 shift
38322 ac_file=$1
38323 shift
38324
38325 case $ac_mode in
38326 :L) ac_source=$1;;
38327 :[FH])
38328 ac_file_inputs=
38329 for ac_f
38330 do
38331 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038332 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038333 *) # Look for the file first in the build tree, then in the source tree
38334 # (if the path is not absolute). The absolute path cannot be DOS-style,
38335 # because $ac_f cannot contain `:'.
38336 test -f "$ac_f" ||
38337 case $ac_f in
38338 [\\/$]*) false;;
38339 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38340 esac ||
cristy98dddb52010-11-04 00:30:15 +000038341 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038342 esac
38343 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038344 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038345 done
38346
38347 # Let's still pretend it is `configure' which instantiates (i.e., don't
38348 # use $as_me), people would be surprised to read:
38349 # /* config.h. Generated by config.status. */
38350 configure_input='Generated from '`
38351 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38352 `' by configure.'
38353 if test x"$ac_file" != x-; then
38354 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038356$as_echo "$as_me: creating $ac_file" >&6;}
38357 fi
38358 # Neutralize special characters interpreted by sed in replacement strings.
38359 case $configure_input in #(
38360 *\&* | *\|* | *\\* )
38361 ac_sed_conf_input=`$as_echo "$configure_input" |
38362 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38363 *) ac_sed_conf_input=$configure_input;;
38364 esac
38365
38366 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038367 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038369 esac
38370 ;;
38371 esac
38372
38373 ac_dir=`$as_dirname -- "$ac_file" ||
38374$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38375 X"$ac_file" : 'X\(//\)[^/]' \| \
38376 X"$ac_file" : 'X\(//\)$' \| \
38377 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38378$as_echo X"$ac_file" |
38379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38380 s//\1/
38381 q
38382 }
38383 /^X\(\/\/\)[^/].*/{
38384 s//\1/
38385 q
38386 }
38387 /^X\(\/\/\)$/{
38388 s//\1/
38389 q
38390 }
38391 /^X\(\/\).*/{
38392 s//\1/
38393 q
38394 }
38395 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038396 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038397 ac_builddir=.
38398
38399case "$ac_dir" in
38400.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38401*)
38402 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38403 # A ".." for each directory in $ac_dir_suffix.
38404 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38405 case $ac_top_builddir_sub in
38406 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38407 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38408 esac ;;
38409esac
38410ac_abs_top_builddir=$ac_pwd
38411ac_abs_builddir=$ac_pwd$ac_dir_suffix
38412# for backward compatibility:
38413ac_top_builddir=$ac_top_build_prefix
38414
38415case $srcdir in
38416 .) # We are building in place.
38417 ac_srcdir=.
38418 ac_top_srcdir=$ac_top_builddir_sub
38419 ac_abs_top_srcdir=$ac_pwd ;;
38420 [\\/]* | ?:[\\/]* ) # Absolute name.
38421 ac_srcdir=$srcdir$ac_dir_suffix;
38422 ac_top_srcdir=$srcdir
38423 ac_abs_top_srcdir=$srcdir ;;
38424 *) # Relative name.
38425 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38426 ac_top_srcdir=$ac_top_build_prefix$srcdir
38427 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38428esac
38429ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38430
38431
38432 case $ac_mode in
38433 :F)
38434 #
38435 # CONFIG_FILE
38436 #
38437
38438 case $INSTALL in
38439 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38440 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38441 esac
cristy73bd4a52010-10-05 11:24:23 +000038442 ac_MKDIR_P=$MKDIR_P
38443 case $MKDIR_P in
38444 [\\/$]* | ?:[\\/]* ) ;;
38445 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38446 esac
cristy3ed852e2009-09-05 21:47:34 +000038447_ACEOF
38448
38449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38450# If the template does not know about datarootdir, expand it.
38451# FIXME: This hack should be removed a few years after 2.60.
38452ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038453ac_sed_dataroot='
38454/datarootdir/ {
38455 p
38456 q
38457}
38458/@datadir@/p
38459/@docdir@/p
38460/@infodir@/p
38461/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038462/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038463case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38464*datarootdir*) ac_datarootdir_seen=yes;;
38465*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038467$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38468_ACEOF
38469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38470 ac_datarootdir_hack='
38471 s&@datadir@&$datadir&g
38472 s&@docdir@&$docdir&g
38473 s&@infodir@&$infodir&g
38474 s&@localedir@&$localedir&g
38475 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038476 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038477esac
38478_ACEOF
38479
38480# Neutralize VPATH when `$srcdir' = `.'.
38481# Shell code in configure.ac might set extrasub.
38482# FIXME: do we really want to maintain this feature?
38483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38484ac_sed_extra="$ac_vpsub
38485$extrasub
38486_ACEOF
38487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38488:t
38489/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38490s|@configure_input@|$ac_sed_conf_input|;t t
38491s&@top_builddir@&$ac_top_builddir_sub&;t t
38492s&@top_build_prefix@&$ac_top_build_prefix&;t t
38493s&@srcdir@&$ac_srcdir&;t t
38494s&@abs_srcdir@&$ac_abs_srcdir&;t t
38495s&@top_srcdir@&$ac_top_srcdir&;t t
38496s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38497s&@builddir@&$ac_builddir&;t t
38498s&@abs_builddir@&$ac_abs_builddir&;t t
38499s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38500s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038501s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038502$ac_datarootdir_hack
38503"
cristyda16f162011-02-19 23:52:17 +000038504eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38505 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038506
38507test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038508 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38509 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38510 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038512which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038513$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038514which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038515
cristyda16f162011-02-19 23:52:17 +000038516 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038517 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038518 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38519 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038520 esac \
cristy98dddb52010-11-04 00:30:15 +000038521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038522 ;;
38523 :H)
38524 #
38525 # CONFIG_HEADER
38526 #
38527 if test x"$ac_file" != x-; then
38528 {
38529 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038530 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38531 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038533 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038534 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038535$as_echo "$as_me: $ac_file is unchanged" >&6;}
38536 else
38537 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038538 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038540 fi
38541 else
38542 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038543 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038544 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038545 fi
cristy73bd4a52010-10-05 11:24:23 +000038546# Compute "$ac_file"'s index in $config_headers.
38547_am_arg="$ac_file"
38548_am_stamp_count=1
38549for _am_header in $config_headers :; do
38550 case $_am_header in
38551 $_am_arg | $_am_arg:* )
38552 break ;;
38553 * )
38554 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38555 esac
38556done
38557echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38558$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38559 X"$_am_arg" : 'X\(//\)[^/]' \| \
38560 X"$_am_arg" : 'X\(//\)$' \| \
38561 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38562$as_echo X"$_am_arg" |
38563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38564 s//\1/
38565 q
38566 }
38567 /^X\(\/\/\)[^/].*/{
38568 s//\1/
38569 q
38570 }
38571 /^X\(\/\/\)$/{
38572 s//\1/
38573 q
38574 }
38575 /^X\(\/\).*/{
38576 s//\1/
38577 q
38578 }
38579 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038580 ;;
38581
cristy8b350f62009-11-15 23:12:43 +000038582 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038583$as_echo "$as_me: executing $ac_file commands" >&6;}
38584 ;;
38585 esac
38586
38587
38588 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038589 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038590ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38591ac_prefix_conf_PKG=`echo MagickCore`
38592ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38593ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38594ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38595if test ".$ac_prefix_conf_INP" = "."; then
38596 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38597 case "$ac_file" in
38598 *.h) ac_prefix_conf_INP=$ac_file ;;
38599 *)
38600 esac
38601 test ".$ac_prefix_conf_INP" != "." && break
38602 done
38603fi
38604if test ".$ac_prefix_conf_INP" = "."; then
38605 case "$ac_prefix_conf_OUT" in
38606 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38607 ;;
38608 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38609 ;;
38610 *) ac_prefix_conf_INP=config.h
38611 ;;
38612 esac
38613fi
38614if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038615 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038616else
38617 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38618 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38619 fi fi
38620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38621$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38622 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038623 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38624 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38625 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38626 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38627 $as_echo "#endif/" >> conftest.prefix
38628 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38629 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38630 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038631 # now executing _script on _DEF input to create _OUT output file
38632 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38633 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38634 echo ' ' >>$tmp/pconfig.h
38635 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38636
38637 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38638 echo ' ' >>$tmp/pconfig.h
38639 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38640 echo "#endif" >>$tmp/pconfig.h
38641 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38642 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38643$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38644 else
38645 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38646$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38647 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38648 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38649 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38650$as_echo X"$ac_prefix_conf_OUT" |
38651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38652 s//\1/
38653 q
38654 }
38655 /^X\(\/\/\)[^/].*/{
38656 s//\1/
38657 q
38658 }
38659 /^X\(\/\/\)$/{
38660 s//\1/
38661 q
38662 }
38663 /^X\(\/\).*/{
38664 s//\1/
38665 q
38666 }
38667 s/.*/./; q'`
38668 as_dir="$ac_dir"; as_fn_mkdir_p
38669 rm -f "$ac_prefix_conf_OUT"
38670 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38671 fi
cristy73bd4a52010-10-05 11:24:23 +000038672 else
cristy98dddb52010-11-04 00:30:15 +000038673 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 +000038674 fi
38675 rm -f conftest.*
38676fi
38677 ;;
38678 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038679 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038680 # are listed without --file. Let's play safe and only enable the eval
38681 # if we detect the quoting.
38682 case $CONFIG_FILES in
38683 *\'*) eval set x "$CONFIG_FILES" ;;
38684 *) set x $CONFIG_FILES ;;
38685 esac
38686 shift
38687 for mf
38688 do
38689 # Strip MF so we end up with the name of the file.
38690 mf=`echo "$mf" | sed -e 's/:.*$//'`
38691 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038692 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038693 # some people rename them; so instead we look at the file content.
38694 # Grep'ing the first line is not enough: some people post-process
38695 # each Makefile.in and add a new line on top of each file to say so.
38696 # Grep'ing the whole file is not good either: AIX grep has a line
38697 # limit of 2048, but all sed's we know have understand at least 4000.
38698 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38699 dirpart=`$as_dirname -- "$mf" ||
38700$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38701 X"$mf" : 'X\(//\)[^/]' \| \
38702 X"$mf" : 'X\(//\)$' \| \
38703 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38704$as_echo X"$mf" |
38705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38706 s//\1/
38707 q
38708 }
38709 /^X\(\/\/\)[^/].*/{
38710 s//\1/
38711 q
38712 }
38713 /^X\(\/\/\)$/{
38714 s//\1/
38715 q
38716 }
38717 /^X\(\/\).*/{
38718 s//\1/
38719 q
38720 }
38721 s/.*/./; q'`
38722 else
38723 continue
38724 fi
38725 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038726 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038727 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38728 test -z "$DEPDIR" && continue
38729 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038730 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038731 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038732 # Find all dependency output files, they are included files with
38733 # $(DEPDIR) in their names. We invoke sed twice because it is the
38734 # simplest approach to changing $(DEPDIR) to its actual value in the
38735 # expansion.
38736 for file in `sed -n "
38737 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038738 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038739 # Make sure the directory exists.
38740 test -f "$dirpart/$file" && continue
38741 fdir=`$as_dirname -- "$file" ||
38742$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38743 X"$file" : 'X\(//\)[^/]' \| \
38744 X"$file" : 'X\(//\)$' \| \
38745 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38746$as_echo X"$file" |
38747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38748 s//\1/
38749 q
38750 }
38751 /^X\(\/\/\)[^/].*/{
38752 s//\1/
38753 q
38754 }
38755 /^X\(\/\/\)$/{
38756 s//\1/
38757 q
38758 }
38759 /^X\(\/\).*/{
38760 s//\1/
38761 q
38762 }
38763 s/.*/./; q'`
38764 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38765 # echo "creating $dirpart/$file"
38766 echo '# dummy' > "$dirpart/$file"
38767 done
38768 done
38769}
38770 ;;
38771 "libtool":C)
38772
38773 # See if we are running on zsh, and set the options which allow our
38774 # commands through without removal of \ escapes.
38775 if test -n "${ZSH_VERSION+set}" ; then
38776 setopt NO_GLOB_SUBST
38777 fi
38778
38779 cfgfile="${ofile}T"
38780 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38781 $RM "$cfgfile"
38782
38783 cat <<_LT_EOF >> "$cfgfile"
38784#! $SHELL
38785
38786# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38787# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38788# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38789# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38790#
38791# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038792# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38793# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038794# Written by Gordon Matzigkeit, 1996
38795#
38796# This file is part of GNU Libtool.
38797#
38798# GNU Libtool is free software; you can redistribute it and/or
38799# modify it under the terms of the GNU General Public License as
38800# published by the Free Software Foundation; either version 2 of
38801# the License, or (at your option) any later version.
38802#
38803# As a special exception to the GNU General Public License,
38804# if you distribute this file as part of a program or library that
38805# is built using GNU Libtool, you may include this file under the
38806# same distribution terms that you use for the rest of that program.
38807#
38808# GNU Libtool is distributed in the hope that it will be useful,
38809# but WITHOUT ANY WARRANTY; without even the implied warranty of
38810# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38811# GNU General Public License for more details.
38812#
38813# You should have received a copy of the GNU General Public License
38814# along with GNU Libtool; see the file COPYING. If not, a copy
38815# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38816# obtained by writing to the Free Software Foundation, Inc.,
38817# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38818
38819
38820# The names of the tagged configurations supported by this script.
38821available_tags="CXX "
38822
38823# ### BEGIN LIBTOOL CONFIG
38824
38825# A sed program that does not truncate output.
38826SED=$lt_SED
38827
38828# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38829Xsed="\$SED -e 1s/^X//"
38830
38831# A grep program that handles long lines.
38832GREP=$lt_GREP
38833
38834# An ERE matcher.
38835EGREP=$lt_EGREP
38836
38837# A literal string matcher.
38838FGREP=$lt_FGREP
38839
cristy0c60a692010-11-04 01:09:47 +000038840# Shell to use when invoking shell scripts.
38841SHELL=$lt_SHELL
38842
38843# An echo program that protects backslashes.
38844ECHO=$lt_ECHO
38845
cristy73bd4a52010-10-05 11:24:23 +000038846# Which release of libtool.m4 was used?
38847macro_version=$macro_version
38848macro_revision=$macro_revision
38849
38850# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038851AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038852
38853# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038854DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038855
38856# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038857OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038858
38859# Whether or not to build shared libraries.
38860build_libtool_libs=$enable_shared
38861
38862# Whether or not to build static libraries.
38863build_old_libs=$enable_static
38864
38865# What type of objects to build.
38866pic_mode=$pic_mode
38867
38868# Whether or not to optimize for fast installation.
38869fast_install=$enable_fast_install
38870
cristy99bd5232011-12-07 14:38:20 +000038871# The PATH separator for the build system.
38872PATH_SEPARATOR=$lt_PATH_SEPARATOR
38873
cristy73bd4a52010-10-05 11:24:23 +000038874# The host system.
38875host_alias=$host_alias
38876host=$host
38877host_os=$host_os
38878
38879# The build system.
38880build_alias=$build_alias
38881build=$build
38882build_os=$build_os
38883
38884# A BSD- or MS-compatible name lister.
38885NM=$lt_NM
38886
38887# Whether we need soft or hard links.
38888LN_S=$lt_LN_S
38889
38890# What is the maximum length of a command?
38891max_cmd_len=$max_cmd_len
38892
38893# Object file suffix (normally "o").
38894objext=$ac_objext
38895
38896# Executable file suffix (normally "").
38897exeext=$exeext
38898
38899# whether the shell understands "unset".
38900lt_unset=$lt_unset
38901
38902# turn spaces into newlines.
38903SP2NL=$lt_lt_SP2NL
38904
38905# turn newlines into spaces.
38906NL2SP=$lt_lt_NL2SP
38907
cristyda16f162011-02-19 23:52:17 +000038908# convert \$build file names to \$host format.
38909to_host_file_cmd=$lt_cv_to_host_file_cmd
38910
38911# convert \$build files to toolchain format.
38912to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38913
cristy73bd4a52010-10-05 11:24:23 +000038914# Method to check whether dependent libraries are shared objects.
38915deplibs_check_method=$lt_deplibs_check_method
38916
cristyda16f162011-02-19 23:52:17 +000038917# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038918file_magic_cmd=$lt_file_magic_cmd
38919
cristyda16f162011-02-19 23:52:17 +000038920# How to find potential files when deplibs_check_method = "file_magic".
38921file_magic_glob=$lt_file_magic_glob
38922
38923# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38924want_nocaseglob=$lt_want_nocaseglob
38925
38926# Command to associate shared and link libraries.
38927sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38928
cristy73bd4a52010-10-05 11:24:23 +000038929# The archiver.
38930AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038931
38932# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038933AR_FLAGS=$lt_AR_FLAGS
38934
cristyda16f162011-02-19 23:52:17 +000038935# How to feed a file listing to the archiver.
38936archiver_list_spec=$lt_archiver_list_spec
38937
cristy73bd4a52010-10-05 11:24:23 +000038938# A symbol stripping program.
38939STRIP=$lt_STRIP
38940
38941# Commands used to install an old-style archive.
38942RANLIB=$lt_RANLIB
38943old_postinstall_cmds=$lt_old_postinstall_cmds
38944old_postuninstall_cmds=$lt_old_postuninstall_cmds
38945
cristy0c60a692010-11-04 01:09:47 +000038946# Whether to use a lock for old archive extraction.
38947lock_old_archive_extraction=$lock_old_archive_extraction
38948
cristy73bd4a52010-10-05 11:24:23 +000038949# A C compiler.
38950LTCC=$lt_CC
38951
38952# LTCC compiler flags.
38953LTCFLAGS=$lt_CFLAGS
38954
38955# Take the output of nm and produce a listing of raw symbols and C names.
38956global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38957
38958# Transform the output of nm in a proper C declaration.
38959global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38960
38961# Transform the output of nm in a C name address pair.
38962global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38963
38964# Transform the output of nm in a C name address pair when lib prefix is needed.
38965global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38966
cristyda16f162011-02-19 23:52:17 +000038967# Specify filename containing input files for \$NM.
38968nm_file_list_spec=$lt_nm_file_list_spec
38969
38970# The root where to search for dependent libraries,and in which our libraries should be installed.
38971lt_sysroot=$lt_sysroot
38972
cristy73bd4a52010-10-05 11:24:23 +000038973# The name of the directory that contains temporary libtool files.
38974objdir=$objdir
38975
cristy73bd4a52010-10-05 11:24:23 +000038976# Used to examine libraries when file_magic_cmd begins with "file".
38977MAGIC_CMD=$MAGIC_CMD
38978
38979# Must we lock files when doing compilation?
38980need_locks=$lt_need_locks
38981
cristyda16f162011-02-19 23:52:17 +000038982# Manifest tool.
38983MANIFEST_TOOL=$lt_MANIFEST_TOOL
38984
cristy73bd4a52010-10-05 11:24:23 +000038985# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38986DSYMUTIL=$lt_DSYMUTIL
38987
38988# Tool to change global to local symbols on Mac OS X.
38989NMEDIT=$lt_NMEDIT
38990
38991# Tool to manipulate fat objects and archives on Mac OS X.
38992LIPO=$lt_LIPO
38993
38994# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38995OTOOL=$lt_OTOOL
38996
38997# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38998OTOOL64=$lt_OTOOL64
38999
39000# Old archive suffix (normally "a").
39001libext=$libext
39002
39003# Shared library suffix (normally ".so").
39004shrext_cmds=$lt_shrext_cmds
39005
39006# The commands to extract the exported symbol list from a shared archive.
39007extract_expsyms_cmds=$lt_extract_expsyms_cmds
39008
39009# Variables whose values should be saved in libtool wrapper scripts and
39010# restored at link time.
39011variables_saved_for_relink=$lt_variables_saved_for_relink
39012
39013# Do we need the "lib" prefix for modules?
39014need_lib_prefix=$need_lib_prefix
39015
39016# Do we need a version for libraries?
39017need_version=$need_version
39018
39019# Library versioning type.
39020version_type=$version_type
39021
39022# Shared library runtime path variable.
39023runpath_var=$runpath_var
39024
39025# Shared library path variable.
39026shlibpath_var=$shlibpath_var
39027
39028# Is shlibpath searched before the hard-coded library search path?
39029shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39030
39031# Format of library name prefix.
39032libname_spec=$lt_libname_spec
39033
39034# List of archive names. First name is the real one, the rest are links.
39035# The last name is the one that the linker finds with -lNAME
39036library_names_spec=$lt_library_names_spec
39037
39038# The coded name of the library, if different from the real name.
39039soname_spec=$lt_soname_spec
39040
cristy0c60a692010-11-04 01:09:47 +000039041# Permission mode override for installation of shared libraries.
39042install_override_mode=$lt_install_override_mode
39043
cristy73bd4a52010-10-05 11:24:23 +000039044# Command to use after installation of a shared archive.
39045postinstall_cmds=$lt_postinstall_cmds
39046
39047# Command to use after uninstallation of a shared archive.
39048postuninstall_cmds=$lt_postuninstall_cmds
39049
39050# Commands used to finish a libtool library installation in a directory.
39051finish_cmds=$lt_finish_cmds
39052
39053# As "finish_cmds", except a single script fragment to be evaled but
39054# not shown.
39055finish_eval=$lt_finish_eval
39056
39057# Whether we should hardcode library paths into libraries.
39058hardcode_into_libs=$hardcode_into_libs
39059
39060# Compile-time system search path for libraries.
39061sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39062
39063# Run-time system search path for libraries.
39064sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39065
39066# Whether dlopen is supported.
39067dlopen_support=$enable_dlopen
39068
39069# Whether dlopen of programs is supported.
39070dlopen_self=$enable_dlopen_self
39071
39072# Whether dlopen of statically linked programs is supported.
39073dlopen_self_static=$enable_dlopen_self_static
39074
39075# Commands to strip libraries.
39076old_striplib=$lt_old_striplib
39077striplib=$lt_striplib
39078
39079
39080# The linker used to build libraries.
39081LD=$lt_LD
39082
cristy0c60a692010-11-04 01:09:47 +000039083# How to create reloadable object files.
39084reload_flag=$lt_reload_flag
39085reload_cmds=$lt_reload_cmds
39086
cristy73bd4a52010-10-05 11:24:23 +000039087# Commands used to build an old-style archive.
39088old_archive_cmds=$lt_old_archive_cmds
39089
39090# A language specific compiler.
39091CC=$lt_compiler
39092
39093# Is the compiler the GNU compiler?
39094with_gcc=$GCC
39095
39096# Compiler flag to turn off builtin functions.
39097no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39098
cristy73bd4a52010-10-05 11:24:23 +000039099# Additional compiler flags for building library objects.
39100pic_flag=$lt_lt_prog_compiler_pic
39101
cristyda16f162011-02-19 23:52:17 +000039102# How to pass a linker flag through the compiler.
39103wl=$lt_lt_prog_compiler_wl
39104
cristy73bd4a52010-10-05 11:24:23 +000039105# Compiler flag to prevent dynamic linking.
39106link_static_flag=$lt_lt_prog_compiler_static
39107
39108# Does compiler simultaneously support -c and -o options?
39109compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39110
39111# Whether or not to add -lc for building shared libraries.
39112build_libtool_need_lc=$archive_cmds_need_lc
39113
39114# Whether or not to disallow shared libs when runtime libs are static.
39115allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39116
39117# Compiler flag to allow reflexive dlopens.
39118export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39119
39120# Compiler flag to generate shared objects directly from archives.
39121whole_archive_flag_spec=$lt_whole_archive_flag_spec
39122
39123# Whether the compiler copes with passing no objects directly.
39124compiler_needs_object=$lt_compiler_needs_object
39125
39126# Create an old-style archive from a shared archive.
39127old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39128
39129# Create a temporary old-style archive to link instead of a shared archive.
39130old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39131
39132# Commands used to build a shared archive.
39133archive_cmds=$lt_archive_cmds
39134archive_expsym_cmds=$lt_archive_expsym_cmds
39135
39136# Commands used to build a loadable module if different from building
39137# a shared archive.
39138module_cmds=$lt_module_cmds
39139module_expsym_cmds=$lt_module_expsym_cmds
39140
39141# Whether we are building with GNU ld or not.
39142with_gnu_ld=$lt_with_gnu_ld
39143
39144# Flag that allows shared libraries with undefined symbols to be built.
39145allow_undefined_flag=$lt_allow_undefined_flag
39146
39147# Flag that enforces no undefined symbols.
39148no_undefined_flag=$lt_no_undefined_flag
39149
39150# Flag to hardcode \$libdir into a binary during linking.
39151# This must work even if \$libdir does not exist
39152hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39153
cristy73bd4a52010-10-05 11:24:23 +000039154# Whether we need a single "-rpath" flag with a separated argument.
39155hardcode_libdir_separator=$lt_hardcode_libdir_separator
39156
39157# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39158# DIR into the resulting binary.
39159hardcode_direct=$hardcode_direct
39160
39161# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39162# DIR into the resulting binary and the resulting library dependency is
39163# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39164# library is relocated.
39165hardcode_direct_absolute=$hardcode_direct_absolute
39166
39167# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39168# into the resulting binary.
39169hardcode_minus_L=$hardcode_minus_L
39170
39171# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39172# into the resulting binary.
39173hardcode_shlibpath_var=$hardcode_shlibpath_var
39174
39175# Set to "yes" if building a shared library automatically hardcodes DIR
39176# into the library and all subsequent libraries and executables linked
39177# against it.
39178hardcode_automatic=$hardcode_automatic
39179
39180# Set to yes if linker adds runtime paths of dependent libraries
39181# to runtime path list.
39182inherit_rpath=$inherit_rpath
39183
39184# Whether libtool must link a program against all its dependency libraries.
39185link_all_deplibs=$link_all_deplibs
39186
cristy73bd4a52010-10-05 11:24:23 +000039187# Set to "yes" if exported symbols are required.
39188always_export_symbols=$always_export_symbols
39189
39190# The commands to list exported symbols.
39191export_symbols_cmds=$lt_export_symbols_cmds
39192
39193# Symbols that should not be listed in the preloaded symbols.
39194exclude_expsyms=$lt_exclude_expsyms
39195
39196# Symbols that must always be exported.
39197include_expsyms=$lt_include_expsyms
39198
39199# Commands necessary for linking programs (against libraries) with templates.
39200prelink_cmds=$lt_prelink_cmds
39201
cristyda16f162011-02-19 23:52:17 +000039202# Commands necessary for finishing linking programs.
39203postlink_cmds=$lt_postlink_cmds
39204
cristy73bd4a52010-10-05 11:24:23 +000039205# Specify filename containing input files.
39206file_list_spec=$lt_file_list_spec
39207
39208# How to hardcode a shared library path into an executable.
39209hardcode_action=$hardcode_action
39210
39211# The directories searched by this compiler when creating a shared library.
39212compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39213
39214# Dependencies to place before and after the objects being linked to
39215# create a shared library.
39216predep_objects=$lt_predep_objects
39217postdep_objects=$lt_postdep_objects
39218predeps=$lt_predeps
39219postdeps=$lt_postdeps
39220
39221# The library search path used internally by the compiler when linking
39222# a shared library.
39223compiler_lib_search_path=$lt_compiler_lib_search_path
39224
39225# ### END LIBTOOL CONFIG
39226
39227_LT_EOF
39228
39229 case $host_os in
39230 aix3*)
39231 cat <<\_LT_EOF >> "$cfgfile"
39232# AIX sometimes has problems with the GCC collect2 program. For some
39233# reason, if we set the COLLECT_NAMES environment variable, the problems
39234# vanish in a puff of smoke.
39235if test "X${COLLECT_NAMES+set}" != Xset; then
39236 COLLECT_NAMES=
39237 export COLLECT_NAMES
39238fi
39239_LT_EOF
39240 ;;
39241 esac
39242
39243
39244ltmain="$ac_aux_dir/ltmain.sh"
39245
39246
39247 # We use sed instead of cat because bash on DJGPP gets confused if
39248 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39249 # text mode, it properly converts lines to CR/LF. This bash problem
39250 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000039251 sed '$q' "$ltmain" >> "$cfgfile" \
39252 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000039253
cristyda16f162011-02-19 23:52:17 +000039254 if test x"$xsi_shell" = xyes; then
39255 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39256func_dirname ()\
39257{\
39258\ case ${1} in\
39259\ */*) func_dirname_result="${1%/*}${2}" ;;\
39260\ * ) func_dirname_result="${3}" ;;\
39261\ esac\
39262} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39263 && mv -f "$cfgfile.tmp" "$cfgfile" \
39264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39265test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039266
39267
cristyda16f162011-02-19 23:52:17 +000039268 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39269func_basename ()\
39270{\
39271\ func_basename_result="${1##*/}"\
39272} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39273 && mv -f "$cfgfile.tmp" "$cfgfile" \
39274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39275test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039276
39277
cristyda16f162011-02-19 23:52:17 +000039278 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39279func_dirname_and_basename ()\
39280{\
39281\ case ${1} in\
39282\ */*) func_dirname_result="${1%/*}${2}" ;;\
39283\ * ) func_dirname_result="${3}" ;;\
39284\ esac\
39285\ func_basename_result="${1##*/}"\
39286} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39287 && mv -f "$cfgfile.tmp" "$cfgfile" \
39288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39289test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000039290
cristyda16f162011-02-19 23:52:17 +000039291
39292 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39293func_stripname ()\
39294{\
39295\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39296\ # positional parameters, so assign one to ordinary parameter first.\
39297\ func_stripname_result=${3}\
39298\ func_stripname_result=${func_stripname_result#"${1}"}\
39299\ func_stripname_result=${func_stripname_result%"${2}"}\
39300} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39301 && mv -f "$cfgfile.tmp" "$cfgfile" \
39302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39303test 0 -eq $? || _lt_function_replace_fail=:
39304
39305
39306 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39307func_split_long_opt ()\
39308{\
39309\ func_split_long_opt_name=${1%%=*}\
39310\ func_split_long_opt_arg=${1#*=}\
39311} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39312 && mv -f "$cfgfile.tmp" "$cfgfile" \
39313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39314test 0 -eq $? || _lt_function_replace_fail=:
39315
39316
39317 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39318func_split_short_opt ()\
39319{\
39320\ func_split_short_opt_arg=${1#??}\
39321\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39322} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39323 && mv -f "$cfgfile.tmp" "$cfgfile" \
39324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39325test 0 -eq $? || _lt_function_replace_fail=:
39326
39327
39328 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39329func_lo2o ()\
39330{\
39331\ case ${1} in\
39332\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39333\ *) func_lo2o_result=${1} ;;\
39334\ esac\
39335} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39336 && mv -f "$cfgfile.tmp" "$cfgfile" \
39337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39338test 0 -eq $? || _lt_function_replace_fail=:
39339
39340
39341 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39342func_xform ()\
39343{\
39344 func_xform_result=${1%.*}.lo\
39345} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39346 && mv -f "$cfgfile.tmp" "$cfgfile" \
39347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39348test 0 -eq $? || _lt_function_replace_fail=:
39349
39350
39351 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39352func_arith ()\
39353{\
39354 func_arith_result=$(( $* ))\
39355} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39356 && mv -f "$cfgfile.tmp" "$cfgfile" \
39357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39358test 0 -eq $? || _lt_function_replace_fail=:
39359
39360
39361 sed -e '/^func_len ()$/,/^} # func_len /c\
39362func_len ()\
39363{\
39364 func_len_result=${#1}\
39365} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39366 && mv -f "$cfgfile.tmp" "$cfgfile" \
39367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39368test 0 -eq $? || _lt_function_replace_fail=:
39369
39370fi
39371
39372if test x"$lt_shell_append" = xyes; then
39373 sed -e '/^func_append ()$/,/^} # func_append /c\
39374func_append ()\
39375{\
39376 eval "${1}+=\\${2}"\
39377} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39378 && mv -f "$cfgfile.tmp" "$cfgfile" \
39379 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39380test 0 -eq $? || _lt_function_replace_fail=:
39381
39382
39383 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39384func_append_quoted ()\
39385{\
39386\ func_quote_for_eval "${2}"\
39387\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39388} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39389 && mv -f "$cfgfile.tmp" "$cfgfile" \
39390 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39391test 0 -eq $? || _lt_function_replace_fail=:
39392
39393
39394 # Save a `func_append' function call where possible by direct use of '+='
39395 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39396 && mv -f "$cfgfile.tmp" "$cfgfile" \
39397 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39398 test 0 -eq $? || _lt_function_replace_fail=:
39399else
39400 # Save a `func_append' function call even when '+=' is not available
39401 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39402 && mv -f "$cfgfile.tmp" "$cfgfile" \
39403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39404 test 0 -eq $? || _lt_function_replace_fail=:
39405fi
39406
39407if test x"$_lt_function_replace_fail" = x":"; then
39408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39409$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39410fi
39411
39412
39413 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039414 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39415 chmod +x "$ofile"
39416
39417
39418 cat <<_LT_EOF >> "$ofile"
39419
39420# ### BEGIN LIBTOOL TAG CONFIG: CXX
39421
39422# The linker used to build libraries.
39423LD=$lt_LD_CXX
39424
cristy0c60a692010-11-04 01:09:47 +000039425# How to create reloadable object files.
39426reload_flag=$lt_reload_flag_CXX
39427reload_cmds=$lt_reload_cmds_CXX
39428
cristy73bd4a52010-10-05 11:24:23 +000039429# Commands used to build an old-style archive.
39430old_archive_cmds=$lt_old_archive_cmds_CXX
39431
39432# A language specific compiler.
39433CC=$lt_compiler_CXX
39434
39435# Is the compiler the GNU compiler?
39436with_gcc=$GCC_CXX
39437
39438# Compiler flag to turn off builtin functions.
39439no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39440
cristy73bd4a52010-10-05 11:24:23 +000039441# Additional compiler flags for building library objects.
39442pic_flag=$lt_lt_prog_compiler_pic_CXX
39443
cristyda16f162011-02-19 23:52:17 +000039444# How to pass a linker flag through the compiler.
39445wl=$lt_lt_prog_compiler_wl_CXX
39446
cristy73bd4a52010-10-05 11:24:23 +000039447# Compiler flag to prevent dynamic linking.
39448link_static_flag=$lt_lt_prog_compiler_static_CXX
39449
39450# Does compiler simultaneously support -c and -o options?
39451compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39452
39453# Whether or not to add -lc for building shared libraries.
39454build_libtool_need_lc=$archive_cmds_need_lc_CXX
39455
39456# Whether or not to disallow shared libs when runtime libs are static.
39457allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39458
39459# Compiler flag to allow reflexive dlopens.
39460export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39461
39462# Compiler flag to generate shared objects directly from archives.
39463whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39464
39465# Whether the compiler copes with passing no objects directly.
39466compiler_needs_object=$lt_compiler_needs_object_CXX
39467
39468# Create an old-style archive from a shared archive.
39469old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39470
39471# Create a temporary old-style archive to link instead of a shared archive.
39472old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39473
39474# Commands used to build a shared archive.
39475archive_cmds=$lt_archive_cmds_CXX
39476archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39477
39478# Commands used to build a loadable module if different from building
39479# a shared archive.
39480module_cmds=$lt_module_cmds_CXX
39481module_expsym_cmds=$lt_module_expsym_cmds_CXX
39482
39483# Whether we are building with GNU ld or not.
39484with_gnu_ld=$lt_with_gnu_ld_CXX
39485
39486# Flag that allows shared libraries with undefined symbols to be built.
39487allow_undefined_flag=$lt_allow_undefined_flag_CXX
39488
39489# Flag that enforces no undefined symbols.
39490no_undefined_flag=$lt_no_undefined_flag_CXX
39491
39492# Flag to hardcode \$libdir into a binary during linking.
39493# This must work even if \$libdir does not exist
39494hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39495
cristy73bd4a52010-10-05 11:24:23 +000039496# Whether we need a single "-rpath" flag with a separated argument.
39497hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39498
39499# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39500# DIR into the resulting binary.
39501hardcode_direct=$hardcode_direct_CXX
39502
39503# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
39504# DIR into the resulting binary and the resulting library dependency is
39505# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
39506# library is relocated.
39507hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39508
39509# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39510# into the resulting binary.
39511hardcode_minus_L=$hardcode_minus_L_CXX
39512
39513# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39514# into the resulting binary.
39515hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39516
39517# Set to "yes" if building a shared library automatically hardcodes DIR
39518# into the library and all subsequent libraries and executables linked
39519# against it.
39520hardcode_automatic=$hardcode_automatic_CXX
39521
39522# Set to yes if linker adds runtime paths of dependent libraries
39523# to runtime path list.
39524inherit_rpath=$inherit_rpath_CXX
39525
39526# Whether libtool must link a program against all its dependency libraries.
39527link_all_deplibs=$link_all_deplibs_CXX
39528
cristy73bd4a52010-10-05 11:24:23 +000039529# Set to "yes" if exported symbols are required.
39530always_export_symbols=$always_export_symbols_CXX
39531
39532# The commands to list exported symbols.
39533export_symbols_cmds=$lt_export_symbols_cmds_CXX
39534
39535# Symbols that should not be listed in the preloaded symbols.
39536exclude_expsyms=$lt_exclude_expsyms_CXX
39537
39538# Symbols that must always be exported.
39539include_expsyms=$lt_include_expsyms_CXX
39540
39541# Commands necessary for linking programs (against libraries) with templates.
39542prelink_cmds=$lt_prelink_cmds_CXX
39543
cristyda16f162011-02-19 23:52:17 +000039544# Commands necessary for finishing linking programs.
39545postlink_cmds=$lt_postlink_cmds_CXX
39546
cristy73bd4a52010-10-05 11:24:23 +000039547# Specify filename containing input files.
39548file_list_spec=$lt_file_list_spec_CXX
39549
39550# How to hardcode a shared library path into an executable.
39551hardcode_action=$hardcode_action_CXX
39552
39553# The directories searched by this compiler when creating a shared library.
39554compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39555
39556# Dependencies to place before and after the objects being linked to
39557# create a shared library.
39558predep_objects=$lt_predep_objects_CXX
39559postdep_objects=$lt_postdep_objects_CXX
39560predeps=$lt_predeps_CXX
39561postdeps=$lt_postdeps_CXX
39562
39563# The library search path used internally by the compiler when linking
39564# a shared library.
39565compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39566
39567# ### END LIBTOOL TAG CONFIG: CXX
39568_LT_EOF
39569
39570 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039571 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039572 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039573 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039574 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39575 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39576
39577 esac
39578done # for ac_tag
39579
39580
cristy8b350f62009-11-15 23:12:43 +000039581as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039582_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039583ac_clean_files=$ac_clean_files_save
39584
39585test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039586 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039587
39588
39589# configure is writing to config.log, and then calls config.status.
39590# config.status does its own redirection, appending to config.log.
39591# Unfortunately, on DOS this fails, as config.log is still kept open
39592# by configure, so config.status won't be able to write to it; its
39593# output is simply discarded. So we exec the FD to /dev/null,
39594# effectively closing config.log, so it can be properly (re)opened and
39595# appended to by config.status. When coming back to configure, we
39596# need to make the FD available again.
39597if test "$no_create" != yes; then
39598 ac_cs_success=:
39599 ac_config_status_args=
39600 test "$silent" = yes &&
39601 ac_config_status_args="$ac_config_status_args --quiet"
39602 exec 5>/dev/null
39603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39604 exec 5>>config.log
39605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39606 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039607 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039608fi
39609if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039611$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39612fi
39613
39614
cristy9af1cbf2014-12-28 22:03:09 +000039615# ==============================================================================
39616# ImageMagick Configuration
39617# ==============================================================================
39618{ $as_echo "$as_me:${as_lineno-$LINENO}:
39619==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039620ImageMagick is configured as follows. Please verify that this configuration
39621matches your expectations.
39622
cristy9af1cbf2014-12-28 22:03:09 +000039623 Host system type: $host
39624 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039625
39626 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039627 ------------------------------------------------------------------------------
39628 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39629 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39630 Module support --with-modules=$build_modules $build_modules
39631 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39632 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39633 High Dynamic Range Imagery
39634 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039635
cristy9af1cbf2014-12-28 22:03:09 +000039636 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039637
cristy9af1cbf2014-12-28 22:03:09 +000039638 Delegate Library Configuration:
39639 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39640 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39641 DJVU --with-djvu=$with_djvu $have_djvu
39642 DPS --with-dps=$with_dps $have_dps
39643 FFTW --with-fftw=$with_fftw $have_fftw
39644 FlashPIX --with-fpx=$with_fpx $have_fpx
39645 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39646 FreeType --with-freetype=$with_freetype $have_freetype
39647 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39648 Graphviz --with-gvc=$with_gvc $have_gvc
39649 JBIG --with-jbig=$with_jbig $have_jbig
39650 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39651 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39652 LCMS v1 --with-lcms=$with_lcms $have_lcms
39653 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39654 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39655 LQR --with-lqr=$with_lqr $have_lqr
39656 LTDL --with-ltdl=$with_ltdl $have_ltdl
39657 LZMA --with-lzma=$with_lzma $have_lzma
39658 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39659 OpenEXR --with-openexr=$with_openexr $have_openexr
39660 PANGO --with-pango=$with_pango $have_pango
39661 PERL --with-perl=$with_perl $have_perl
39662 PNG --with-png=$with_png $have_png
39663 RSVG --with-rsvg=$with_rsvg $have_rsvg
39664 TIFF --with-tiff=$with_tiff $have_tiff
39665 WEBP --with-webp=$with_webp $have_webp
39666 WMF --with-wmf=$with_wmf $have_wmf
39667 X11 --with-x=$with_x $have_x
39668 XML --with-xml=$with_xml $have_xml
39669 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039670
cristy9af1cbf2014-12-28 22:03:09 +000039671 Delegate Program Configuration:
39672 GhostPCL None $PCLDelegate ($PCLVersion)
39673 GhostXPS None $XPSDelegate ($XPSVersion)
39674 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039675
cristy9af1cbf2014-12-28 22:03:09 +000039676 Font Configuration:
39677 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39678 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39679 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39680 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039681
cristy9af1cbf2014-12-28 22:03:09 +000039682 X11 Configuration:
39683 X_CFLAGS = $X_CFLAGS
39684 X_PRE_LIBS = $X_PRE_LIBS
39685 X_LIBS = $X_LIBS
39686 X_EXTRA_LIBS = $X_EXTRA_LIBS
39687
39688 Options used to compile and link:
39689 PREFIX = $PREFIX_DIR
39690 EXEC-PREFIX = $EXEC_PREFIX_DIR
39691 VERSION = $PACKAGE_VERSION
39692 CC = $CC
39693 CFLAGS = $CFLAGS
39694 CPPFLAGS = $CPPFLAGS
39695 PCFLAGS = $PCFLAGS
39696 DEFS = $DEFS
39697 LDFLAGS = $LDFLAGS
39698 LIBS = $LIBS
39699 CXX = $CXX
39700 CXXFLAGS = $CXXFLAGS
39701 FEATURES = $MAGICK_FEATURES
39702 DELEGATES = $MAGICK_DELEGATES
39703==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039704" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039705$as_echo "$as_me:
39706==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039707ImageMagick is configured as follows. Please verify that this configuration
39708matches your expectations.
39709
cristy9af1cbf2014-12-28 22:03:09 +000039710 Host system type: $host
39711 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039712
39713 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039714 ------------------------------------------------------------------------------
39715 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39716 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39717 Module support --with-modules=$build_modules $build_modules
39718 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39719 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39720 High Dynamic Range Imagery
39721 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039722
cristy9af1cbf2014-12-28 22:03:09 +000039723 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039724
cristy9af1cbf2014-12-28 22:03:09 +000039725 Delegate Library Configuration:
39726 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39727 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39728 DJVU --with-djvu=$with_djvu $have_djvu
39729 DPS --with-dps=$with_dps $have_dps
39730 FFTW --with-fftw=$with_fftw $have_fftw
39731 FlashPIX --with-fpx=$with_fpx $have_fpx
39732 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39733 FreeType --with-freetype=$with_freetype $have_freetype
39734 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39735 Graphviz --with-gvc=$with_gvc $have_gvc
39736 JBIG --with-jbig=$with_jbig $have_jbig
39737 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39738 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
39739 LCMS v1 --with-lcms=$with_lcms $have_lcms
39740 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
39741 LIBJPEG2 --with-openjp2=$with_openjp2 $have_openjp2
39742 LQR --with-lqr=$with_lqr $have_lqr
39743 LTDL --with-ltdl=$with_ltdl $have_ltdl
39744 LZMA --with-lzma=$with_lzma $have_lzma
39745 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39746 OpenEXR --with-openexr=$with_openexr $have_openexr
39747 PANGO --with-pango=$with_pango $have_pango
39748 PERL --with-perl=$with_perl $have_perl
39749 PNG --with-png=$with_png $have_png
39750 RSVG --with-rsvg=$with_rsvg $have_rsvg
39751 TIFF --with-tiff=$with_tiff $have_tiff
39752 WEBP --with-webp=$with_webp $have_webp
39753 WMF --with-wmf=$with_wmf $have_wmf
39754 X11 --with-x=$with_x $have_x
39755 XML --with-xml=$with_xml $have_xml
39756 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039757
cristy9af1cbf2014-12-28 22:03:09 +000039758 Delegate Program Configuration:
39759 GhostPCL None $PCLDelegate ($PCLVersion)
39760 GhostXPS None $XPSDelegate ($XPSVersion)
39761 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039762
cristy9af1cbf2014-12-28 22:03:09 +000039763 Font Configuration:
39764 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39765 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39766 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39767 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039768
cristy9af1cbf2014-12-28 22:03:09 +000039769 X11 Configuration:
39770 X_CFLAGS = $X_CFLAGS
39771 X_PRE_LIBS = $X_PRE_LIBS
39772 X_LIBS = $X_LIBS
39773 X_EXTRA_LIBS = $X_EXTRA_LIBS
39774
39775 Options used to compile and link:
39776 PREFIX = $PREFIX_DIR
39777 EXEC-PREFIX = $EXEC_PREFIX_DIR
39778 VERSION = $PACKAGE_VERSION
39779 CC = $CC
39780 CFLAGS = $CFLAGS
39781 CPPFLAGS = $CPPFLAGS
39782 PCFLAGS = $PCFLAGS
39783 DEFS = $DEFS
39784 LDFLAGS = $LDFLAGS
39785 LIBS = $LIBS
39786 CXX = $CXX
39787 CXXFLAGS = $CXXFLAGS
39788 FEATURES = $MAGICK_FEATURES
39789 DELEGATES = $MAGICK_DELEGATES
39790==============================================================================
39791" >&6;}