aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/configure
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-04 18:41:13 +1000
committerDavid Walter Seikel2012-01-04 18:41:13 +1000
commitdd7595a3475407a7fa96a97393bae8c5220e8762 (patch)
treee341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/configure
parentAdd the skeleton. (diff)
downloadSledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to '')
-rwxr-xr-xlibraries/evas/configure35597
-rw-r--r--libraries/evas/configure.ac2082
2 files changed, 37679 insertions, 0 deletions
diff --git a/libraries/evas/configure b/libraries/evas/configure
new file mode 100755
index 0000000..df1fca7
--- /dev/null
+++ b/libraries/evas/configure
@@ -0,0 +1,35597 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for evas 1.1.0.
4#
5# Report bugs to <enlightenment-devel@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: enlightenment-devel@lists.sourceforge.net about your
235$0: system, including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373 fi
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='evas'
703PACKAGE_TARNAME='evas'
704PACKAGE_VERSION='1.1.0'
705PACKAGE_STRING='evas 1.1.0'
706PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net'
707PACKAGE_URL=''
708
709ac_unique_file="configure.ac"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
713#ifdef HAVE_SYS_TYPES_H
714# include <sys/types.h>
715#endif
716#ifdef HAVE_SYS_STAT_H
717# include <sys/stat.h>
718#endif
719#ifdef STDC_HEADERS
720# include <stdlib.h>
721# include <stddef.h>
722#else
723# ifdef HAVE_STDLIB_H
724# include <stdlib.h>
725# endif
726#endif
727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729# include <memory.h>
730# endif
731# include <string.h>
732#endif
733#ifdef HAVE_STRINGS_H
734# include <strings.h>
735#endif
736#ifdef HAVE_INTTYPES_H
737# include <inttypes.h>
738#endif
739#ifdef HAVE_STDINT_H
740# include <stdint.h>
741#endif
742#ifdef HAVE_UNISTD_H
743# include <unistd.h>
744#endif"
745
746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
749LIBOBJS
750requirement_evas
751pthread_libs
752pthread_cflags
753altivec_cflags
754EVAS_LIBS
755EVAS_CFLAGS
756EFL_ENABLE_COVERAGE_FALSE
757EFL_ENABLE_COVERAGE_TRUE
758EFL_COVERAGE_LIBS
759EFL_COVERAGE_CFLAGS
760have_lcov
761EFL_ENABLE_TESTS_FALSE
762EFL_ENABLE_TESTS_TRUE
763CHECK_LIBS
764CHECK_CFLAGS
765BUILD_EXAMPLES_FALSE
766BUILD_EXAMPLES_TRUE
767edje_cc
768EDJE_LIBS
769EDJE_CFLAGS
770ECORE_EVAS_LIBS
771ECORE_EVAS_CFLAGS
772INSTALL_EXAMPLES_FALSE
773INSTALL_EXAMPLES_TRUE
774VALGRIND_LIBS
775VALGRIND_CFLAGS
776METRIC_CACHE_FALSE
777METRIC_CACHE_TRUE
778WORD_CACHE_FALSE
779WORD_CACHE_TRUE
780EVAS_MAGIC_DEBUG_FALSE
781EVAS_MAGIC_DEBUG_TRUE
782EVAS_SSE3_CFLAGS
783XEXT_LIBS
784XEXT_CFLAGS
785EVAS_STATIC_BUILD_GENERIC_FALSE
786EVAS_STATIC_BUILD_GENERIC_TRUE
787BUILD_LOADER_GENERIC_FALSE
788BUILD_LOADER_GENERIC_TRUE
789evas_image_loader_generic_libs
790evas_image_loader_generic_cflags
791EVAS_STATIC_BUILD_PSD_FALSE
792EVAS_STATIC_BUILD_PSD_TRUE
793BUILD_LOADER_PSD_FALSE
794BUILD_LOADER_PSD_TRUE
795evas_image_loader_psd_libs
796evas_image_loader_psd_cflags
797EVAS_STATIC_BUILD_ICO_FALSE
798EVAS_STATIC_BUILD_ICO_TRUE
799BUILD_LOADER_ICO_FALSE
800BUILD_LOADER_ICO_TRUE
801evas_image_loader_ico_libs
802evas_image_loader_ico_cflags
803EVAS_STATIC_BUILD_WBMP_FALSE
804EVAS_STATIC_BUILD_WBMP_TRUE
805BUILD_LOADER_WBMP_FALSE
806BUILD_LOADER_WBMP_TRUE
807evas_image_loader_wbmp_libs
808evas_image_loader_wbmp_cflags
809EVAS_STATIC_BUILD_TGA_FALSE
810EVAS_STATIC_BUILD_TGA_TRUE
811BUILD_LOADER_TGA_FALSE
812BUILD_LOADER_TGA_TRUE
813evas_image_loader_tga_libs
814evas_image_loader_tga_cflags
815EVAS_STATIC_BUILD_BMP_FALSE
816EVAS_STATIC_BUILD_BMP_TRUE
817BUILD_LOADER_BMP_FALSE
818BUILD_LOADER_BMP_TRUE
819evas_image_loader_bmp_libs
820evas_image_loader_bmp_cflags
821EVAS_STATIC_BUILD_XPM_FALSE
822EVAS_STATIC_BUILD_XPM_TRUE
823BUILD_LOADER_XPM_FALSE
824BUILD_LOADER_XPM_TRUE
825evas_image_loader_xpm_libs
826evas_image_loader_xpm_cflags
827EVAS_STATIC_BUILD_TIFF_FALSE
828EVAS_STATIC_BUILD_TIFF_TRUE
829BUILD_LOADER_TIFF_FALSE
830BUILD_LOADER_TIFF_TRUE
831evas_image_loader_tiff_libs
832evas_image_loader_tiff_cflags
833EVAS_STATIC_BUILD_SVG_FALSE
834EVAS_STATIC_BUILD_SVG_TRUE
835BUILD_LOADER_SVG_FALSE
836BUILD_LOADER_SVG_TRUE
837evas_image_loader_svg_libs
838evas_image_loader_svg_cflags
839SVG_LIBS
840SVG_CFLAGS
841EVAS_STATIC_BUILD_PNG_FALSE
842EVAS_STATIC_BUILD_PNG_TRUE
843BUILD_LOADER_PNG_FALSE
844BUILD_LOADER_PNG_TRUE
845evas_image_loader_png_libs
846evas_image_loader_png_cflags
847PNG_LIBS
848PNG_CFLAGS
849EVAS_STATIC_BUILD_PMAPS_FALSE
850EVAS_STATIC_BUILD_PMAPS_TRUE
851BUILD_LOADER_PMAPS_FALSE
852BUILD_LOADER_PMAPS_TRUE
853evas_image_loader_pmaps_libs
854evas_image_loader_pmaps_cflags
855BUILD_SAVER_JPEG_FALSE
856BUILD_SAVER_JPEG_TRUE
857EVAS_STATIC_BUILD_JPEG_FALSE
858EVAS_STATIC_BUILD_JPEG_TRUE
859BUILD_LOADER_JPEG_FALSE
860BUILD_LOADER_JPEG_TRUE
861evas_image_loader_jpeg_libs
862evas_image_loader_jpeg_cflags
863EVAS_STATIC_BUILD_GIF_FALSE
864EVAS_STATIC_BUILD_GIF_TRUE
865BUILD_LOADER_GIF_FALSE
866BUILD_LOADER_GIF_TRUE
867evas_image_loader_gif_libs
868evas_image_loader_gif_cflags
869EVAS_STATIC_BUILD_EET_FALSE
870EVAS_STATIC_BUILD_EET_TRUE
871BUILD_LOADER_EET_FALSE
872BUILD_LOADER_EET_TRUE
873evas_image_loader_eet_libs
874evas_image_loader_eet_cflags
875EET_LIBS
876EET_CFLAGS
877EVAS_STATIC_BUILD_EDB_FALSE
878EVAS_STATIC_BUILD_EDB_TRUE
879BUILD_LOADER_EDB_FALSE
880BUILD_LOADER_EDB_TRUE
881evas_image_loader_edb_libs
882evas_image_loader_edb_cflags
883EDB_LIBS
884EDB_CFLAGS
885EVAS_STATIC_BUILD_SOFTWARE_8_FALSE
886EVAS_STATIC_BUILD_SOFTWARE_8_TRUE
887BUILD_ENGINE_SOFTWARE_8_FALSE
888BUILD_ENGINE_SOFTWARE_8_TRUE
889EVAS_STATIC_BUILD_SOFTWARE_16_FALSE
890EVAS_STATIC_BUILD_SOFTWARE_16_TRUE
891BUILD_ENGINE_SOFTWARE_16_FALSE
892BUILD_ENGINE_SOFTWARE_16_TRUE
893EVAS_STATIC_BUILD_GL_COMMON_FALSE
894EVAS_STATIC_BUILD_GL_COMMON_TRUE
895BUILD_ENGINE_GL_COMMON_FALSE
896BUILD_ENGINE_GL_COMMON_TRUE
897evas_engine_gl_common_libs
898have_evas_engine_gl_x11
899EVAS_STATIC_BUILD_GL_X11_FALSE
900EVAS_STATIC_BUILD_GL_X11_TRUE
901BUILD_ENGINE_GL_X11_FALSE
902BUILD_ENGINE_GL_X11_TRUE
903have_evas_engine_gl_xlib
904EVAS_STATIC_BUILD_GL_XLIB_FALSE
905EVAS_STATIC_BUILD_GL_XLIB_TRUE
906BUILD_ENGINE_GL_XLIB_FALSE
907BUILD_ENGINE_GL_XLIB_TRUE
908evas_engine_gl_xlib_libs
909evas_engine_gl_xlib_cflags
910have_evas_engine_gl_xcb
911EVAS_STATIC_BUILD_GL_XCB_FALSE
912EVAS_STATIC_BUILD_GL_XCB_TRUE
913BUILD_ENGINE_GL_XCB_FALSE
914BUILD_ENGINE_GL_XCB_TRUE
915evas_engine_gl_xcb_libs
916evas_engine_gl_xcb_cflags
917XCB_GL_LIBS
918XCB_GL_CFLAGS
919have_evas_engine_software_x11
920EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE
921EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE
922BUILD_ENGINE_SOFTWARE_X11_FALSE
923BUILD_ENGINE_SOFTWARE_X11_TRUE
924have_evas_engine_software_xlib
925have_evas_engine_software_xcb
926EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE
927EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE
928BUILD_ENGINE_SOFTWARE_XLIB_FALSE
929BUILD_ENGINE_SOFTWARE_XLIB_TRUE
930evas_engine_software_xlib_libs
931evas_engine_software_xlib_cflags
932EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE
933EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE
934BUILD_ENGINE_SOFTWARE_XCB_FALSE
935BUILD_ENGINE_SOFTWARE_XCB_TRUE
936evas_engine_software_xcb_libs
937evas_engine_software_xcb_cflags
938EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE
939EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE
940EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE
941EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE
942BUILD_ENGINE_SOFTWARE_16_SDL_FALSE
943BUILD_ENGINE_SOFTWARE_16_SDL_TRUE
944evas_engine_software_16_sdl_libs
945evas_engine_software_16_sdl_cflags
946EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE
947EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE
948BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE
949BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE
950evas_engine_software_16_wince_libs
951evas_engine_software_16_wince_cflags
952EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE
953EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE
954BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE
955BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE
956evas_engine_software_16_ddraw_libs
957evas_engine_software_16_ddraw_cflags
958EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE
959EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE
960BUILD_ENGINE_SOFTWARE_16_X11_FALSE
961BUILD_ENGINE_SOFTWARE_16_X11_TRUE
962evas_engine_software_16_x11_libs
963evas_engine_software_16_x11_cflags
964X_EXTRA_LIBS
965X_LIBS
966X_PRE_LIBS
967X_CFLAGS
968XMKMF
969EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE
970EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE
971BUILD_ENGINE_SOFTWARE_8_X11_FALSE
972BUILD_ENGINE_SOFTWARE_8_X11_TRUE
973evas_engine_software_8_x11_libs
974evas_engine_software_8_x11_cflags
975XCB_LIBS
976XCB_CFLAGS
977EVAS_STATIC_BUILD_DIRECTFB_FALSE
978EVAS_STATIC_BUILD_DIRECTFB_TRUE
979BUILD_ENGINE_DIRECTFB_FALSE
980BUILD_ENGINE_DIRECTFB_TRUE
981evas_engine_directfb_libs
982evas_engine_directfb_cflags
983DIRECTFB_LIBS
984DIRECTFB_CFLAGS
985EVAS_STATIC_BUILD_FB_FALSE
986EVAS_STATIC_BUILD_FB_TRUE
987BUILD_ENGINE_FB_FALSE
988BUILD_ENGINE_FB_TRUE
989evas_engine_fb_libs
990evas_engine_fb_cflags
991EVAS_STATIC_BUILD_GL_COCOA_FALSE
992EVAS_STATIC_BUILD_GL_COCOA_TRUE
993BUILD_ENGINE_GL_COCOA_FALSE
994BUILD_ENGINE_GL_COCOA_TRUE
995evas_engine_gl_cocoa_libs
996evas_engine_gl_cocoa_cflags
997GL_EET_LIBS
998GL_EET_CFLAGS
999EVAS_STATIC_BUILD_GL_SDL_FALSE
1000EVAS_STATIC_BUILD_GL_SDL_TRUE
1001BUILD_ENGINE_GL_SDL_FALSE
1002BUILD_ENGINE_GL_SDL_TRUE
1003evas_engine_gl_sdl_libs
1004evas_engine_gl_sdl_cflags
1005EVAS_STATIC_BUILD_PSL1GHT_FALSE
1006EVAS_STATIC_BUILD_PSL1GHT_TRUE
1007BUILD_ENGINE_PSL1GHT_FALSE
1008BUILD_ENGINE_PSL1GHT_TRUE
1009evas_engine_psl1ght_libs
1010evas_engine_psl1ght_cflags
1011EVAS_STATIC_BUILD_SOFTWARE_SDL_FALSE
1012EVAS_STATIC_BUILD_SOFTWARE_SDL_TRUE
1013BUILD_ENGINE_SOFTWARE_SDL_FALSE
1014BUILD_ENGINE_SOFTWARE_SDL_TRUE
1015evas_engine_software_sdl_libs
1016evas_engine_software_sdl_cflags
1017SDL_LIBS
1018SDL_CFLAGS
1019EVAS_STATIC_BUILD_DIRECT3D_FALSE
1020EVAS_STATIC_BUILD_DIRECT3D_TRUE
1021BUILD_ENGINE_DIRECT3D_FALSE
1022BUILD_ENGINE_DIRECT3D_TRUE
1023evas_engine_direct3d_libs
1024evas_engine_direct3d_cflags
1025EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE
1026EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE
1027BUILD_ENGINE_SOFTWARE_DDRAW_FALSE
1028BUILD_ENGINE_SOFTWARE_DDRAW_TRUE
1029evas_engine_software_ddraw_libs
1030evas_engine_software_ddraw_cflags
1031EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE
1032EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE
1033BUILD_ENGINE_SOFTWARE_GDI_FALSE
1034BUILD_ENGINE_SOFTWARE_GDI_TRUE
1035evas_engine_software_gdi_libs
1036evas_engine_software_gdi_cflags
1037EVAS_STATIC_BUILD_BUFFER_FALSE
1038EVAS_STATIC_BUILD_BUFFER_TRUE
1039BUILD_ENGINE_BUFFER_FALSE
1040BUILD_ENGINE_BUFFER_TRUE
1041evas_engine_buffer_libs
1042evas_engine_buffer_cflags
1043EVAS_CSERVE_FALSE
1044EVAS_CSERVE_TRUE
1045SHM_OPEN_LINK
1046dlopen_libs
1047EFL_FNMATCH_LIBS
1048ALLOCA
1049lt_enable_auto_import
1050WIN32_CFLAGS
1051WIN32_CPPFLAGS
1052PIXMAN_LIBS
1053PIXMAN_CFLAGS
1054HARFBUZZ_LIBS
1055HARFBUZZ_CFLAGS
1056FRIBIDI_LIBS
1057FRIBIDI_CFLAGS
1058LINEBREAK_LIBS
1059LINEBREAK_CFLAGS
1060EVAS_USE_LINEBREAK_FALSE
1061EVAS_USE_LINEBREAK_TRUE
1062FONTCONFIG_LIBS
1063FONTCONFIG_CFLAGS
1064FREETYPE_LIBS
1065FREETYPE_CFLAGS
1066EINA_LIBS
1067EINA_CFLAGS
1068EVIL_LIBS
1069EVIL_CFLAGS
1070EFL_BUILD_DOC_FALSE
1071EFL_BUILD_DOC_TRUE
1072efl_doxygen
1073efl_have_doxygen
1074pkgconfig_requires_private
1075PKG_CONFIG_LIBDIR
1076PKG_CONFIG_PATH
1077PKG_CONFIG
1078CXXCPP
1079am__fastdepCXX_FALSE
1080am__fastdepCXX_TRUE
1081CXXDEPMODE
1082ac_ct_CXX
1083CXXFLAGS
1084CXX
1085am__fastdepOBJC_FALSE
1086am__fastdepOBJC_TRUE
1087OBJCDEPMODE
1088ac_ct_OBJC
1089OBJCFLAGS
1090OBJC
1091MODULE_ARCH
1092VMAJ
1093release_info
1094version_info
1095OTOOL64
1096OTOOL
1097LIPO
1098NMEDIT
1099DSYMUTIL
1100lt_ECHO
1101RANLIB
1102AR
1103LN_S
1104NM
1105ac_ct_DUMPBIN
1106DUMPBIN
1107LD
1108FGREP
1109SED
1110LIBTOOL
1111OBJDUMP
1112DLLTOOL
1113AS
1114host_os
1115host_vendor
1116host_cpu
1117host
1118build_os
1119build_vendor
1120build_cpu
1121build
1122EGREP
1123GREP
1124CPP
1125am__fastdepCC_FALSE
1126am__fastdepCC_TRUE
1127CCDEPMODE
1128AMDEPBACKSLASH
1129AMDEP_FALSE
1130AMDEP_TRUE
1131am__quote
1132am__include
1133DEPDIR
1134OBJEXT
1135EXEEXT
1136ac_ct_CC
1137CPPFLAGS
1138LDFLAGS
1139CFLAGS
1140CC
1141AM_BACKSLASH
1142AM_DEFAULT_VERBOSITY
1143am__untar
1144am__tar
1145AMTAR
1146am__leading_dot
1147SET_MAKE
1148AWK
1149mkdir_p
1150MKDIR_P
1151INSTALL_STRIP_PROGRAM
1152STRIP
1153install_sh
1154MAKEINFO
1155AUTOHEADER
1156AUTOMAKE
1157AUTOCONF
1158ACLOCAL
1159VERSION
1160PACKAGE
1161CYGPATH_W
1162am__isrc
1163INSTALL_DATA
1164INSTALL_SCRIPT
1165INSTALL_PROGRAM
1166target_alias
1167host_alias
1168build_alias
1169LIBS
1170ECHO_T
1171ECHO_N
1172ECHO_C
1173DEFS
1174mandir
1175localedir
1176libdir
1177psdir
1178pdfdir
1179dvidir
1180htmldir
1181infodir
1182docdir
1183oldincludedir
1184includedir
1185localstatedir
1186sharedstatedir
1187sysconfdir
1188datadir
1189datarootdir
1190libexecdir
1191sbindir
1192bindir
1193program_transform_name
1194prefix
1195exec_prefix
1196PACKAGE_URL
1197PACKAGE_BUGREPORT
1198PACKAGE_STRING
1199PACKAGE_VERSION
1200PACKAGE_TARNAME
1201PACKAGE_NAME
1202PATH_SEPARATOR
1203SHELL'
1204ac_subst_files=''
1205ac_user_opts='
1206enable_option_checking
1207enable_silent_rules
1208enable_dependency_tracking
1209enable_shared
1210enable_static
1211with_pic
1212enable_fast_install
1213with_gnu_ld
1214enable_libtool_lock
1215enable_strict
1216enable_simple_x11
1217enable_doc
1218with_doxygen
1219enable_fontconfig
1220enable_liblinebreak
1221enable_fribidi
1222enable_harfbuzz
1223enable_pixman
1224enable_evas_cserve
1225enable_gl_flavor_gles
1226enable_gles_variety_sgx
1227enable_gles_variety_s3c6410
1228enable_buffer
1229enable_software_gdi
1230enable_software_ddraw
1231enable_direct3d
1232enable_software_sdl
1233enable_psl1ght
1234enable_gl_sdl
1235enable_gl_cocoa
1236enable_fb
1237enable_directfb
1238enable_software_8_x11
1239enable_software_16_x11
1240with_x
1241enable_software_16_ddraw
1242enable_software_16_wince
1243enable_software_16_sdl
1244enable_sdl_primitive
1245enable_static_software_generic
1246enable_software_xcb
1247enable_software_xlib
1248enable_gl_xcb
1249enable_gl_xlib
1250enable_static_software_16
1251enable_static_software_8
1252enable_image_loader_edb
1253enable_image_loader_eet
1254enable_font_loader_eet
1255enable_image_loader_gif
1256enable_image_loader_jpeg
1257enable_image_loader_pmaps
1258enable_image_loader_png
1259enable_image_loader_svg
1260enable_image_loader_tiff
1261enable_image_loader_xpm
1262enable_image_loader_bmp
1263enable_image_loader_tga
1264enable_image_loader_wbmp
1265enable_image_loader_ico
1266enable_image_loader_psd
1267enable_image_loader_generic
1268enable_pthreads
1269enable_pipe_render
1270enable_async_render
1271enable_async_events
1272enable_async_preload
1273enable_cpu_mmx
1274enable_cpu_sse
1275enable_cpu_sse3
1276enable_cpu_altivec
1277enable_cpu_neon
1278enable_cpu_c
1279enable_evas_magic_debug
1280enable_word_cache
1281enable_metric_cache
1282enable_scale_sample
1283enable_scale_smooth
1284enable_convert_yuv
1285enable_small_dither_mask
1286enable_line_dither_mask
1287enable_no_dither_mask
1288enable_convert_8_rgb_332
1289enable_convert_8_rgb_666
1290enable_convert_8_rgb_232
1291enable_convert_8_rgb_222
1292enable_convert_8_rgb_221
1293enable_convert_8_rgb_121
1294enable_convert_8_rgb_111
1295enable_convert_16_rgb_565
1296enable_convert_16_bgr_565
1297enable_convert_16_rgb_555
1298enable_convert_16_rgb_444
1299enable_convert_16_rgb_ipq
1300enable_convert_16_rgb_rot_0
1301enable_convert_16_rgb_rot_180
1302enable_convert_16_rgb_rot_270
1303enable_convert_16_rgb_rot_90
1304enable_convert_24_rgb_888
1305enable_convert_24_bgr_888
1306enable_convert_32_rgb_8888
1307enable_convert_32_rgbx_8888
1308enable_convert_32_bgr_8888
1309enable_convert_32_bgrx_8888
1310enable_convert_24_rgb_ezx
1311enable_convert_32_rgb_ezx
1312enable_convert_32_rgb_rot_0
1313enable_convert_32_rgb_rot_180
1314enable_convert_32_rgb_rot_270
1315enable_convert_32_rgb_rot_90
1316enable_convert_8_gry_1
1317enable_convert_8_gry_16
1318enable_convert_8_grayscale_64
1319enable_valgrind
1320enable_install_examples
1321enable_build_examples
1322enable_tests
1323enable_coverage
1324'
1325 ac_precious_vars='build_alias
1326host_alias
1327target_alias
1328CC
1329CFLAGS
1330LDFLAGS
1331LIBS
1332CPPFLAGS
1333CPP
1334OBJC
1335OBJCFLAGS
1336CXX
1337CXXFLAGS
1338CCC
1339CXXCPP
1340PKG_CONFIG
1341PKG_CONFIG_PATH
1342PKG_CONFIG_LIBDIR
1343EVIL_CFLAGS
1344EVIL_LIBS
1345EINA_CFLAGS
1346EINA_LIBS
1347FREETYPE_CFLAGS
1348FREETYPE_LIBS
1349FONTCONFIG_CFLAGS
1350FONTCONFIG_LIBS
1351FRIBIDI_CFLAGS
1352FRIBIDI_LIBS
1353HARFBUZZ_CFLAGS
1354HARFBUZZ_LIBS
1355PIXMAN_CFLAGS
1356PIXMAN_LIBS
1357SDL_CFLAGS
1358SDL_LIBS
1359GL_EET_CFLAGS
1360GL_EET_LIBS
1361DIRECTFB_CFLAGS
1362DIRECTFB_LIBS
1363XCB_CFLAGS
1364XCB_LIBS
1365XMKMF
1366XCB_GL_CFLAGS
1367XCB_GL_LIBS
1368EDB_CFLAGS
1369EDB_LIBS
1370EET_CFLAGS
1371EET_LIBS
1372PNG_CFLAGS
1373PNG_LIBS
1374SVG_CFLAGS
1375SVG_LIBS
1376XEXT_CFLAGS
1377XEXT_LIBS
1378VALGRIND_CFLAGS
1379VALGRIND_LIBS
1380ECORE_EVAS_CFLAGS
1381ECORE_EVAS_LIBS
1382EDJE_CFLAGS
1383EDJE_LIBS
1384CHECK_CFLAGS
1385CHECK_LIBS'
1386
1387
1388# Initialize some variables set by options.
1389ac_init_help=
1390ac_init_version=false
1391ac_unrecognized_opts=
1392ac_unrecognized_sep=
1393# The variables have the same names as the options, with
1394# dashes changed to underlines.
1395cache_file=/dev/null
1396exec_prefix=NONE
1397no_create=
1398no_recursion=
1399prefix=NONE
1400program_prefix=NONE
1401program_suffix=NONE
1402program_transform_name=s,x,x,
1403silent=
1404site=
1405srcdir=
1406verbose=
1407x_includes=NONE
1408x_libraries=NONE
1409
1410# Installation directory options.
1411# These are left unexpanded so users can "make install exec_prefix=/foo"
1412# and all the variables that are supposed to be based on exec_prefix
1413# by default will actually change.
1414# Use braces instead of parens because sh, perl, etc. also accept them.
1415# (The list follows the same order as the GNU Coding Standards.)
1416bindir='${exec_prefix}/bin'
1417sbindir='${exec_prefix}/sbin'
1418libexecdir='${exec_prefix}/libexec'
1419datarootdir='${prefix}/share'
1420datadir='${datarootdir}'
1421sysconfdir='${prefix}/etc'
1422sharedstatedir='${prefix}/com'
1423localstatedir='${prefix}/var'
1424includedir='${prefix}/include'
1425oldincludedir='/usr/include'
1426docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1427infodir='${datarootdir}/info'
1428htmldir='${docdir}'
1429dvidir='${docdir}'
1430pdfdir='${docdir}'
1431psdir='${docdir}'
1432libdir='${exec_prefix}/lib'
1433localedir='${datarootdir}/locale'
1434mandir='${datarootdir}/man'
1435
1436ac_prev=
1437ac_dashdash=
1438for ac_option
1439do
1440 # If the previous option needs an argument, assign it.
1441 if test -n "$ac_prev"; then
1442 eval $ac_prev=\$ac_option
1443 ac_prev=
1444 continue
1445 fi
1446
1447 case $ac_option in
1448 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1449 *=) ac_optarg= ;;
1450 *) ac_optarg=yes ;;
1451 esac
1452
1453 # Accept the important Cygnus configure options, so we can diagnose typos.
1454
1455 case $ac_dashdash$ac_option in
1456 --)
1457 ac_dashdash=yes ;;
1458
1459 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1460 ac_prev=bindir ;;
1461 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1462 bindir=$ac_optarg ;;
1463
1464 -build | --build | --buil | --bui | --bu)
1465 ac_prev=build_alias ;;
1466 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1467 build_alias=$ac_optarg ;;
1468
1469 -cache-file | --cache-file | --cache-fil | --cache-fi \
1470 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1471 ac_prev=cache_file ;;
1472 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1473 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1474 cache_file=$ac_optarg ;;
1475
1476 --config-cache | -C)
1477 cache_file=config.cache ;;
1478
1479 -datadir | --datadir | --datadi | --datad)
1480 ac_prev=datadir ;;
1481 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1482 datadir=$ac_optarg ;;
1483
1484 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1485 | --dataroo | --dataro | --datar)
1486 ac_prev=datarootdir ;;
1487 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1488 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1489 datarootdir=$ac_optarg ;;
1490
1491 -disable-* | --disable-*)
1492 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1493 # Reject names that are not valid shell variable names.
1494 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1495 as_fn_error $? "invalid feature name: $ac_useropt"
1496 ac_useropt_orig=$ac_useropt
1497 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1498 case $ac_user_opts in
1499 *"
1500"enable_$ac_useropt"
1501"*) ;;
1502 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1503 ac_unrecognized_sep=', ';;
1504 esac
1505 eval enable_$ac_useropt=no ;;
1506
1507 -docdir | --docdir | --docdi | --doc | --do)
1508 ac_prev=docdir ;;
1509 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1510 docdir=$ac_optarg ;;
1511
1512 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1513 ac_prev=dvidir ;;
1514 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1515 dvidir=$ac_optarg ;;
1516
1517 -enable-* | --enable-*)
1518 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1519 # Reject names that are not valid shell variable names.
1520 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1521 as_fn_error $? "invalid feature name: $ac_useropt"
1522 ac_useropt_orig=$ac_useropt
1523 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1524 case $ac_user_opts in
1525 *"
1526"enable_$ac_useropt"
1527"*) ;;
1528 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1529 ac_unrecognized_sep=', ';;
1530 esac
1531 eval enable_$ac_useropt=\$ac_optarg ;;
1532
1533 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1534 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1535 | --exec | --exe | --ex)
1536 ac_prev=exec_prefix ;;
1537 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1538 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1539 | --exec=* | --exe=* | --ex=*)
1540 exec_prefix=$ac_optarg ;;
1541
1542 -gas | --gas | --ga | --g)
1543 # Obsolete; use --with-gas.
1544 with_gas=yes ;;
1545
1546 -help | --help | --hel | --he | -h)
1547 ac_init_help=long ;;
1548 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1549 ac_init_help=recursive ;;
1550 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1551 ac_init_help=short ;;
1552
1553 -host | --host | --hos | --ho)
1554 ac_prev=host_alias ;;
1555 -host=* | --host=* | --hos=* | --ho=*)
1556 host_alias=$ac_optarg ;;
1557
1558 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1559 ac_prev=htmldir ;;
1560 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1561 | --ht=*)
1562 htmldir=$ac_optarg ;;
1563
1564 -includedir | --includedir | --includedi | --included | --include \
1565 | --includ | --inclu | --incl | --inc)
1566 ac_prev=includedir ;;
1567 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1568 | --includ=* | --inclu=* | --incl=* | --inc=*)
1569 includedir=$ac_optarg ;;
1570
1571 -infodir | --infodir | --infodi | --infod | --info | --inf)
1572 ac_prev=infodir ;;
1573 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1574 infodir=$ac_optarg ;;
1575
1576 -libdir | --libdir | --libdi | --libd)
1577 ac_prev=libdir ;;
1578 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1579 libdir=$ac_optarg ;;
1580
1581 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1582 | --libexe | --libex | --libe)
1583 ac_prev=libexecdir ;;
1584 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1585 | --libexe=* | --libex=* | --libe=*)
1586 libexecdir=$ac_optarg ;;
1587
1588 -localedir | --localedir | --localedi | --localed | --locale)
1589 ac_prev=localedir ;;
1590 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1591 localedir=$ac_optarg ;;
1592
1593 -localstatedir | --localstatedir | --localstatedi | --localstated \
1594 | --localstate | --localstat | --localsta | --localst | --locals)
1595 ac_prev=localstatedir ;;
1596 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1597 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1598 localstatedir=$ac_optarg ;;
1599
1600 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1601 ac_prev=mandir ;;
1602 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1603 mandir=$ac_optarg ;;
1604
1605 -nfp | --nfp | --nf)
1606 # Obsolete; use --without-fp.
1607 with_fp=no ;;
1608
1609 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1610 | --no-cr | --no-c | -n)
1611 no_create=yes ;;
1612
1613 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1614 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1615 no_recursion=yes ;;
1616
1617 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1618 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1619 | --oldin | --oldi | --old | --ol | --o)
1620 ac_prev=oldincludedir ;;
1621 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1622 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1623 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1624 oldincludedir=$ac_optarg ;;
1625
1626 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1627 ac_prev=prefix ;;
1628 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1629 prefix=$ac_optarg ;;
1630
1631 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1632 | --program-pre | --program-pr | --program-p)
1633 ac_prev=program_prefix ;;
1634 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1635 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1636 program_prefix=$ac_optarg ;;
1637
1638 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1639 | --program-suf | --program-su | --program-s)
1640 ac_prev=program_suffix ;;
1641 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1642 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1643 program_suffix=$ac_optarg ;;
1644
1645 -program-transform-name | --program-transform-name \
1646 | --program-transform-nam | --program-transform-na \
1647 | --program-transform-n | --program-transform- \
1648 | --program-transform | --program-transfor \
1649 | --program-transfo | --program-transf \
1650 | --program-trans | --program-tran \
1651 | --progr-tra | --program-tr | --program-t)
1652 ac_prev=program_transform_name ;;
1653 -program-transform-name=* | --program-transform-name=* \
1654 | --program-transform-nam=* | --program-transform-na=* \
1655 | --program-transform-n=* | --program-transform-=* \
1656 | --program-transform=* | --program-transfor=* \
1657 | --program-transfo=* | --program-transf=* \
1658 | --program-trans=* | --program-tran=* \
1659 | --progr-tra=* | --program-tr=* | --program-t=*)
1660 program_transform_name=$ac_optarg ;;
1661
1662 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1663 ac_prev=pdfdir ;;
1664 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1665 pdfdir=$ac_optarg ;;
1666
1667 -psdir | --psdir | --psdi | --psd | --ps)
1668 ac_prev=psdir ;;
1669 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1670 psdir=$ac_optarg ;;
1671
1672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673 | -silent | --silent | --silen | --sile | --sil)
1674 silent=yes ;;
1675
1676 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1677 ac_prev=sbindir ;;
1678 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1679 | --sbi=* | --sb=*)
1680 sbindir=$ac_optarg ;;
1681
1682 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1683 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1684 | --sharedst | --shareds | --shared | --share | --shar \
1685 | --sha | --sh)
1686 ac_prev=sharedstatedir ;;
1687 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1688 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1689 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1690 | --sha=* | --sh=*)
1691 sharedstatedir=$ac_optarg ;;
1692
1693 -site | --site | --sit)
1694 ac_prev=site ;;
1695 -site=* | --site=* | --sit=*)
1696 site=$ac_optarg ;;
1697
1698 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1699 ac_prev=srcdir ;;
1700 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1701 srcdir=$ac_optarg ;;
1702
1703 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1704 | --syscon | --sysco | --sysc | --sys | --sy)
1705 ac_prev=sysconfdir ;;
1706 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1707 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1708 sysconfdir=$ac_optarg ;;
1709
1710 -target | --target | --targe | --targ | --tar | --ta | --t)
1711 ac_prev=target_alias ;;
1712 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1713 target_alias=$ac_optarg ;;
1714
1715 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1716 verbose=yes ;;
1717
1718 -version | --version | --versio | --versi | --vers | -V)
1719 ac_init_version=: ;;
1720
1721 -with-* | --with-*)
1722 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1723 # Reject names that are not valid shell variable names.
1724 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1725 as_fn_error $? "invalid package name: $ac_useropt"
1726 ac_useropt_orig=$ac_useropt
1727 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1728 case $ac_user_opts in
1729 *"
1730"with_$ac_useropt"
1731"*) ;;
1732 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1733 ac_unrecognized_sep=', ';;
1734 esac
1735 eval with_$ac_useropt=\$ac_optarg ;;
1736
1737 -without-* | --without-*)
1738 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1739 # Reject names that are not valid shell variable names.
1740 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1741 as_fn_error $? "invalid package name: $ac_useropt"
1742 ac_useropt_orig=$ac_useropt
1743 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1744 case $ac_user_opts in
1745 *"
1746"with_$ac_useropt"
1747"*) ;;
1748 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1749 ac_unrecognized_sep=', ';;
1750 esac
1751 eval with_$ac_useropt=no ;;
1752
1753 --x)
1754 # Obsolete; use --with-x.
1755 with_x=yes ;;
1756
1757 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1758 | --x-incl | --x-inc | --x-in | --x-i)
1759 ac_prev=x_includes ;;
1760 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1761 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1762 x_includes=$ac_optarg ;;
1763
1764 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1765 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1766 ac_prev=x_libraries ;;
1767 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1768 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1769 x_libraries=$ac_optarg ;;
1770
1771 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1772Try \`$0 --help' for more information"
1773 ;;
1774
1775 *=*)
1776 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1777 # Reject names that are not valid shell variable names.
1778 case $ac_envvar in #(
1779 '' | [0-9]* | *[!_$as_cr_alnum]* )
1780 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1781 esac
1782 eval $ac_envvar=\$ac_optarg
1783 export $ac_envvar ;;
1784
1785 *)
1786 # FIXME: should be removed in autoconf 3.0.
1787 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1788 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1789 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1790 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1791 ;;
1792
1793 esac
1794done
1795
1796if test -n "$ac_prev"; then
1797 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1798 as_fn_error $? "missing argument to $ac_option"
1799fi
1800
1801if test -n "$ac_unrecognized_opts"; then
1802 case $enable_option_checking in
1803 no) ;;
1804 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1805 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1806 esac
1807fi
1808
1809# Check all directory arguments for consistency.
1810for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1811 datadir sysconfdir sharedstatedir localstatedir includedir \
1812 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1813 libdir localedir mandir
1814do
1815 eval ac_val=\$$ac_var
1816 # Remove trailing slashes.
1817 case $ac_val in
1818 */ )
1819 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1820 eval $ac_var=\$ac_val;;
1821 esac
1822 # Be sure to have absolute directory names.
1823 case $ac_val in
1824 [\\/$]* | ?:[\\/]* ) continue;;
1825 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1826 esac
1827 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1828done
1829
1830# There might be people who depend on the old broken behavior: `$host'
1831# used to hold the argument of --host etc.
1832# FIXME: To remove some day.
1833build=$build_alias
1834host=$host_alias
1835target=$target_alias
1836
1837# FIXME: To remove some day.
1838if test "x$host_alias" != x; then
1839 if test "x$build_alias" = x; then
1840 cross_compiling=maybe
1841 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1842 If a cross compiler is detected then cross compile mode will be used" >&2
1843 elif test "x$build_alias" != "x$host_alias"; then
1844 cross_compiling=yes
1845 fi
1846fi
1847
1848ac_tool_prefix=
1849test -n "$host_alias" && ac_tool_prefix=$host_alias-
1850
1851test "$silent" = yes && exec 6>/dev/null
1852
1853
1854ac_pwd=`pwd` && test -n "$ac_pwd" &&
1855ac_ls_di=`ls -di .` &&
1856ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1857 as_fn_error $? "working directory cannot be determined"
1858test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1859 as_fn_error $? "pwd does not report name of working directory"
1860
1861
1862# Find the source files, if location was not specified.
1863if test -z "$srcdir"; then
1864 ac_srcdir_defaulted=yes
1865 # Try the directory containing this script, then the parent directory.
1866 ac_confdir=`$as_dirname -- "$as_myself" ||
1867$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1868 X"$as_myself" : 'X\(//\)[^/]' \| \
1869 X"$as_myself" : 'X\(//\)$' \| \
1870 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1871$as_echo X"$as_myself" |
1872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1873 s//\1/
1874 q
1875 }
1876 /^X\(\/\/\)[^/].*/{
1877 s//\1/
1878 q
1879 }
1880 /^X\(\/\/\)$/{
1881 s//\1/
1882 q
1883 }
1884 /^X\(\/\).*/{
1885 s//\1/
1886 q
1887 }
1888 s/.*/./; q'`
1889 srcdir=$ac_confdir
1890 if test ! -r "$srcdir/$ac_unique_file"; then
1891 srcdir=..
1892 fi
1893else
1894 ac_srcdir_defaulted=no
1895fi
1896if test ! -r "$srcdir/$ac_unique_file"; then
1897 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1898 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1899fi
1900ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1901ac_abs_confdir=`(
1902 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1903 pwd)`
1904# When building in place, set srcdir=.
1905if test "$ac_abs_confdir" = "$ac_pwd"; then
1906 srcdir=.
1907fi
1908# Remove unnecessary trailing slashes from srcdir.
1909# Double slashes in file names in object file debugging info
1910# mess up M-x gdb in Emacs.
1911case $srcdir in
1912*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1913esac
1914for ac_var in $ac_precious_vars; do
1915 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1916 eval ac_env_${ac_var}_value=\$${ac_var}
1917 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1918 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1919done
1920
1921#
1922# Report the --help message.
1923#
1924if test "$ac_init_help" = "long"; then
1925 # Omit some internal or obsolete options to make the list less imposing.
1926 # This message is too long to be a string in the A/UX 3.1 sh.
1927 cat <<_ACEOF
1928\`configure' configures evas 1.1.0 to adapt to many kinds of systems.
1929
1930Usage: $0 [OPTION]... [VAR=VALUE]...
1931
1932To assign environment variables (e.g., CC, CFLAGS...), specify them as
1933VAR=VALUE. See below for descriptions of some of the useful variables.
1934
1935Defaults for the options are specified in brackets.
1936
1937Configuration:
1938 -h, --help display this help and exit
1939 --help=short display options specific to this package
1940 --help=recursive display the short help of all the included packages
1941 -V, --version display version information and exit
1942 -q, --quiet, --silent do not print \`checking ...' messages
1943 --cache-file=FILE cache test results in FILE [disabled]
1944 -C, --config-cache alias for \`--cache-file=config.cache'
1945 -n, --no-create do not create output files
1946 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1947
1948Installation directories:
1949 --prefix=PREFIX install architecture-independent files in PREFIX
1950 [$ac_default_prefix]
1951 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1952 [PREFIX]
1953
1954By default, \`make install' will install all the files in
1955\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1956an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1957for instance \`--prefix=\$HOME'.
1958
1959For better control, use the options below.
1960
1961Fine tuning of the installation directories:
1962 --bindir=DIR user executables [EPREFIX/bin]
1963 --sbindir=DIR system admin executables [EPREFIX/sbin]
1964 --libexecdir=DIR program executables [EPREFIX/libexec]
1965 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1966 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1967 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1968 --libdir=DIR object code libraries [EPREFIX/lib]
1969 --includedir=DIR C header files [PREFIX/include]
1970 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1971 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1972 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1973 --infodir=DIR info documentation [DATAROOTDIR/info]
1974 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1975 --mandir=DIR man documentation [DATAROOTDIR/man]
1976 --docdir=DIR documentation root [DATAROOTDIR/doc/evas]
1977 --htmldir=DIR html documentation [DOCDIR]
1978 --dvidir=DIR dvi documentation [DOCDIR]
1979 --pdfdir=DIR pdf documentation [DOCDIR]
1980 --psdir=DIR ps documentation [DOCDIR]
1981_ACEOF
1982
1983 cat <<\_ACEOF
1984
1985Program names:
1986 --program-prefix=PREFIX prepend PREFIX to installed program names
1987 --program-suffix=SUFFIX append SUFFIX to installed program names
1988 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1989
1990X features:
1991 --x-includes=DIR X include files are in DIR
1992 --x-libraries=DIR X library files are in DIR
1993
1994System types:
1995 --build=BUILD configure for building on BUILD [guessed]
1996 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1997_ACEOF
1998fi
1999
2000if test -n "$ac_init_help"; then
2001 case $ac_init_help in
2002 short | recursive ) echo "Configuration of evas 1.1.0:";;
2003 esac
2004 cat <<\_ACEOF
2005
2006Optional Features:
2007 --disable-option-checking ignore unrecognized --enable/--with options
2008 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2009 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2010 --enable-silent-rules less verbose build output (undo: `make V=1')
2011 --disable-silent-rules verbose build output (undo: `make V=0')
2012 --disable-dependency-tracking speeds up one-time build
2013 --enable-dependency-tracking do not reject slow dependency extractors
2014 --enable-shared[=PKGS] build shared libraries [default=yes]
2015 --enable-static[=PKGS] build static libraries [default=yes]
2016 --enable-fast-install[=PKGS]
2017 optimize for fast installation [default=yes]
2018 --disable-libtool-lock avoid locking (might break parallel builds)
2019 --enable-strict enable strict checking mode. [default==disabled]
2020 --enable-simple-x11 enable simple x11 linking
2021 --disable-doc Disable documentation build [default=enabled]
2022 --disable-fontconfig disable fontconfig for finding fonts.
2023 [default=enabled]
2024 --disable-liblinebreak disable linking against liblinebreak.
2025 [default=enabled]
2026 --disable-fribidi disable bidirectional text support.
2027 [default=enabled]
2028 --disable-harfbuzz disable complex text shaping and layouting support.
2029 [default=enabled]
2030 --disable-pixman disable pixman for software rendering.
2031 [default=enabled]
2032 --disable-evas-cserve disable shared cache server support.
2033 [default=enabled]
2034 --enable-gl-flavor-gles enable gles falvor of gl instead of standard
2035 --enable-gles-variety-sgx
2036 GLES variety SGX 3D unit
2037 --enable-gles-variety-s3c6410
2038 GLES variety s3c6410 3D unit
2039 --enable-buffer enable Buffer rendering backend
2040 --enable-software-gdi enable Software GDI rendering backend
2041 --enable-software-ddraw enable Software DirectDraw rendering backend
2042 --enable-direct3d enable Direct3D rendering backend
2043 --enable-software-sdl enable Software SDL rendering backend
2044 --enable-psl1ght enable PSL1GHT rendering backend
2045 --enable-gl-sdl enable OpenGL SDL rendering backend
2046 --enable-gl-cocoa enable OpenGL Cocoa rendering backend
2047 --enable-fb enable Framebuffer rendering backend
2048 --enable-directfb enable DirectFB rendering backend
2049 --enable-software-8-x11 enable Software X11 8 bits grayscale rendering
2050 backend
2051 --enable-software-16-x11
2052 enable Software X11 16 bits rendering backend
2053 --enable-software-16-ddraw
2054 enable Software DirectDraw 16 bits rendering backend
2055 --enable-software-16-wince
2056 enable Software Windows CE 16 bits rendering backend
2057 --enable-software-16-sdl
2058 enable Software SDL 16 bits rendering backend
2059 --enable-sdl-primitive
2060 --enable-static-software-generic
2061 Build software generic engine as part of libevas
2062 --enable-software-xcb enable Software XCB Engine. [default=disabled]
2063 --enable-software-xcb enable Software XCB rendering backend
2064 --enable-software-xlib enable Software Xlib rendering backend
2065 --enable-gl-xcb enable OpenGL XCB Engine. [default=disabled]
2066 --enable-gl-xcb enable OpenGL XCB rendering backend
2067 --enable-gl-xlib enable OpenGL XLib rendering backend
2068 --enable-static-software-16
2069 Build software 16 engine as part of libevas
2070 --enable-static-software-8
2071 Build software 8 engine as part of libevas
2072 --enable-image-loader-edb
2073 enable Edb image loader
2074 --enable-image-loader-eet
2075 enable Eet image loader
2076 --disable-font-loader-eet
2077 disable EET font loader. [[default=enabled]]
2078 --enable-image-loader-gif
2079 enable Gif image loader
2080 --enable-image-loader-jpeg
2081 enable Jpeg image loader
2082 --enable-image-loader-pmaps
2083 enable PMAPS image loader
2084 --enable-image-loader-png
2085 enable PNG image loader
2086 --enable-image-loader-svg
2087 enable SVG image loader
2088 --enable-image-loader-tiff
2089 enable Tiff image loader
2090 --enable-image-loader-xpm
2091 enable XPM image loader
2092 --enable-image-loader-bmp
2093 enable BMP image loader
2094 --enable-image-loader-tga
2095 enable TGA image loader
2096 --enable-image-loader-wbmp
2097 enable WBMP image loader
2098 --enable-image-loader-ico
2099 enable ICO image loader
2100 --enable-image-loader-psd
2101 enable PSD image loader
2102 --enable-image-loader-generic
2103 enable GENERIC image loader
2104 --enable-pthreads enable threaded rendering
2105 --enable-pipe-render enable threaded pipe rendering support
2106 --enable-async-render enable asynchronously threaded pipe rendering
2107 support
2108 --enable-async-events enable async events support
2109 --enable-async-preload enable async image preloading support
2110 --enable-cpu-mmx enable mmx code
2111 --enable-cpu-sse enable sse code
2112 --enable-cpu-sse3 enable sse3 code
2113 --enable-cpu-altivec enable altivec code
2114 --enable-cpu-neon build neon code, the code will be checked at run
2115 time to see if the CPU supports it
2116 --enable-cpu-c enable C code
2117 --disable-evas-magic-debug
2118 disable MAGIC_DEBUG check when people pass in wrong
2119 object type. [[default=enabled]]
2120 --enable-word-cache Enable experimental word caching to speed up
2121 rendering [[default=disabled]]
2122 --enable-metric-cache Enable experimental metric caching to speed up
2123 rendering [[default=disabled]]
2124 --disable-scale-sample disable sampling scaler code [default=enabled]
2125 --disable-scale-smooth disable smooth scaler code [default=enabled]
2126 --enable-convert-yuv enable yuv converter code
2127 --enable-small-dither-mask
2128 enable small dither mask [default=disabled]
2129 --enable-line-dither-mask
2130 enable line dither mask [default=disabled]
2131 --enable-no-dither-mask enable conversion to 16bpp without dither mask
2132 [default=disabled]
2133 --disable-convert-8-rgb-332
2134 disable the 8bpp RGB 332 converter code
2135 --disable-convert-8-rgb-666
2136 disable the 8bpp RGB 666 converter code
2137 --disable-convert-8-rgb-232
2138 disable the 8bpp RGB 232 converter code
2139 --disable-convert-8-rgb-222
2140 disable the 8bpp RGB 222 converter code
2141 --disable-convert-8-rgb-221
2142 disable the 8bpp RGB 221 converter code
2143 --disable-convert-8-rgb-121
2144 disable the 8bpp RGB 121 converter code
2145 --disable-convert-8-rgb-111
2146 disable the 8bpp RGB 111 converter code
2147 --disable-convert-16-rgb-565
2148 disable the 16bpp RGB 565 converter code
2149 --disable-convert-16-bgr-565
2150 disable the 16bpp BGR 565 converter code
2151 --disable-convert-16-rgb-555
2152 disable the 16bpp RGB 555 converter code
2153 --disable-convert-16-rgb-444
2154 disable the 16bpp RGB 444 converter code
2155 --disable-convert-16-rgb-ipq
2156 disable 16bpp 565 (444 ipaq) converter code
2157 --disable-convert-16-rgb-rot-0
2158 disable the 16bpp RGB rotation 0 converter code
2159 --disable-convert-16-rgb-rot-180
2160 disable the 16bpp RGB rotation 180 converter code
2161 --disable-convert-16-rgb-rot-270
2162 disable the 16bpp RGB rotation 270 converter code
2163 --disable-convert-16-rgb-rot-90
2164 disable the 16bpp RGB rotation 90 converter code
2165 --disable-convert-24-rgb-888
2166 disable the 24bpp RGB 888 converter code
2167 --disable-convert-24-bgr-888
2168 disable the 24bpp BGR 888 converter code
2169 --disable-convert-32-rgb-8888
2170 disable the 32bpp RGB 8888 converter code
2171 --disable-convert-32-rgbx-8888
2172 disable the 32bpp RGBX 8888 converter code
2173 --disable-convert-32-bgr-8888
2174 disable the 32bpp BGR 8888 converter code
2175 --disable-convert-32-bgrx-8888
2176 disable the 32bpp BGRX 8888 converter code
2177 --disable-convert-24-rgb-ezx
2178 disable 24bpp 666 (666 ezx) converter code
2179 --disable-convert-32-rgb-ezx
2180 disable 32bpp 666 (666 ezx) converter code
2181 --disable-convert-32-rgb-rot-0
2182 disable the 32bpp RGB rotation 0 converter code
2183 --disable-convert-32-rgb-rot-180
2184 disable the 32bpp RGB rotation 180 converter code
2185 --disable-convert-32-rgb-rot-270
2186 disable the 32bpp RGB rotation 270 converter code
2187 --disable-convert-32-rgb-rot-90
2188 disable the 32bpp RGB rotation 90 converter code
2189 --disable-convert-8-gry-1
2190 disable the 8bpp GRY 1 converter code
2191 --disable-convert-8-gry-16
2192 disable the 8bpp GRY 16 converter code
2193 --disable-convert-8-grayscale-64
2194 disable 8bpp grayscale 64-palette converter code
2195 --enable-valgrind enable valgrind fixes to stop false reports
2196 --disable-install-examples
2197 disable installing examples (compiled or just
2198 source). [default==enabled]
2199 --enable-build-examples enable building examples (this requires extra
2200 denpendencies. if you don't have them installed yet,
2201 don't build with this option or it will fail. build
2202 again when you have it, overriding the previous
2203 installation). [default==disabled]
2204 --enable-tests enable tests [default=disabled]
2205 --enable-coverage enable coverage profiling instrumentation
2206 [default=disabled]
2207
2208Optional Packages:
2209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2211 --with-pic try to use only PIC/non-PIC objects [default=use
2212 both]
2213 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2214 --with-doxygen=FILE doxygen program to use [default=doxygen]
2215 --with-x use the X Window System
2216
2217Some influential environment variables:
2218 CC C compiler command
2219 CFLAGS C compiler flags
2220 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2221 nonstandard directory <lib dir>
2222 LIBS libraries to pass to the linker, e.g. -l<library>
2223 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2224 you have headers in a nonstandard directory <include dir>
2225 CPP C preprocessor
2226 OBJC Objective C compiler command
2227 OBJCFLAGS Objective C compiler flags
2228 CXX C++ compiler command
2229 CXXFLAGS C++ compiler flags
2230 CXXCPP C++ preprocessor
2231 PKG_CONFIG path to pkg-config utility
2232 PKG_CONFIG_PATH
2233 directories to add to pkg-config's search path
2234 PKG_CONFIG_LIBDIR
2235 path overriding pkg-config's built-in search path
2236 EVIL_CFLAGS C compiler flags for EVIL, overriding pkg-config
2237 EVIL_LIBS linker flags for EVIL, overriding pkg-config
2238 EINA_CFLAGS C compiler flags for EINA, overriding pkg-config
2239 EINA_LIBS linker flags for EINA, overriding pkg-config
2240 FREETYPE_CFLAGS
2241 C compiler flags for FREETYPE, overriding pkg-config
2242 FREETYPE_LIBS
2243 linker flags for FREETYPE, overriding pkg-config
2244 FONTCONFIG_CFLAGS
2245 C compiler flags for FONTCONFIG, overriding pkg-config
2246 FONTCONFIG_LIBS
2247 linker flags for FONTCONFIG, overriding pkg-config
2248 FRIBIDI_CFLAGS
2249 C compiler flags for FRIBIDI, overriding pkg-config
2250 FRIBIDI_LIBS
2251 linker flags for FRIBIDI, overriding pkg-config
2252 HARFBUZZ_CFLAGS
2253 C compiler flags for HARFBUZZ, overriding pkg-config
2254 HARFBUZZ_LIBS
2255 linker flags for HARFBUZZ, overriding pkg-config
2256 PIXMAN_CFLAGS
2257 C compiler flags for PIXMAN, overriding pkg-config
2258 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2259 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
2260 SDL_LIBS linker flags for SDL, overriding pkg-config
2261 GL_EET_CFLAGS
2262 C compiler flags for GL_EET, overriding pkg-config
2263 GL_EET_LIBS linker flags for GL_EET, overriding pkg-config
2264 DIRECTFB_CFLAGS
2265 C compiler flags for DIRECTFB, overriding pkg-config
2266 DIRECTFB_LIBS
2267 linker flags for DIRECTFB, overriding pkg-config
2268 XCB_CFLAGS C compiler flags for XCB, overriding pkg-config
2269 XCB_LIBS linker flags for XCB, overriding pkg-config
2270 XMKMF Path to xmkmf, Makefile generator for X Window System
2271 XCB_GL_CFLAGS
2272 C compiler flags for XCB_GL, overriding pkg-config
2273 XCB_GL_LIBS linker flags for XCB_GL, overriding pkg-config
2274 EDB_CFLAGS C compiler flags for EDB, overriding pkg-config
2275 EDB_LIBS linker flags for EDB, overriding pkg-config
2276 EET_CFLAGS C compiler flags for EET, overriding pkg-config
2277 EET_LIBS linker flags for EET, overriding pkg-config
2278 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
2279 PNG_LIBS linker flags for PNG, overriding pkg-config
2280 SVG_CFLAGS C compiler flags for SVG, overriding pkg-config
2281 SVG_LIBS linker flags for SVG, overriding pkg-config
2282 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
2283 XEXT_LIBS linker flags for XEXT, overriding pkg-config
2284 VALGRIND_CFLAGS
2285 C compiler flags for VALGRIND, overriding pkg-config
2286 VALGRIND_LIBS
2287 linker flags for VALGRIND, overriding pkg-config
2288 ECORE_EVAS_CFLAGS
2289 C compiler flags for ECORE_EVAS, overriding pkg-config
2290 ECORE_EVAS_LIBS
2291 linker flags for ECORE_EVAS, overriding pkg-config
2292 EDJE_CFLAGS C compiler flags for EDJE, overriding pkg-config
2293 EDJE_LIBS linker flags for EDJE, overriding pkg-config
2294 CHECK_CFLAGS
2295 C compiler flags for CHECK, overriding pkg-config
2296 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2297
2298Use these variables to override the choices made by `configure' or to help
2299it to find libraries and programs with nonstandard names/locations.
2300
2301Report bugs to <enlightenment-devel@lists.sourceforge.net>.
2302_ACEOF
2303ac_status=$?
2304fi
2305
2306if test "$ac_init_help" = "recursive"; then
2307 # If there are subdirs, report their specific --help.
2308 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2309 test -d "$ac_dir" ||
2310 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2311 continue
2312 ac_builddir=.
2313
2314case "$ac_dir" in
2315.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2316*)
2317 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2318 # A ".." for each directory in $ac_dir_suffix.
2319 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2320 case $ac_top_builddir_sub in
2321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2323 esac ;;
2324esac
2325ac_abs_top_builddir=$ac_pwd
2326ac_abs_builddir=$ac_pwd$ac_dir_suffix
2327# for backward compatibility:
2328ac_top_builddir=$ac_top_build_prefix
2329
2330case $srcdir in
2331 .) # We are building in place.
2332 ac_srcdir=.
2333 ac_top_srcdir=$ac_top_builddir_sub
2334 ac_abs_top_srcdir=$ac_pwd ;;
2335 [\\/]* | ?:[\\/]* ) # Absolute name.
2336 ac_srcdir=$srcdir$ac_dir_suffix;
2337 ac_top_srcdir=$srcdir
2338 ac_abs_top_srcdir=$srcdir ;;
2339 *) # Relative name.
2340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2341 ac_top_srcdir=$ac_top_build_prefix$srcdir
2342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2343esac
2344ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2345
2346 cd "$ac_dir" || { ac_status=$?; continue; }
2347 # Check for guested configure.
2348 if test -f "$ac_srcdir/configure.gnu"; then
2349 echo &&
2350 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2351 elif test -f "$ac_srcdir/configure"; then
2352 echo &&
2353 $SHELL "$ac_srcdir/configure" --help=recursive
2354 else
2355 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2356 fi || ac_status=$?
2357 cd "$ac_pwd" || { ac_status=$?; break; }
2358 done
2359fi
2360
2361test -n "$ac_init_help" && exit $ac_status
2362if $ac_init_version; then
2363 cat <<\_ACEOF
2364evas configure 1.1.0
2365generated by GNU Autoconf 2.67
2366
2367Copyright (C) 2010 Free Software Foundation, Inc.
2368This configure script is free software; the Free Software Foundation
2369gives unlimited permission to copy, distribute and modify it.
2370_ACEOF
2371 exit
2372fi
2373
2374## ------------------------ ##
2375## Autoconf initialization. ##
2376## ------------------------ ##
2377
2378# ac_fn_c_try_compile LINENO
2379# --------------------------
2380# Try to compile conftest.$ac_ext, and return whether this succeeded.
2381ac_fn_c_try_compile ()
2382{
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext
2385 if { { ac_try="$ac_compile"
2386case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389esac
2390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391$as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_compile") 2>conftest.err
2393 ac_status=$?
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2398 fi
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest.$ac_objext; then :
2404 ac_retval=0
2405else
2406 $as_echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_retval=1
2410fi
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412 as_fn_set_status $ac_retval
2413
2414} # ac_fn_c_try_compile
2415
2416# ac_fn_c_try_cpp LINENO
2417# ----------------------
2418# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2419ac_fn_c_try_cpp ()
2420{
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 if { { ac_try="$ac_cpp conftest.$ac_ext"
2423case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2426esac
2427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428$as_echo "$ac_try_echo"; } >&5
2429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2430 ac_status=$?
2431 if test -s conftest.err; then
2432 grep -v '^ *+' conftest.err >conftest.er1
2433 cat conftest.er1 >&5
2434 mv -f conftest.er1 conftest.err
2435 fi
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; } > conftest.i && {
2438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2439 test ! -s conftest.err
2440 }; then :
2441 ac_retval=0
2442else
2443 $as_echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 ac_retval=1
2447fi
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449 as_fn_set_status $ac_retval
2450
2451} # ac_fn_c_try_cpp
2452
2453# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2454# -------------------------------------------------------
2455# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2456# the include files in INCLUDES and setting the cache variable VAR
2457# accordingly.
2458ac_fn_c_check_header_mongrel ()
2459{
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 if eval "test \"\${$3+set}\"" = set; then :
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463$as_echo_n "checking for $2... " >&6; }
2464if eval "test \"\${$3+set}\"" = set; then :
2465 $as_echo_n "(cached) " >&6
2466fi
2467eval ac_res=\$$3
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2469$as_echo "$ac_res" >&6; }
2470else
2471 # Is the header compilable?
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2473$as_echo_n "checking $2 usability... " >&6; }
2474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h. */
2476$4
2477#include <$2>
2478_ACEOF
2479if ac_fn_c_try_compile "$LINENO"; then :
2480 ac_header_compiler=yes
2481else
2482 ac_header_compiler=no
2483fi
2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2486$as_echo "$ac_header_compiler" >&6; }
2487
2488# Is the header present?
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2490$as_echo_n "checking $2 presence... " >&6; }
2491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492/* end confdefs.h. */
2493#include <$2>
2494_ACEOF
2495if ac_fn_c_try_cpp "$LINENO"; then :
2496 ac_header_preproc=yes
2497else
2498 ac_header_preproc=no
2499fi
2500rm -f conftest.err conftest.i conftest.$ac_ext
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2502$as_echo "$ac_header_preproc" >&6; }
2503
2504# So? What about this header?
2505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2506 yes:no: )
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2508$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2510$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2511 ;;
2512 no:yes:* )
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2514$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2516$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2518$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2520$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2522$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2523( $as_echo "## -------------------------------------------------------- ##
2524## Report this to enlightenment-devel@lists.sourceforge.net ##
2525## -------------------------------------------------------- ##"
2526 ) | sed "s/^/$as_me: WARNING: /" >&2
2527 ;;
2528esac
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2530$as_echo_n "checking for $2... " >&6; }
2531if eval "test \"\${$3+set}\"" = set; then :
2532 $as_echo_n "(cached) " >&6
2533else
2534 eval "$3=\$ac_header_compiler"
2535fi
2536eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538$as_echo "$ac_res" >&6; }
2539fi
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541
2542} # ac_fn_c_check_header_mongrel
2543
2544# ac_fn_c_try_run LINENO
2545# ----------------------
2546# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2547# that executables *can* be run.
2548ac_fn_c_try_run ()
2549{
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 if { { ac_try="$ac_link"
2552case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555esac
2556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557$as_echo "$ac_try_echo"; } >&5
2558 (eval "$ac_link") 2>&5
2559 ac_status=$?
2560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2561 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2562 { { case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565esac
2566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2567$as_echo "$ac_try_echo"; } >&5
2568 (eval "$ac_try") 2>&5
2569 ac_status=$?
2570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571 test $ac_status = 0; }; }; then :
2572 ac_retval=0
2573else
2574 $as_echo "$as_me: program exited with status $ac_status" >&5
2575 $as_echo "$as_me: failed program was:" >&5
2576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 ac_retval=$ac_status
2579fi
2580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 as_fn_set_status $ac_retval
2583
2584} # ac_fn_c_try_run
2585
2586# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2587# -------------------------------------------------------
2588# Tests whether HEADER exists and can be compiled using the include files in
2589# INCLUDES, setting the cache variable VAR accordingly.
2590ac_fn_c_check_header_compile ()
2591{
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2594$as_echo_n "checking for $2... " >&6; }
2595if eval "test \"\${$3+set}\"" = set; then :
2596 $as_echo_n "(cached) " >&6
2597else
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h. */
2600$4
2601#include <$2>
2602_ACEOF
2603if ac_fn_c_try_compile "$LINENO"; then :
2604 eval "$3=yes"
2605else
2606 eval "$3=no"
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$3
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614
2615} # ac_fn_c_check_header_compile
2616
2617# ac_fn_c_try_link LINENO
2618# -----------------------
2619# Try to link conftest.$ac_ext, and return whether this succeeded.
2620ac_fn_c_try_link ()
2621{
2622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { { ac_try="$ac_link"
2625case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2628esac
2629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630$as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_link") 2>conftest.err
2632 ac_status=$?
2633 if test -s conftest.err; then
2634 grep -v '^ *+' conftest.err >conftest.er1
2635 cat conftest.er1 >&5
2636 mv -f conftest.er1 conftest.err
2637 fi
2638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639 test $ac_status = 0; } && {
2640 test -z "$ac_c_werror_flag" ||
2641 test ! -s conftest.err
2642 } && test -s conftest$ac_exeext && {
2643 test "$cross_compiling" = yes ||
2644 $as_test_x conftest$ac_exeext
2645 }; then :
2646 ac_retval=0
2647else
2648 $as_echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 ac_retval=1
2652fi
2653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2655 # interfere with the next link command; also delete a directory that is
2656 # left behind by Apple's compiler. We do this before executing the actions.
2657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659 as_fn_set_status $ac_retval
2660
2661} # ac_fn_c_try_link
2662
2663# ac_fn_c_check_func LINENO FUNC VAR
2664# ----------------------------------
2665# Tests whether FUNC exists, setting the cache variable VAR accordingly
2666ac_fn_c_check_func ()
2667{
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2670$as_echo_n "checking for $2... " >&6; }
2671if eval "test \"\${$3+set}\"" = set; then :
2672 $as_echo_n "(cached) " >&6
2673else
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675/* end confdefs.h. */
2676/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2678#define $2 innocuous_$2
2679
2680/* System header to define __stub macros and hopefully few prototypes,
2681 which can conflict with char $2 (); below.
2682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683 <limits.h> exists even on freestanding compilers. */
2684
2685#ifdef __STDC__
2686# include <limits.h>
2687#else
2688# include <assert.h>
2689#endif
2690
2691#undef $2
2692
2693/* Override any GCC internal prototype to avoid an error.
2694 Use char because int might match the return type of a GCC
2695 builtin and then its argument prototype would still apply. */
2696#ifdef __cplusplus
2697extern "C"
2698#endif
2699char $2 ();
2700/* The GNU C library defines this for functions which it implements
2701 to always fail with ENOSYS. Some functions are actually named
2702 something starting with __ and the normal name is an alias. */
2703#if defined __stub_$2 || defined __stub___$2
2704choke me
2705#endif
2706
2707int
2708main ()
2709{
2710return $2 ();
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715if ac_fn_c_try_link "$LINENO"; then :
2716 eval "$3=yes"
2717else
2718 eval "$3=no"
2719fi
2720rm -f core conftest.err conftest.$ac_objext \
2721 conftest$ac_exeext conftest.$ac_ext
2722fi
2723eval ac_res=\$$3
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725$as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2727
2728} # ac_fn_c_check_func
2729
2730# ac_fn_objc_try_compile LINENO
2731# -----------------------------
2732# Try to compile conftest.$ac_ext, and return whether this succeeded.
2733ac_fn_objc_try_compile ()
2734{
2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736 rm -f conftest.$ac_objext
2737 if { { ac_try="$ac_compile"
2738case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741esac
2742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743$as_echo "$ac_try_echo"; } >&5
2744 (eval "$ac_compile") 2>conftest.err
2745 ac_status=$?
2746 if test -s conftest.err; then
2747 grep -v '^ *+' conftest.err >conftest.er1
2748 cat conftest.er1 >&5
2749 mv -f conftest.er1 conftest.err
2750 fi
2751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2752 test $ac_status = 0; } && {
2753 test -z "$ac_objc_werror_flag" ||
2754 test ! -s conftest.err
2755 } && test -s conftest.$ac_objext; then :
2756 ac_retval=0
2757else
2758 $as_echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 ac_retval=1
2762fi
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2764 as_fn_set_status $ac_retval
2765
2766} # ac_fn_objc_try_compile
2767
2768# ac_fn_objc_try_link LINENO
2769# --------------------------
2770# Try to link conftest.$ac_ext, and return whether this succeeded.
2771ac_fn_objc_try_link ()
2772{
2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774 rm -f conftest.$ac_objext conftest$ac_exeext
2775 if { { ac_try="$ac_link"
2776case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_link") 2>conftest.err
2783 ac_status=$?
2784 if test -s conftest.err; then
2785 grep -v '^ *+' conftest.err >conftest.er1
2786 cat conftest.er1 >&5
2787 mv -f conftest.er1 conftest.err
2788 fi
2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790 test $ac_status = 0; } && {
2791 test -z "$ac_objc_werror_flag" ||
2792 test ! -s conftest.err
2793 } && test -s conftest$ac_exeext && {
2794 test "$cross_compiling" = yes ||
2795 $as_test_x conftest$ac_exeext
2796 }; then :
2797 ac_retval=0
2798else
2799 $as_echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
2801
2802 ac_retval=1
2803fi
2804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2806 # interfere with the next link command; also delete a directory that is
2807 # left behind by Apple's compiler. We do this before executing the actions.
2808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2810 as_fn_set_status $ac_retval
2811
2812} # ac_fn_objc_try_link
2813
2814# ac_fn_cxx_try_compile LINENO
2815# ----------------------------
2816# Try to compile conftest.$ac_ext, and return whether this succeeded.
2817ac_fn_cxx_try_compile ()
2818{
2819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2820 rm -f conftest.$ac_objext
2821 if { { ac_try="$ac_compile"
2822case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825esac
2826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827$as_echo "$ac_try_echo"; } >&5
2828 (eval "$ac_compile") 2>conftest.err
2829 ac_status=$?
2830 if test -s conftest.err; then
2831 grep -v '^ *+' conftest.err >conftest.er1
2832 cat conftest.er1 >&5
2833 mv -f conftest.er1 conftest.err
2834 fi
2835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836 test $ac_status = 0; } && {
2837 test -z "$ac_cxx_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest.$ac_objext; then :
2840 ac_retval=0
2841else
2842 $as_echo "$as_me: failed program was:" >&5
2843sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ac_retval=1
2846fi
2847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2848 as_fn_set_status $ac_retval
2849
2850} # ac_fn_cxx_try_compile
2851
2852# ac_fn_cxx_try_cpp LINENO
2853# ------------------------
2854# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2855ac_fn_cxx_try_cpp ()
2856{
2857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2858 if { { ac_try="$ac_cpp conftest.$ac_ext"
2859case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862esac
2863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864$as_echo "$ac_try_echo"; } >&5
2865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2866 ac_status=$?
2867 if test -s conftest.err; then
2868 grep -v '^ *+' conftest.err >conftest.er1
2869 cat conftest.er1 >&5
2870 mv -f conftest.er1 conftest.err
2871 fi
2872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2873 test $ac_status = 0; } > conftest.i && {
2874 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2875 test ! -s conftest.err
2876 }; then :
2877 ac_retval=0
2878else
2879 $as_echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882 ac_retval=1
2883fi
2884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2885 as_fn_set_status $ac_retval
2886
2887} # ac_fn_cxx_try_cpp
2888
2889# ac_fn_cxx_try_link LINENO
2890# -------------------------
2891# Try to link conftest.$ac_ext, and return whether this succeeded.
2892ac_fn_cxx_try_link ()
2893{
2894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2895 rm -f conftest.$ac_objext conftest$ac_exeext
2896 if { { ac_try="$ac_link"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902$as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_link") 2>conftest.err
2904 ac_status=$?
2905 if test -s conftest.err; then
2906 grep -v '^ *+' conftest.err >conftest.er1
2907 cat conftest.er1 >&5
2908 mv -f conftest.er1 conftest.err
2909 fi
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; } && {
2912 test -z "$ac_cxx_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest$ac_exeext && {
2915 test "$cross_compiling" = yes ||
2916 $as_test_x conftest$ac_exeext
2917 }; then :
2918 ac_retval=0
2919else
2920 $as_echo "$as_me: failed program was:" >&5
2921sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 ac_retval=1
2924fi
2925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2927 # interfere with the next link command; also delete a directory that is
2928 # left behind by Apple's compiler. We do this before executing the actions.
2929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2931 as_fn_set_status $ac_retval
2932
2933} # ac_fn_cxx_try_link
2934
2935# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2936# --------------------------------------------
2937# Tries to find the compile-time value of EXPR in a program that includes
2938# INCLUDES, setting VAR accordingly. Returns whether the value could be
2939# computed
2940ac_fn_c_compute_int ()
2941{
2942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2943 if test "$cross_compiling" = yes; then
2944 # Depending upon the size, compute the lo and hi bounds.
2945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2947$4
2948int
2949main ()
2950{
2951static int test_array [1 - 2 * !(($2) >= 0)];
2952test_array [0] = 0
2953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958if ac_fn_c_try_compile "$LINENO"; then :
2959 ac_lo=0 ac_mid=0
2960 while :; do
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962/* end confdefs.h. */
2963$4
2964int
2965main ()
2966{
2967static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2968test_array [0] = 0
2969
2970 ;
2971 return 0;
2972}
2973_ACEOF
2974if ac_fn_c_try_compile "$LINENO"; then :
2975 ac_hi=$ac_mid; break
2976else
2977 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2978 if test $ac_lo -le $ac_mid; then
2979 ac_lo= ac_hi=
2980 break
2981 fi
2982 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2983fi
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 done
2986else
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h. */
2989$4
2990int
2991main ()
2992{
2993static int test_array [1 - 2 * !(($2) < 0)];
2994test_array [0] = 0
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000if ac_fn_c_try_compile "$LINENO"; then :
3001 ac_hi=-1 ac_mid=-1
3002 while :; do
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004/* end confdefs.h. */
3005$4
3006int
3007main ()
3008{
3009static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3010test_array [0] = 0
3011
3012 ;
3013 return 0;
3014}
3015_ACEOF
3016if ac_fn_c_try_compile "$LINENO"; then :
3017 ac_lo=$ac_mid; break
3018else
3019 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3020 if test $ac_mid -le $ac_hi; then
3021 ac_lo= ac_hi=
3022 break
3023 fi
3024 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3025fi
3026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027 done
3028else
3029 ac_lo= ac_hi=
3030fi
3031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032fi
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034# Binary search between lo and hi bounds.
3035while test "x$ac_lo" != "x$ac_hi"; do
3036 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038/* end confdefs.h. */
3039$4
3040int
3041main ()
3042{
3043static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3044test_array [0] = 0
3045
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050if ac_fn_c_try_compile "$LINENO"; then :
3051 ac_hi=$ac_mid
3052else
3053 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3054fi
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056done
3057case $ac_lo in #((
3058?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3059'') ac_retval=1 ;;
3060esac
3061 else
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063/* end confdefs.h. */
3064$4
3065static long int longval () { return $2; }
3066static unsigned long int ulongval () { return $2; }
3067#include <stdio.h>
3068#include <stdlib.h>
3069int
3070main ()
3071{
3072
3073 FILE *f = fopen ("conftest.val", "w");
3074 if (! f)
3075 return 1;
3076 if (($2) < 0)
3077 {
3078 long int i = longval ();
3079 if (i != ($2))
3080 return 1;
3081 fprintf (f, "%ld", i);
3082 }
3083 else
3084 {
3085 unsigned long int i = ulongval ();
3086 if (i != ($2))
3087 return 1;
3088 fprintf (f, "%lu", i);
3089 }
3090 /* Do not output a trailing newline, as this causes \r\n confusion
3091 on some platforms. */
3092 return ferror (f) || fclose (f) != 0;
3093
3094 ;
3095 return 0;
3096}
3097_ACEOF
3098if ac_fn_c_try_run "$LINENO"; then :
3099 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3100else
3101 ac_retval=1
3102fi
3103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3104 conftest.$ac_objext conftest.beam conftest.$ac_ext
3105rm -f conftest.val
3106
3107 fi
3108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3109 as_fn_set_status $ac_retval
3110
3111} # ac_fn_c_compute_int
3112
3113# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3114# -------------------------------------------
3115# Tests whether TYPE exists after having included INCLUDES, setting cache
3116# variable VAR accordingly.
3117ac_fn_c_check_type ()
3118{
3119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3121$as_echo_n "checking for $2... " >&6; }
3122if eval "test \"\${$3+set}\"" = set; then :
3123 $as_echo_n "(cached) " >&6
3124else
3125 eval "$3=no"
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127/* end confdefs.h. */
3128$4
3129int
3130main ()
3131{
3132if (sizeof ($2))
3133 return 0;
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138if ac_fn_c_try_compile "$LINENO"; then :
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140/* end confdefs.h. */
3141$4
3142int
3143main ()
3144{
3145if (sizeof (($2)))
3146 return 0;
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151if ac_fn_c_try_compile "$LINENO"; then :
3152
3153else
3154 eval "$3=yes"
3155fi
3156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157fi
3158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159fi
3160eval ac_res=\$$3
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3162$as_echo "$ac_res" >&6; }
3163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3164
3165} # ac_fn_c_check_type
3166
3167# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3168# ---------------------------------------------
3169# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3170# accordingly.
3171ac_fn_c_check_decl ()
3172{
3173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3174 as_decl_name=`echo $2|sed 's/ *(.*//'`
3175 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3177$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3178if eval "test \"\${$3+set}\"" = set; then :
3179 $as_echo_n "(cached) " >&6
3180else
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182/* end confdefs.h. */
3183$4
3184int
3185main ()
3186{
3187#ifndef $as_decl_name
3188#ifdef __cplusplus
3189 (void) $as_decl_use;
3190#else
3191 (void) $as_decl_name;
3192#endif
3193#endif
3194
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199if ac_fn_c_try_compile "$LINENO"; then :
3200 eval "$3=yes"
3201else
3202 eval "$3=no"
3203fi
3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205fi
3206eval ac_res=\$$3
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3208$as_echo "$ac_res" >&6; }
3209 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3210
3211} # ac_fn_c_check_decl
3212cat >config.log <<_ACEOF
3213This file contains any messages produced by compilers while
3214running configure, to aid debugging if configure makes a mistake.
3215
3216It was created by evas $as_me 1.1.0, which was
3217generated by GNU Autoconf 2.67. Invocation command line was
3218
3219 $ $0 $@
3220
3221_ACEOF
3222exec 5>>config.log
3223{
3224cat <<_ASUNAME
3225## --------- ##
3226## Platform. ##
3227## --------- ##
3228
3229hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3230uname -m = `(uname -m) 2>/dev/null || echo unknown`
3231uname -r = `(uname -r) 2>/dev/null || echo unknown`
3232uname -s = `(uname -s) 2>/dev/null || echo unknown`
3233uname -v = `(uname -v) 2>/dev/null || echo unknown`
3234
3235/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3236/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3237
3238/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3239/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3240/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3241/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3242/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3243/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3244/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3245
3246_ASUNAME
3247
3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH
3250do
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 $as_echo "PATH: $as_dir"
3254 done
3255IFS=$as_save_IFS
3256
3257} >&5
3258
3259cat >&5 <<_ACEOF
3260
3261
3262## ----------- ##
3263## Core tests. ##
3264## ----------- ##
3265
3266_ACEOF
3267
3268
3269# Keep a trace of the command line.
3270# Strip out --no-create and --no-recursion so they do not pile up.
3271# Strip out --silent because we don't want to record it for future runs.
3272# Also quote any args containing shell meta-characters.
3273# Make two passes to allow for proper duplicate-argument suppression.
3274ac_configure_args=
3275ac_configure_args0=
3276ac_configure_args1=
3277ac_must_keep_next=false
3278for ac_pass in 1 2
3279do
3280 for ac_arg
3281 do
3282 case $ac_arg in
3283 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3285 | -silent | --silent | --silen | --sile | --sil)
3286 continue ;;
3287 *\'*)
3288 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3289 esac
3290 case $ac_pass in
3291 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3292 2)
3293 as_fn_append ac_configure_args1 " '$ac_arg'"
3294 if test $ac_must_keep_next = true; then
3295 ac_must_keep_next=false # Got value, back to normal.
3296 else
3297 case $ac_arg in
3298 *=* | --config-cache | -C | -disable-* | --disable-* \
3299 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3300 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3301 | -with-* | --with-* | -without-* | --without-* | --x)
3302 case "$ac_configure_args0 " in
3303 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3304 esac
3305 ;;
3306 -* ) ac_must_keep_next=true ;;
3307 esac
3308 fi
3309 as_fn_append ac_configure_args " '$ac_arg'"
3310 ;;
3311 esac
3312 done
3313done
3314{ ac_configure_args0=; unset ac_configure_args0;}
3315{ ac_configure_args1=; unset ac_configure_args1;}
3316
3317# When interrupted or exit'd, cleanup temporary files, and complete
3318# config.log. We remove comments because anyway the quotes in there
3319# would cause problems or look ugly.
3320# WARNING: Use '\'' to represent an apostrophe within the trap.
3321# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3322trap 'exit_status=$?
3323 # Save into config.log some information that might help in debugging.
3324 {
3325 echo
3326
3327 $as_echo "## ---------------- ##
3328## Cache variables. ##
3329## ---------------- ##"
3330 echo
3331 # The following way of writing the cache mishandles newlines in values,
3332(
3333 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3334 eval ac_val=\$$ac_var
3335 case $ac_val in #(
3336 *${as_nl}*)
3337 case $ac_var in #(
3338 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3339$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3340 esac
3341 case $ac_var in #(
3342 _ | IFS | as_nl) ;; #(
3343 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3344 *) { eval $ac_var=; unset $ac_var;} ;;
3345 esac ;;
3346 esac
3347 done
3348 (set) 2>&1 |
3349 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3350 *${as_nl}ac_space=\ *)
3351 sed -n \
3352 "s/'\''/'\''\\\\'\'''\''/g;
3353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3354 ;; #(
3355 *)
3356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3357 ;;
3358 esac |
3359 sort
3360)
3361 echo
3362
3363 $as_echo "## ----------------- ##
3364## Output variables. ##
3365## ----------------- ##"
3366 echo
3367 for ac_var in $ac_subst_vars
3368 do
3369 eval ac_val=\$$ac_var
3370 case $ac_val in
3371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3372 esac
3373 $as_echo "$ac_var='\''$ac_val'\''"
3374 done | sort
3375 echo
3376
3377 if test -n "$ac_subst_files"; then
3378 $as_echo "## ------------------- ##
3379## File substitutions. ##
3380## ------------------- ##"
3381 echo
3382 for ac_var in $ac_subst_files
3383 do
3384 eval ac_val=\$$ac_var
3385 case $ac_val in
3386 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3387 esac
3388 $as_echo "$ac_var='\''$ac_val'\''"
3389 done | sort
3390 echo
3391 fi
3392
3393 if test -s confdefs.h; then
3394 $as_echo "## ----------- ##
3395## confdefs.h. ##
3396## ----------- ##"
3397 echo
3398 cat confdefs.h
3399 echo
3400 fi
3401 test "$ac_signal" != 0 &&
3402 $as_echo "$as_me: caught signal $ac_signal"
3403 $as_echo "$as_me: exit $exit_status"
3404 } >&5
3405 rm -f core *.core core.conftest.* &&
3406 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3407 exit $exit_status
3408' 0
3409for ac_signal in 1 2 13 15; do
3410 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3411done
3412ac_signal=0
3413
3414# confdefs.h avoids OS command line length limits that DEFS can exceed.
3415rm -f -r conftest* confdefs.h
3416
3417$as_echo "/* confdefs.h */" > confdefs.h
3418
3419# Predefined preprocessor variables.
3420
3421cat >>confdefs.h <<_ACEOF
3422#define PACKAGE_NAME "$PACKAGE_NAME"
3423_ACEOF
3424
3425cat >>confdefs.h <<_ACEOF
3426#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3427_ACEOF
3428
3429cat >>confdefs.h <<_ACEOF
3430#define PACKAGE_VERSION "$PACKAGE_VERSION"
3431_ACEOF
3432
3433cat >>confdefs.h <<_ACEOF
3434#define PACKAGE_STRING "$PACKAGE_STRING"
3435_ACEOF
3436
3437cat >>confdefs.h <<_ACEOF
3438#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3439_ACEOF
3440
3441cat >>confdefs.h <<_ACEOF
3442#define PACKAGE_URL "$PACKAGE_URL"
3443_ACEOF
3444
3445
3446# Let the site file select an alternate cache file if it wants to.
3447# Prefer an explicitly selected file to automatically selected ones.
3448ac_site_file1=NONE
3449ac_site_file2=NONE
3450if test -n "$CONFIG_SITE"; then
3451 # We do not want a PATH search for config.site.
3452 case $CONFIG_SITE in #((
3453 -*) ac_site_file1=./$CONFIG_SITE;;
3454 */*) ac_site_file1=$CONFIG_SITE;;
3455 *) ac_site_file1=./$CONFIG_SITE;;
3456 esac
3457elif test "x$prefix" != xNONE; then
3458 ac_site_file1=$prefix/share/config.site
3459 ac_site_file2=$prefix/etc/config.site
3460else
3461 ac_site_file1=$ac_default_prefix/share/config.site
3462 ac_site_file2=$ac_default_prefix/etc/config.site
3463fi
3464for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3465do
3466 test "x$ac_site_file" = xNONE && continue
3467 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3469$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3470 sed 's/^/| /' "$ac_site_file" >&5
3471 . "$ac_site_file" \
3472 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474as_fn_error $? "failed to load site script $ac_site_file
3475See \`config.log' for more details" "$LINENO" 5 ; }
3476 fi
3477done
3478
3479if test -r "$cache_file"; then
3480 # Some versions of bash will fail to source /dev/null (special files
3481 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3482 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3484$as_echo "$as_me: loading cache $cache_file" >&6;}
3485 case $cache_file in
3486 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3487 *) . "./$cache_file";;
3488 esac
3489 fi
3490else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3492$as_echo "$as_me: creating cache $cache_file" >&6;}
3493 >$cache_file
3494fi
3495
3496# Check that the precious variables saved in the cache have kept the same
3497# value.
3498ac_cache_corrupted=false
3499for ac_var in $ac_precious_vars; do
3500 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3501 eval ac_new_set=\$ac_env_${ac_var}_set
3502 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3503 eval ac_new_val=\$ac_env_${ac_var}_value
3504 case $ac_old_set,$ac_new_set in
3505 set,)
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3507$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3508 ac_cache_corrupted=: ;;
3509 ,set)
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3511$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3512 ac_cache_corrupted=: ;;
3513 ,);;
3514 *)
3515 if test "x$ac_old_val" != "x$ac_new_val"; then
3516 # differences in whitespace do not lead to failure.
3517 ac_old_val_w=`echo x $ac_old_val`
3518 ac_new_val_w=`echo x $ac_new_val`
3519 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3521$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3522 ac_cache_corrupted=:
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3525$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3526 eval $ac_var=\$ac_old_val
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3529$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3531$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3532 fi;;
3533 esac
3534 # Pass precious variables to config.status.
3535 if test "$ac_new_set" = set; then
3536 case $ac_new_val in
3537 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3538 *) ac_arg=$ac_var=$ac_new_val ;;
3539 esac
3540 case " $ac_configure_args " in
3541 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3542 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3543 esac
3544 fi
3545done
3546if $ac_cache_corrupted; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3550$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3551 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3552fi
3553## -------------------- ##
3554## Main body of script. ##
3555## -------------------- ##
3556
3557ac_ext=c
3558ac_cpp='$CPP $CPPFLAGS'
3559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
3563
3564
3565
3566
3567
3568ac_config_headers="$ac_config_headers config.h"
3569
3570
3571
3572
3573am__api_version='1.11'
3574
3575ac_aux_dir=
3576for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3577 if test -f "$ac_dir/install-sh"; then
3578 ac_aux_dir=$ac_dir
3579 ac_install_sh="$ac_aux_dir/install-sh -c"
3580 break
3581 elif test -f "$ac_dir/install.sh"; then
3582 ac_aux_dir=$ac_dir
3583 ac_install_sh="$ac_aux_dir/install.sh -c"
3584 break
3585 elif test -f "$ac_dir/shtool"; then
3586 ac_aux_dir=$ac_dir
3587 ac_install_sh="$ac_aux_dir/shtool install -c"
3588 break
3589 fi
3590done
3591if test -z "$ac_aux_dir"; then
3592 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3593fi
3594
3595# These three variables are undocumented and unsupported,
3596# and are intended to be withdrawn in a future Autoconf release.
3597# They can cause serious problems if a builder's source tree is in a directory
3598# whose full name contains unusual characters.
3599ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3600ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3601ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3602
3603
3604# Find a good install program. We prefer a C program (faster),
3605# so one script is as good as another. But avoid the broken or
3606# incompatible versions:
3607# SysV /etc/install, /usr/sbin/install
3608# SunOS /usr/etc/install
3609# IRIX /sbin/install
3610# AIX /bin/install
3611# AmigaOS /C/install, which installs bootblocks on floppy discs
3612# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3613# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3614# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3615# OS/2's system install, which has a completely different semantic
3616# ./install, which can be erroneously created by make from ./install.sh.
3617# Reject install programs that cannot install multiple files.
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3619$as_echo_n "checking for a BSD-compatible install... " >&6; }
3620if test -z "$INSTALL"; then
3621if test "${ac_cv_path_install+set}" = set; then :
3622 $as_echo_n "(cached) " >&6
3623else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 # Account for people who put trailing slashes in PATH elements.
3630case $as_dir/ in #((
3631 ./ | .// | /[cC]/* | \
3632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3633 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3634 /usr/ucb/* ) ;;
3635 *)
3636 # OSF1 and SCO ODT 3.0 have their own names for install.
3637 # Don't use installbsd from OSF since it installs stuff as root
3638 # by default.
3639 for ac_prog in ginstall scoinst install; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3642 if test $ac_prog = install &&
3643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3644 # AIX install. It has an incompatible calling convention.
3645 :
3646 elif test $ac_prog = install &&
3647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3648 # program-specific install script used by HP pwplus--don't use.
3649 :
3650 else
3651 rm -rf conftest.one conftest.two conftest.dir
3652 echo one > conftest.one
3653 echo two > conftest.two
3654 mkdir conftest.dir
3655 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3656 test -s conftest.one && test -s conftest.two &&
3657 test -s conftest.dir/conftest.one &&
3658 test -s conftest.dir/conftest.two
3659 then
3660 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3661 break 3
3662 fi
3663 fi
3664 fi
3665 done
3666 done
3667 ;;
3668esac
3669
3670 done
3671IFS=$as_save_IFS
3672
3673rm -rf conftest.one conftest.two conftest.dir
3674
3675fi
3676 if test "${ac_cv_path_install+set}" = set; then
3677 INSTALL=$ac_cv_path_install
3678 else
3679 # As a last resort, use the slow shell script. Don't cache a
3680 # value for INSTALL within a source directory, because that will
3681 # break other packages using the cache if that directory is
3682 # removed, or if the value is a relative name.
3683 INSTALL=$ac_install_sh
3684 fi
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3687$as_echo "$INSTALL" >&6; }
3688
3689# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3690# It thinks the first close brace ends the variable substitution.
3691test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3692
3693test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3694
3695test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3696
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3698$as_echo_n "checking whether build environment is sane... " >&6; }
3699# Just in case
3700sleep 1
3701echo timestamp > conftest.file
3702# Reject unsafe characters in $srcdir or the absolute working directory
3703# name. Accept space and tab only in the latter.
3704am_lf='
3705'
3706case `pwd` in
3707 *[\\\"\#\$\&\'\`$am_lf]*)
3708 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3709esac
3710case $srcdir in
3711 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3712 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3713esac
3714
3715# Do `set' in a subshell so we don't clobber the current shell's
3716# arguments. Must try -L first in case configure is actually a
3717# symlink; some systems play weird games with the mod time of symlinks
3718# (eg FreeBSD returns the mod time of the symlink's containing
3719# directory).
3720if (
3721 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3722 if test "$*" = "X"; then
3723 # -L didn't work.
3724 set X `ls -t "$srcdir/configure" conftest.file`
3725 fi
3726 rm -f conftest.file
3727 if test "$*" != "X $srcdir/configure conftest.file" \
3728 && test "$*" != "X conftest.file $srcdir/configure"; then
3729
3730 # If neither matched, then we have a broken ls. This can happen
3731 # if, for instance, CONFIG_SHELL is bash and it inherits a
3732 # broken ls alias from the environment. This has actually
3733 # happened. Such a system could not be considered "sane".
3734 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3735alias in your environment" "$LINENO" 5
3736 fi
3737
3738 test "$2" = conftest.file
3739 )
3740then
3741 # Ok.
3742 :
3743else
3744 as_fn_error $? "newly created file is older than distributed files!
3745Check your system clock" "$LINENO" 5
3746fi
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3748$as_echo "yes" >&6; }
3749test "$program_prefix" != NONE &&
3750 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3751# Use a double $ so make ignores it.
3752test "$program_suffix" != NONE &&
3753 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3754# Double any \ or $.
3755# By default was `s,x,x', remove it if useless.
3756ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3757program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3758
3759# expand $ac_aux_dir to an absolute path
3760am_aux_dir=`cd $ac_aux_dir && pwd`
3761
3762if test x"${MISSING+set}" != xset; then
3763 case $am_aux_dir in
3764 *\ * | *\ *)
3765 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3766 *)
3767 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3768 esac
3769fi
3770# Use eval to expand $SHELL
3771if eval "$MISSING --run true"; then
3772 am_missing_run="$MISSING --run "
3773else
3774 am_missing_run=
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3776$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3777fi
3778
3779if test x"${install_sh}" != xset; then
3780 case $am_aux_dir in
3781 *\ * | *\ *)
3782 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3783 *)
3784 install_sh="\${SHELL} $am_aux_dir/install-sh"
3785 esac
3786fi
3787
3788# Installed binaries are usually stripped using `strip' when the user
3789# run `make install-strip'. However `strip' might not be the right
3790# tool to use in cross-compilation environments, therefore Automake
3791# will honor the `STRIP' environment variable to overrule this program.
3792if test "$cross_compiling" != no; then
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3795set dummy ${ac_tool_prefix}strip; ac_word=$2
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797$as_echo_n "checking for $ac_word... " >&6; }
3798if test "${ac_cv_prog_STRIP+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800else
3801 if test -n "$STRIP"; then
3802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816 done
3817IFS=$as_save_IFS
3818
3819fi
3820fi
3821STRIP=$ac_cv_prog_STRIP
3822if test -n "$STRIP"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3824$as_echo "$STRIP" >&6; }
3825else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
3828fi
3829
3830
3831fi
3832if test -z "$ac_cv_prog_STRIP"; then
3833 ac_ct_STRIP=$STRIP
3834 # Extract the first word of "strip", so it can be a program name with args.
3835set dummy strip; ac_word=$2
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837$as_echo_n "checking for $ac_word... " >&6; }
3838if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3840else
3841 if test -n "$ac_ct_STRIP"; then
3842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_ac_ct_STRIP="strip"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855done
3856 done
3857IFS=$as_save_IFS
3858
3859fi
3860fi
3861ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3862if test -n "$ac_ct_STRIP"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3864$as_echo "$ac_ct_STRIP" >&6; }
3865else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
3868fi
3869
3870 if test "x$ac_ct_STRIP" = x; then
3871 STRIP=":"
3872 else
3873 case $cross_compiling:$ac_tool_warned in
3874yes:)
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3877ac_tool_warned=yes ;;
3878esac
3879 STRIP=$ac_ct_STRIP
3880 fi
3881else
3882 STRIP="$ac_cv_prog_STRIP"
3883fi
3884
3885fi
3886INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3887
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3889$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3890if test -z "$MKDIR_P"; then
3891 if test "${ac_cv_path_mkdir+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_prog in mkdir gmkdir; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3902 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3903 'mkdir (GNU coreutils) '* | \
3904 'mkdir (coreutils) '* | \
3905 'mkdir (fileutils) '4.1*)
3906 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3907 break 3;;
3908 esac
3909 done
3910 done
3911 done
3912IFS=$as_save_IFS
3913
3914fi
3915
3916 test -d ./--version && rmdir ./--version
3917 if test "${ac_cv_path_mkdir+set}" = set; then
3918 MKDIR_P="$ac_cv_path_mkdir -p"
3919 else
3920 # As a last resort, use the slow shell script. Don't cache a
3921 # value for MKDIR_P within a source directory, because that will
3922 # break other packages using the cache if that directory is
3923 # removed, or if the value is a relative name.
3924 MKDIR_P="$ac_install_sh -d"
3925 fi
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3928$as_echo "$MKDIR_P" >&6; }
3929
3930mkdir_p="$MKDIR_P"
3931case $mkdir_p in
3932 [\\/$]* | ?:[\\/]*) ;;
3933 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3934esac
3935
3936for ac_prog in gawk mawk nawk awk
3937do
3938 # Extract the first word of "$ac_prog", so it can be a program name with args.
3939set dummy $ac_prog; ac_word=$2
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941$as_echo_n "checking for $ac_word... " >&6; }
3942if test "${ac_cv_prog_AWK+set}" = set; then :
3943 $as_echo_n "(cached) " >&6
3944else
3945 if test -n "$AWK"; then
3946 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3947else
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_AWK="$ac_prog"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3958 fi
3959done
3960 done
3961IFS=$as_save_IFS
3962
3963fi
3964fi
3965AWK=$ac_cv_prog_AWK
3966if test -n "$AWK"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3968$as_echo "$AWK" >&6; }
3969else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971$as_echo "no" >&6; }
3972fi
3973
3974
3975 test -n "$AWK" && break
3976done
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3979$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3980set x ${MAKE-make}
3981ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3982if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3983 $as_echo_n "(cached) " >&6
3984else
3985 cat >conftest.make <<\_ACEOF
3986SHELL = /bin/sh
3987all:
3988 @echo '@@@%%%=$(MAKE)=@@@%%%'
3989_ACEOF
3990# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3991case `${MAKE-make} -f conftest.make 2>/dev/null` in
3992 *@@@%%%=?*=@@@%%%*)
3993 eval ac_cv_prog_make_${ac_make}_set=yes;;
3994 *)
3995 eval ac_cv_prog_make_${ac_make}_set=no;;
3996esac
3997rm -f conftest.make
3998fi
3999if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4001$as_echo "yes" >&6; }
4002 SET_MAKE=
4003else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005$as_echo "no" >&6; }
4006 SET_MAKE="MAKE=${MAKE-make}"
4007fi
4008
4009rm -rf .tst 2>/dev/null
4010mkdir .tst 2>/dev/null
4011if test -d .tst; then
4012 am__leading_dot=.
4013else
4014 am__leading_dot=_
4015fi
4016rmdir .tst 2>/dev/null
4017
4018if test "`cd $srcdir && pwd`" != "`pwd`"; then
4019 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4020 # is not polluted with repeated "-I."
4021 am__isrc=' -I$(srcdir)'
4022 # test to see if srcdir already configured
4023 if test -f $srcdir/config.status; then
4024 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4025 fi
4026fi
4027
4028# test whether we have cygpath
4029if test -z "$CYGPATH_W"; then
4030 if (cygpath --version) >/dev/null 2>/dev/null; then
4031 CYGPATH_W='cygpath -w'
4032 else
4033 CYGPATH_W=echo
4034 fi
4035fi
4036
4037
4038# Define the identity of the package.
4039 PACKAGE='evas'
4040 VERSION='1.1.0'
4041
4042
4043cat >>confdefs.h <<_ACEOF
4044#define PACKAGE "$PACKAGE"
4045_ACEOF
4046
4047
4048cat >>confdefs.h <<_ACEOF
4049#define VERSION "$VERSION"
4050_ACEOF
4051
4052# Some tools Automake needs.
4053
4054ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4055
4056
4057AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4058
4059
4060AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4061
4062
4063AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4064
4065
4066MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4067
4068# We need awk for the "check" target. The system "awk" is bad on
4069# some platforms.
4070# Always define AMTAR for backward compatibility.
4071
4072AMTAR=${AMTAR-"${am_missing_run}tar"}
4073
4074am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4075
4076
4077
4078
4079
4080# Check whether --enable-silent-rules was given.
4081if test "${enable_silent_rules+set}" = set; then :
4082 enableval=$enable_silent_rules;
4083fi
4084
4085case $enable_silent_rules in
4086yes) AM_DEFAULT_VERBOSITY=0;;
4087no) AM_DEFAULT_VERBOSITY=1;;
4088*) AM_DEFAULT_VERBOSITY=0;;
4089esac
4090AM_BACKSLASH='\'
4091
4092
4093DEPDIR="${am__leading_dot}deps"
4094
4095ac_config_commands="$ac_config_commands depfiles"
4096
4097
4098am_make=${MAKE-make}
4099cat > confinc << 'END'
4100am__doit:
4101 @echo this is the am__doit target
4102.PHONY: am__doit
4103END
4104# If we don't find an include directive, just comment out the code.
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4106$as_echo_n "checking for style of include used by $am_make... " >&6; }
4107am__include="#"
4108am__quote=
4109_am_result=none
4110# First try GNU make style include.
4111echo "include confinc" > confmf
4112# Ignore all kinds of additional output from `make'.
4113case `$am_make -s -f confmf 2> /dev/null` in #(
4114*the\ am__doit\ target*)
4115 am__include=include
4116 am__quote=
4117 _am_result=GNU
4118 ;;
4119esac
4120# Now try BSD make style include.
4121if test "$am__include" = "#"; then
4122 echo '.include "confinc"' > confmf
4123 case `$am_make -s -f confmf 2> /dev/null` in #(
4124 *the\ am__doit\ target*)
4125 am__include=.include
4126 am__quote="\""
4127 _am_result=BSD
4128 ;;
4129 esac
4130fi
4131
4132
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4134$as_echo "$_am_result" >&6; }
4135rm -f confinc confmf
4136
4137# Check whether --enable-dependency-tracking was given.
4138if test "${enable_dependency_tracking+set}" = set; then :
4139 enableval=$enable_dependency_tracking;
4140fi
4141
4142if test "x$enable_dependency_tracking" != xno; then
4143 am_depcomp="$ac_aux_dir/depcomp"
4144 AMDEPBACKSLASH='\'
4145fi
4146 if test "x$enable_dependency_tracking" != xno; then
4147 AMDEP_TRUE=
4148 AMDEP_FALSE='#'
4149else
4150 AMDEP_TRUE='#'
4151 AMDEP_FALSE=
4152fi
4153
4154
4155ac_ext=c
4156ac_cpp='$CPP $CPPFLAGS'
4157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160if test -n "$ac_tool_prefix"; then
4161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4162set dummy ${ac_tool_prefix}gcc; ac_word=$2
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164$as_echo_n "checking for $ac_word... " >&6; }
4165if test "${ac_cv_prog_CC+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4167else
4168 if test -n "$CC"; then
4169 ac_cv_prog_CC="$CC" # Let the user override the test.
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183 done
4184IFS=$as_save_IFS
4185
4186fi
4187fi
4188CC=$ac_cv_prog_CC
4189if test -n "$CC"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4191$as_echo "$CC" >&6; }
4192else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194$as_echo "no" >&6; }
4195fi
4196
4197
4198fi
4199if test -z "$ac_cv_prog_CC"; then
4200 ac_ct_CC=$CC
4201 # Extract the first word of "gcc", so it can be a program name with args.
4202set dummy gcc; ac_word=$2
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204$as_echo_n "checking for $ac_word... " >&6; }
4205if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207else
4208 if test -n "$ac_ct_CC"; then
4209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4210else
4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212for as_dir in $PATH
4213do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_ac_ct_CC="gcc"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222done
4223 done
4224IFS=$as_save_IFS
4225
4226fi
4227fi
4228ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229if test -n "$ac_ct_CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231$as_echo "$ac_ct_CC" >&6; }
4232else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234$as_echo "no" >&6; }
4235fi
4236
4237 if test "x$ac_ct_CC" = x; then
4238 CC=""
4239 else
4240 case $cross_compiling:$ac_tool_warned in
4241yes:)
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244ac_tool_warned=yes ;;
4245esac
4246 CC=$ac_ct_CC
4247 fi
4248else
4249 CC="$ac_cv_prog_CC"
4250fi
4251
4252if test -z "$CC"; then
4253 if test -n "$ac_tool_prefix"; then
4254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4255set dummy ${ac_tool_prefix}cc; ac_word=$2
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257$as_echo_n "checking for $ac_word... " >&6; }
4258if test "${ac_cv_prog_CC+set}" = set; then :
4259 $as_echo_n "(cached) " >&6
4260else
4261 if test -n "$CC"; then
4262 ac_cv_prog_CC="$CC" # Let the user override the test.
4263else
4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265for as_dir in $PATH
4266do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_prog_CC="${ac_tool_prefix}cc"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275done
4276 done
4277IFS=$as_save_IFS
4278
4279fi
4280fi
4281CC=$ac_cv_prog_CC
4282if test -n "$CC"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4284$as_echo "$CC" >&6; }
4285else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287$as_echo "no" >&6; }
4288fi
4289
4290
4291 fi
4292fi
4293if test -z "$CC"; then
4294 # Extract the first word of "cc", so it can be a program name with args.
4295set dummy cc; ac_word=$2
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297$as_echo_n "checking for $ac_word... " >&6; }
4298if test "${ac_cv_prog_CC+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4300else
4301 if test -n "$CC"; then
4302 ac_cv_prog_CC="$CC" # Let the user override the test.
4303else
4304 ac_prog_rejected=no
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4313 ac_prog_rejected=yes
4314 continue
4315 fi
4316 ac_cv_prog_CC="cc"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320done
4321 done
4322IFS=$as_save_IFS
4323
4324if test $ac_prog_rejected = yes; then
4325 # We found a bogon in the path, so make sure we never use it.
4326 set dummy $ac_cv_prog_CC
4327 shift
4328 if test $# != 0; then
4329 # We chose a different compiler from the bogus one.
4330 # However, it has the same basename, so the bogon will be chosen
4331 # first if we set CC to just the basename; use the full file name.
4332 shift
4333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4334 fi
4335fi
4336fi
4337fi
4338CC=$ac_cv_prog_CC
4339if test -n "$CC"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4341$as_echo "$CC" >&6; }
4342else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344$as_echo "no" >&6; }
4345fi
4346
4347
4348fi
4349if test -z "$CC"; then
4350 if test -n "$ac_tool_prefix"; then
4351 for ac_prog in cl.exe
4352 do
4353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4354set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356$as_echo_n "checking for $ac_word... " >&6; }
4357if test "${ac_cv_prog_CC+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359else
4360 if test -n "$CC"; then
4361 ac_cv_prog_CC="$CC" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374done
4375 done
4376IFS=$as_save_IFS
4377
4378fi
4379fi
4380CC=$ac_cv_prog_CC
4381if test -n "$CC"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4383$as_echo "$CC" >&6; }
4384else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386$as_echo "no" >&6; }
4387fi
4388
4389
4390 test -n "$CC" && break
4391 done
4392fi
4393if test -z "$CC"; then
4394 ac_ct_CC=$CC
4395 for ac_prog in cl.exe
4396do
4397 # Extract the first word of "$ac_prog", so it can be a program name with args.
4398set dummy $ac_prog; ac_word=$2
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400$as_echo_n "checking for $ac_word... " >&6; }
4401if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403else
4404 if test -n "$ac_ct_CC"; then
4405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_ac_ct_CC="$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418done
4419 done
4420IFS=$as_save_IFS
4421
4422fi
4423fi
4424ac_ct_CC=$ac_cv_prog_ac_ct_CC
4425if test -n "$ac_ct_CC"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4427$as_echo "$ac_ct_CC" >&6; }
4428else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430$as_echo "no" >&6; }
4431fi
4432
4433
4434 test -n "$ac_ct_CC" && break
4435done
4436
4437 if test "x$ac_ct_CC" = x; then
4438 CC=""
4439 else
4440 case $cross_compiling:$ac_tool_warned in
4441yes:)
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4444ac_tool_warned=yes ;;
4445esac
4446 CC=$ac_ct_CC
4447 fi
4448fi
4449
4450fi
4451
4452
4453test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455as_fn_error $? "no acceptable C compiler found in \$PATH
4456See \`config.log' for more details" "$LINENO" 5 ; }
4457
4458# Provide some information about the compiler.
4459$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4460set X $ac_compile
4461ac_compiler=$2
4462for ac_option in --version -v -V -qversion; do
4463 { { ac_try="$ac_compiler $ac_option >&5"
4464case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467esac
4468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469$as_echo "$ac_try_echo"; } >&5
4470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4471 ac_status=$?
4472 if test -s conftest.err; then
4473 sed '10a\
4474... rest of stderr output deleted ...
4475 10q' conftest.err >conftest.er1
4476 cat conftest.er1 >&5
4477 fi
4478 rm -f conftest.er1 conftest.err
4479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480 test $ac_status = 0; }
4481done
4482
4483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484/* end confdefs.h. */
4485
4486int
4487main ()
4488{
4489
4490 ;
4491 return 0;
4492}
4493_ACEOF
4494ac_clean_files_save=$ac_clean_files
4495ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4496# Try to create an executable without -o first, disregard a.out.
4497# It will help us diagnose broken compilers, and finding out an intuition
4498# of exeext.
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4500$as_echo_n "checking whether the C compiler works... " >&6; }
4501ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4502
4503# The possible output files:
4504ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4505
4506ac_rmfiles=
4507for ac_file in $ac_files
4508do
4509 case $ac_file in
4510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4511 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4512 esac
4513done
4514rm -f $ac_rmfiles
4515
4516if { { ac_try="$ac_link_default"
4517case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4520esac
4521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4522$as_echo "$ac_try_echo"; } >&5
4523 (eval "$ac_link_default") 2>&5
4524 ac_status=$?
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; }; then :
4527 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4528# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4529# in a Makefile. We should not override ac_cv_exeext if it was cached,
4530# so that the user can short-circuit this test for compilers unknown to
4531# Autoconf.
4532for ac_file in $ac_files ''
4533do
4534 test -f "$ac_file" || continue
4535 case $ac_file in
4536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4537 ;;
4538 [ab].out )
4539 # We found the default executable, but exeext='' is most
4540 # certainly right.
4541 break;;
4542 *.* )
4543 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4544 then :; else
4545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4546 fi
4547 # We set ac_cv_exeext here because the later test for it is not
4548 # safe: cross compilers may not add the suffix if given an `-o'
4549 # argument, so we may need to know it at that point already.
4550 # Even if this section looks crufty: it has the advantage of
4551 # actually working.
4552 break;;
4553 * )
4554 break;;
4555 esac
4556done
4557test "$ac_cv_exeext" = no && ac_cv_exeext=
4558
4559else
4560 ac_file=''
4561fi
4562if test -z "$ac_file"; then :
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564$as_echo "no" >&6; }
4565$as_echo "$as_me: failed program was:" >&5
4566sed 's/^/| /' conftest.$ac_ext >&5
4567
4568{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570as_fn_error 77 "C compiler cannot create executables
4571See \`config.log' for more details" "$LINENO" 5 ; }
4572else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4574$as_echo "yes" >&6; }
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4577$as_echo_n "checking for C compiler default output file name... " >&6; }
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4579$as_echo "$ac_file" >&6; }
4580ac_exeext=$ac_cv_exeext
4581
4582rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4583ac_clean_files=$ac_clean_files_save
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4585$as_echo_n "checking for suffix of executables... " >&6; }
4586if { { ac_try="$ac_link"
4587case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590esac
4591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592$as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_link") 2>&5
4594 ac_status=$?
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }; then :
4597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4598# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4599# work properly (i.e., refer to `conftest.exe'), while it won't with
4600# `rm'.
4601for ac_file in conftest.exe conftest conftest.*; do
4602 test -f "$ac_file" || continue
4603 case $ac_file in
4604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4606 break;;
4607 * ) break;;
4608 esac
4609done
4610else
4611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4614See \`config.log' for more details" "$LINENO" 5 ; }
4615fi
4616rm -f conftest conftest$ac_cv_exeext
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4618$as_echo "$ac_cv_exeext" >&6; }
4619
4620rm -f conftest.$ac_ext
4621EXEEXT=$ac_cv_exeext
4622ac_exeext=$EXEEXT
4623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624/* end confdefs.h. */
4625#include <stdio.h>
4626int
4627main ()
4628{
4629FILE *f = fopen ("conftest.out", "w");
4630 return ferror (f) || fclose (f) != 0;
4631
4632 ;
4633 return 0;
4634}
4635_ACEOF
4636ac_clean_files="$ac_clean_files conftest.out"
4637# Check that the compiler produces executables we can run. If not, either
4638# the compiler is broken, or we cross compile.
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4640$as_echo_n "checking whether we are cross compiling... " >&6; }
4641if test "$cross_compiling" != yes; then
4642 { { ac_try="$ac_link"
4643case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646esac
4647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4648$as_echo "$ac_try_echo"; } >&5
4649 (eval "$ac_link") 2>&5
4650 ac_status=$?
4651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4652 test $ac_status = 0; }
4653 if { ac_try='./conftest$ac_cv_exeext'
4654 { { case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657esac
4658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659$as_echo "$ac_try_echo"; } >&5
4660 (eval "$ac_try") 2>&5
4661 ac_status=$?
4662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663 test $ac_status = 0; }; }; then
4664 cross_compiling=no
4665 else
4666 if test "$cross_compiling" = maybe; then
4667 cross_compiling=yes
4668 else
4669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4671as_fn_error $? "cannot run C compiled programs.
4672If you meant to cross compile, use \`--host'.
4673See \`config.log' for more details" "$LINENO" 5 ; }
4674 fi
4675 fi
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4678$as_echo "$cross_compiling" >&6; }
4679
4680rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4681ac_clean_files=$ac_clean_files_save
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4683$as_echo_n "checking for suffix of object files... " >&6; }
4684if test "${ac_cv_objext+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4686else
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688/* end confdefs.h. */
4689
4690int
4691main ()
4692{
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698rm -f conftest.o conftest.obj
4699if { { ac_try="$ac_compile"
4700case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4703esac
4704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4705$as_echo "$ac_try_echo"; } >&5
4706 (eval "$ac_compile") 2>&5
4707 ac_status=$?
4708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4709 test $ac_status = 0; }; then :
4710 for ac_file in conftest.o conftest.obj conftest.*; do
4711 test -f "$ac_file" || continue;
4712 case $ac_file in
4713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4715 break;;
4716 esac
4717done
4718else
4719 $as_echo "$as_me: failed program was:" >&5
4720sed 's/^/| /' conftest.$ac_ext >&5
4721
4722{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4724as_fn_error $? "cannot compute suffix of object files: cannot compile
4725See \`config.log' for more details" "$LINENO" 5 ; }
4726fi
4727rm -f conftest.$ac_cv_objext conftest.$ac_ext
4728fi
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4730$as_echo "$ac_cv_objext" >&6; }
4731OBJEXT=$ac_cv_objext
4732ac_objext=$OBJEXT
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4734$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4735if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h. */
4740
4741int
4742main ()
4743{
4744#ifndef __GNUC__
4745 choke me
4746#endif
4747
4748 ;
4749 return 0;
4750}
4751_ACEOF
4752if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_compiler_gnu=yes
4754else
4755 ac_compiler_gnu=no
4756fi
4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758ac_cv_c_compiler_gnu=$ac_compiler_gnu
4759
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4762$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4763if test $ac_compiler_gnu = yes; then
4764 GCC=yes
4765else
4766 GCC=
4767fi
4768ac_test_CFLAGS=${CFLAGS+set}
4769ac_save_CFLAGS=$CFLAGS
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4771$as_echo_n "checking whether $CC accepts -g... " >&6; }
4772if test "${ac_cv_prog_cc_g+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774else
4775 ac_save_c_werror_flag=$ac_c_werror_flag
4776 ac_c_werror_flag=yes
4777 ac_cv_prog_cc_g=no
4778 CFLAGS="-g"
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
4781
4782int
4783main ()
4784{
4785
4786 ;
4787 return 0;
4788}
4789_ACEOF
4790if ac_fn_c_try_compile "$LINENO"; then :
4791 ac_cv_prog_cc_g=yes
4792else
4793 CFLAGS=""
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h. */
4796
4797int
4798main ()
4799{
4800
4801 ;
4802 return 0;
4803}
4804_ACEOF
4805if ac_fn_c_try_compile "$LINENO"; then :
4806
4807else
4808 ac_c_werror_flag=$ac_save_c_werror_flag
4809 CFLAGS="-g"
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811/* end confdefs.h. */
4812
4813int
4814main ()
4815{
4816
4817 ;
4818 return 0;
4819}
4820_ACEOF
4821if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_cv_prog_cc_g=yes
4823fi
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825fi
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827fi
4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 ac_c_werror_flag=$ac_save_c_werror_flag
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4832$as_echo "$ac_cv_prog_cc_g" >&6; }
4833if test "$ac_test_CFLAGS" = set; then
4834 CFLAGS=$ac_save_CFLAGS
4835elif test $ac_cv_prog_cc_g = yes; then
4836 if test "$GCC" = yes; then
4837 CFLAGS="-g -O2"
4838 else
4839 CFLAGS="-g"
4840 fi
4841else
4842 if test "$GCC" = yes; then
4843 CFLAGS="-O2"
4844 else
4845 CFLAGS=
4846 fi
4847fi
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4849$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4850if test "${ac_cv_prog_cc_c89+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852else
4853 ac_cv_prog_cc_c89=no
4854ac_save_CC=$CC
4855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h. */
4857#include <stdarg.h>
4858#include <stdio.h>
4859#include <sys/types.h>
4860#include <sys/stat.h>
4861/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4862struct buf { int x; };
4863FILE * (*rcsopen) (struct buf *, struct stat *, int);
4864static char *e (p, i)
4865 char **p;
4866 int i;
4867{
4868 return p[i];
4869}
4870static char *f (char * (*g) (char **, int), char **p, ...)
4871{
4872 char *s;
4873 va_list v;
4874 va_start (v,p);
4875 s = g (p, va_arg (v,int));
4876 va_end (v);
4877 return s;
4878}
4879
4880/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4881 function prototypes and stuff, but not '\xHH' hex character constants.
4882 These don't provoke an error unfortunately, instead are silently treated
4883 as 'x'. The following induces an error, until -std is added to get
4884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4885 array size at least. It's necessary to write '\x00'==0 to get something
4886 that's true only with -std. */
4887int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4888
4889/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4890 inside strings and character constants. */
4891#define FOO(x) 'x'
4892int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4893
4894int test (int i, double x);
4895struct s1 {int (*f) (int a);};
4896struct s2 {int (*f) (double a);};
4897int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4898int argc;
4899char **argv;
4900int
4901main ()
4902{
4903return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4909 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4910do
4911 CC="$ac_save_CC $ac_arg"
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_prog_cc_c89=$ac_arg
4914fi
4915rm -f core conftest.err conftest.$ac_objext
4916 test "x$ac_cv_prog_cc_c89" != "xno" && break
4917done
4918rm -f conftest.$ac_ext
4919CC=$ac_save_CC
4920
4921fi
4922# AC_CACHE_VAL
4923case "x$ac_cv_prog_cc_c89" in
4924 x)
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4926$as_echo "none needed" >&6; } ;;
4927 xno)
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4929$as_echo "unsupported" >&6; } ;;
4930 *)
4931 CC="$CC $ac_cv_prog_cc_c89"
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4933$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4934esac
4935if test "x$ac_cv_prog_cc_c89" != xno; then :
4936
4937fi
4938
4939ac_ext=c
4940ac_cpp='$CPP $CPPFLAGS'
4941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944
4945depcc="$CC" am_compiler_list=
4946
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4948$as_echo_n "checking dependency style of $depcc... " >&6; }
4949if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951else
4952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4953 # We make a subdir and do the tests there. Otherwise we can end up
4954 # making bogus files that we don't know about and never remove. For
4955 # instance it was reported that on HP-UX the gcc test will end up
4956 # making a dummy file named `D' -- because `-MD' means `put the output
4957 # in D'.
4958 mkdir conftest.dir
4959 # Copy depcomp to subdir because otherwise we won't find it if we're
4960 # using a relative directory.
4961 cp "$am_depcomp" conftest.dir
4962 cd conftest.dir
4963 # We will build objects and dependencies in a subdirectory because
4964 # it helps to detect inapplicable dependency modes. For instance
4965 # both Tru64's cc and ICC support -MD to output dependencies as a
4966 # side effect of compilation, but ICC will put the dependencies in
4967 # the current directory while Tru64 will put them in the object
4968 # directory.
4969 mkdir sub
4970
4971 am_cv_CC_dependencies_compiler_type=none
4972 if test "$am_compiler_list" = ""; then
4973 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4974 fi
4975 am__universal=false
4976 case " $depcc " in #(
4977 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4978 esac
4979
4980 for depmode in $am_compiler_list; do
4981 # Setup a source with many dependencies, because some compilers
4982 # like to wrap large dependency lists on column 80 (with \), and
4983 # we should not choose a depcomp mode which is confused by this.
4984 #
4985 # We need to recreate these files for each test, as the compiler may
4986 # overwrite some of them when testing with obscure command lines.
4987 # This happens at least with the AIX C compiler.
4988 : > sub/conftest.c
4989 for i in 1 2 3 4 5 6; do
4990 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4992 # Solaris 8's {/usr,}/bin/sh.
4993 touch sub/conftst$i.h
4994 done
4995 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4996
4997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4998 # mode. It turns out that the SunPro C++ compiler does not properly
4999 # handle `-M -o', and we need to detect this. Also, some Intel
5000 # versions had trouble with output in subdirs
5001 am__obj=sub/conftest.${OBJEXT-o}
5002 am__minus_obj="-o $am__obj"
5003 case $depmode in
5004 gcc)
5005 # This depmode causes a compiler race in universal mode.
5006 test "$am__universal" = false || continue
5007 ;;
5008 nosideeffect)
5009 # after this tag, mechanisms are not by side-effect, so they'll
5010 # only be used when explicitly requested
5011 if test "x$enable_dependency_tracking" = xyes; then
5012 continue
5013 else
5014 break
5015 fi
5016 ;;
5017 msvisualcpp | msvcmsys)
5018 # This compiler won't grok `-c -o', but also, the minuso test has
5019 # not run yet. These depmodes are late enough in the game, and
5020 # so weak that their functioning should not be impacted.
5021 am__obj=conftest.${OBJEXT-o}
5022 am__minus_obj=
5023 ;;
5024 none) break ;;
5025 esac
5026 if depmode=$depmode \
5027 source=sub/conftest.c object=$am__obj \
5028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5029 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5030 >/dev/null 2>conftest.err &&
5031 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5032 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5033 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5034 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5035 # icc doesn't choke on unknown options, it will just issue warnings
5036 # or remarks (even with -Werror). So we grep stderr for any message
5037 # that says an option was ignored or not supported.
5038 # When given -MP, icc 7.0 and 7.1 complain thusly:
5039 # icc: Command line warning: ignoring option '-M'; no argument required
5040 # The diagnosis changed in icc 8.0:
5041 # icc: Command line remark: option '-MP' not supported
5042 if (grep 'ignoring option' conftest.err ||
5043 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5044 am_cv_CC_dependencies_compiler_type=$depmode
5045 break
5046 fi
5047 fi
5048 done
5049
5050 cd ..
5051 rm -rf conftest.dir
5052else
5053 am_cv_CC_dependencies_compiler_type=none
5054fi
5055
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5058$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5059CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5060
5061 if
5062 test "x$enable_dependency_tracking" != xno \
5063 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5064 am__fastdepCC_TRUE=
5065 am__fastdepCC_FALSE='#'
5066else
5067 am__fastdepCC_TRUE='#'
5068 am__fastdepCC_FALSE=
5069fi
5070
5071
5072
5073ac_ext=c
5074ac_cpp='$CPP $CPPFLAGS'
5075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5079$as_echo_n "checking how to run the C preprocessor... " >&6; }
5080# On Suns, sometimes $CPP names a directory.
5081if test -n "$CPP" && test -d "$CPP"; then
5082 CPP=
5083fi
5084if test -z "$CPP"; then
5085 if test "${ac_cv_prog_CPP+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087else
5088 # Double quotes because CPP needs to be expanded
5089 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5090 do
5091 ac_preproc_ok=false
5092for ac_c_preproc_warn_flag in '' yes
5093do
5094 # Use a header file that comes with gcc, so configuring glibc
5095 # with a fresh cross-compiler works.
5096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5097 # <limits.h> exists even on freestanding compilers.
5098 # On the NeXT, cc -E runs the code through the compiler's parser,
5099 # not just through cpp. "Syntax error" is here to catch this case.
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h. */
5102#ifdef __STDC__
5103# include <limits.h>
5104#else
5105# include <assert.h>
5106#endif
5107 Syntax error
5108_ACEOF
5109if ac_fn_c_try_cpp "$LINENO"; then :
5110
5111else
5112 # Broken: fails on valid input.
5113continue
5114fi
5115rm -f conftest.err conftest.i conftest.$ac_ext
5116
5117 # OK, works on sane cases. Now check whether nonexistent headers
5118 # can be detected and how.
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h. */
5121#include <ac_nonexistent.h>
5122_ACEOF
5123if ac_fn_c_try_cpp "$LINENO"; then :
5124 # Broken: success on invalid input.
5125continue
5126else
5127 # Passes both tests.
5128ac_preproc_ok=:
5129break
5130fi
5131rm -f conftest.err conftest.i conftest.$ac_ext
5132
5133done
5134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5135rm -f conftest.i conftest.err conftest.$ac_ext
5136if $ac_preproc_ok; then :
5137 break
5138fi
5139
5140 done
5141 ac_cv_prog_CPP=$CPP
5142
5143fi
5144 CPP=$ac_cv_prog_CPP
5145else
5146 ac_cv_prog_CPP=$CPP
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5149$as_echo "$CPP" >&6; }
5150ac_preproc_ok=false
5151for ac_c_preproc_warn_flag in '' yes
5152do
5153 # Use a header file that comes with gcc, so configuring glibc
5154 # with a fresh cross-compiler works.
5155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5156 # <limits.h> exists even on freestanding compilers.
5157 # On the NeXT, cc -E runs the code through the compiler's parser,
5158 # not just through cpp. "Syntax error" is here to catch this case.
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160/* end confdefs.h. */
5161#ifdef __STDC__
5162# include <limits.h>
5163#else
5164# include <assert.h>
5165#endif
5166 Syntax error
5167_ACEOF
5168if ac_fn_c_try_cpp "$LINENO"; then :
5169
5170else
5171 # Broken: fails on valid input.
5172continue
5173fi
5174rm -f conftest.err conftest.i conftest.$ac_ext
5175
5176 # OK, works on sane cases. Now check whether nonexistent headers
5177 # can be detected and how.
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h. */
5180#include <ac_nonexistent.h>
5181_ACEOF
5182if ac_fn_c_try_cpp "$LINENO"; then :
5183 # Broken: success on invalid input.
5184continue
5185else
5186 # Passes both tests.
5187ac_preproc_ok=:
5188break
5189fi
5190rm -f conftest.err conftest.i conftest.$ac_ext
5191
5192done
5193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5194rm -f conftest.i conftest.err conftest.$ac_ext
5195if $ac_preproc_ok; then :
5196
5197else
5198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5200as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5201See \`config.log' for more details" "$LINENO" 5 ; }
5202fi
5203
5204ac_ext=c
5205ac_cpp='$CPP $CPPFLAGS'
5206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209
5210
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5212$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5213if test "${ac_cv_path_GREP+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 if test -z "$GREP"; then
5217 ac_path_GREP_found=false
5218 # Loop through the user's path and test for each of PROGNAME-LIST
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5221do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_prog in grep ggrep; do
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5227 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5228# Check for GNU ac_path_GREP and select it if it is found.
5229 # Check for GNU $ac_path_GREP
5230case `"$ac_path_GREP" --version 2>&1` in
5231*GNU*)
5232 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5233*)
5234 ac_count=0
5235 $as_echo_n 0123456789 >"conftest.in"
5236 while :
5237 do
5238 cat "conftest.in" "conftest.in" >"conftest.tmp"
5239 mv "conftest.tmp" "conftest.in"
5240 cp "conftest.in" "conftest.nl"
5241 $as_echo 'GREP' >> "conftest.nl"
5242 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5244 as_fn_arith $ac_count + 1 && ac_count=$as_val
5245 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5246 # Best one so far, save it but keep looking for a better one
5247 ac_cv_path_GREP="$ac_path_GREP"
5248 ac_path_GREP_max=$ac_count
5249 fi
5250 # 10*(2^10) chars as input seems more than enough
5251 test $ac_count -gt 10 && break
5252 done
5253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5254esac
5255
5256 $ac_path_GREP_found && break 3
5257 done
5258 done
5259 done
5260IFS=$as_save_IFS
5261 if test -z "$ac_cv_path_GREP"; then
5262 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5263 fi
5264else
5265 ac_cv_path_GREP=$GREP
5266fi
5267
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5270$as_echo "$ac_cv_path_GREP" >&6; }
5271 GREP="$ac_cv_path_GREP"
5272
5273
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5275$as_echo_n "checking for egrep... " >&6; }
5276if test "${ac_cv_path_EGREP+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5278else
5279 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5280 then ac_cv_path_EGREP="$GREP -E"
5281 else
5282 if test -z "$EGREP"; then
5283 ac_path_EGREP_found=false
5284 # Loop through the user's path and test for each of PROGNAME-LIST
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5287do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_prog in egrep; do
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5293 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5294# Check for GNU ac_path_EGREP and select it if it is found.
5295 # Check for GNU $ac_path_EGREP
5296case `"$ac_path_EGREP" --version 2>&1` in
5297*GNU*)
5298 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5299*)
5300 ac_count=0
5301 $as_echo_n 0123456789 >"conftest.in"
5302 while :
5303 do
5304 cat "conftest.in" "conftest.in" >"conftest.tmp"
5305 mv "conftest.tmp" "conftest.in"
5306 cp "conftest.in" "conftest.nl"
5307 $as_echo 'EGREP' >> "conftest.nl"
5308 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5310 as_fn_arith $ac_count + 1 && ac_count=$as_val
5311 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5312 # Best one so far, save it but keep looking for a better one
5313 ac_cv_path_EGREP="$ac_path_EGREP"
5314 ac_path_EGREP_max=$ac_count
5315 fi
5316 # 10*(2^10) chars as input seems more than enough
5317 test $ac_count -gt 10 && break
5318 done
5319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5320esac
5321
5322 $ac_path_EGREP_found && break 3
5323 done
5324 done
5325 done
5326IFS=$as_save_IFS
5327 if test -z "$ac_cv_path_EGREP"; then
5328 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5329 fi
5330else
5331 ac_cv_path_EGREP=$EGREP
5332fi
5333
5334 fi
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5337$as_echo "$ac_cv_path_EGREP" >&6; }
5338 EGREP="$ac_cv_path_EGREP"
5339
5340
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5342$as_echo_n "checking for ANSI C header files... " >&6; }
5343if test "${ac_cv_header_stdc+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345else
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h. */
5348#include <stdlib.h>
5349#include <stdarg.h>
5350#include <string.h>
5351#include <float.h>
5352
5353int
5354main ()
5355{
5356
5357 ;
5358 return 0;
5359}
5360_ACEOF
5361if ac_fn_c_try_compile "$LINENO"; then :
5362 ac_cv_header_stdc=yes
5363else
5364 ac_cv_header_stdc=no
5365fi
5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367
5368if test $ac_cv_header_stdc = yes; then
5369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371/* end confdefs.h. */
5372#include <string.h>
5373
5374_ACEOF
5375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376 $EGREP "memchr" >/dev/null 2>&1; then :
5377
5378else
5379 ac_cv_header_stdc=no
5380fi
5381rm -f conftest*
5382
5383fi
5384
5385if test $ac_cv_header_stdc = yes; then
5386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h. */
5389#include <stdlib.h>
5390
5391_ACEOF
5392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5393 $EGREP "free" >/dev/null 2>&1; then :
5394
5395else
5396 ac_cv_header_stdc=no
5397fi
5398rm -f conftest*
5399
5400fi
5401
5402if test $ac_cv_header_stdc = yes; then
5403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5404 if test "$cross_compiling" = yes; then :
5405 :
5406else
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h. */
5409#include <ctype.h>
5410#include <stdlib.h>
5411#if ((' ' & 0x0FF) == 0x020)
5412# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5413# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5414#else
5415# define ISLOWER(c) \
5416 (('a' <= (c) && (c) <= 'i') \
5417 || ('j' <= (c) && (c) <= 'r') \
5418 || ('s' <= (c) && (c) <= 'z'))
5419# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5420#endif
5421
5422#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5423int
5424main ()
5425{
5426 int i;
5427 for (i = 0; i < 256; i++)
5428 if (XOR (islower (i), ISLOWER (i))
5429 || toupper (i) != TOUPPER (i))
5430 return 2;
5431 return 0;
5432}
5433_ACEOF
5434if ac_fn_c_try_run "$LINENO"; then :
5435
5436else
5437 ac_cv_header_stdc=no
5438fi
5439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5440 conftest.$ac_objext conftest.beam conftest.$ac_ext
5441fi
5442
5443fi
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5446$as_echo "$ac_cv_header_stdc" >&6; }
5447if test $ac_cv_header_stdc = yes; then
5448
5449$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5450
5451fi
5452
5453# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5454for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5455 inttypes.h stdint.h unistd.h
5456do :
5457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5458ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5459"
5460if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5461 cat >>confdefs.h <<_ACEOF
5462#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5463_ACEOF
5464
5465fi
5466
5467done
5468
5469
5470
5471 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5472if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5473 MINIX=yes
5474else
5475 MINIX=
5476fi
5477
5478
5479 if test "$MINIX" = yes; then
5480
5481$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5482
5483
5484$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5485
5486
5487$as_echo "#define _MINIX 1" >>confdefs.h
5488
5489 fi
5490
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5493$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5494if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5496else
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h. */
5499
5500# define __EXTENSIONS__ 1
5501 $ac_includes_default
5502int
5503main ()
5504{
5505
5506 ;
5507 return 0;
5508}
5509_ACEOF
5510if ac_fn_c_try_compile "$LINENO"; then :
5511 ac_cv_safe_to_define___extensions__=yes
5512else
5513 ac_cv_safe_to_define___extensions__=no
5514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5518$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5519 test $ac_cv_safe_to_define___extensions__ = yes &&
5520 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5521
5522 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5523
5524 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5525
5526 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5527
5528 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5529
5530
5531
5532
5533# Make sure we can run config.sub.
5534$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5535 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5536
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5538$as_echo_n "checking build system type... " >&6; }
5539if test "${ac_cv_build+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541else
5542 ac_build_alias=$build_alias
5543test "x$ac_build_alias" = x &&
5544 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5545test "x$ac_build_alias" = x &&
5546 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5547ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5549
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5552$as_echo "$ac_cv_build" >&6; }
5553case $ac_cv_build in
5554*-*-*) ;;
5555*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5556esac
5557build=$ac_cv_build
5558ac_save_IFS=$IFS; IFS='-'
5559set x $ac_cv_build
5560shift
5561build_cpu=$1
5562build_vendor=$2
5563shift; shift
5564# Remember, the first character of IFS is used to create $*,
5565# except with old shells:
5566build_os=$*
5567IFS=$ac_save_IFS
5568case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5569
5570
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5572$as_echo_n "checking host system type... " >&6; }
5573if test "${ac_cv_host+set}" = set; then :
5574 $as_echo_n "(cached) " >&6
5575else
5576 if test "x$host_alias" = x; then
5577 ac_cv_host=$ac_cv_build
5578else
5579 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5580 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5581fi
5582
5583fi
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5585$as_echo "$ac_cv_host" >&6; }
5586case $ac_cv_host in
5587*-*-*) ;;
5588*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5589esac
5590host=$ac_cv_host
5591ac_save_IFS=$IFS; IFS='-'
5592set x $ac_cv_host
5593shift
5594host_cpu=$1
5595host_vendor=$2
5596shift; shift
5597# Remember, the first character of IFS is used to create $*,
5598# except with old shells:
5599host_os=$*
5600IFS=$ac_save_IFS
5601case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5602
5603
5604enable_win32_dll=yes
5605
5606case $host in
5607*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5608 if test -n "$ac_tool_prefix"; then
5609 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5610set dummy ${ac_tool_prefix}as; ac_word=$2
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612$as_echo_n "checking for $ac_word... " >&6; }
5613if test "${ac_cv_prog_AS+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5615else
5616 if test -n "$AS"; then
5617 ac_cv_prog_AS="$AS" # Let the user override the test.
5618else
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 ac_cv_prog_AS="${ac_tool_prefix}as"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630done
5631 done
5632IFS=$as_save_IFS
5633
5634fi
5635fi
5636AS=$ac_cv_prog_AS
5637if test -n "$AS"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5639$as_echo "$AS" >&6; }
5640else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642$as_echo "no" >&6; }
5643fi
5644
5645
5646fi
5647if test -z "$ac_cv_prog_AS"; then
5648 ac_ct_AS=$AS
5649 # Extract the first word of "as", so it can be a program name with args.
5650set dummy as; ac_word=$2
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
5653if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655else
5656 if test -n "$ac_ct_AS"; then
5657 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_ac_ct_AS="as"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670done
5671 done
5672IFS=$as_save_IFS
5673
5674fi
5675fi
5676ac_ct_AS=$ac_cv_prog_ac_ct_AS
5677if test -n "$ac_ct_AS"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5679$as_echo "$ac_ct_AS" >&6; }
5680else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
5683fi
5684
5685 if test "x$ac_ct_AS" = x; then
5686 AS="false"
5687 else
5688 case $cross_compiling:$ac_tool_warned in
5689yes:)
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692ac_tool_warned=yes ;;
5693esac
5694 AS=$ac_ct_AS
5695 fi
5696else
5697 AS="$ac_cv_prog_AS"
5698fi
5699
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5702set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704$as_echo_n "checking for $ac_word... " >&6; }
5705if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5707else
5708 if test -n "$DLLTOOL"; then
5709 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5710else
5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722done
5723 done
5724IFS=$as_save_IFS
5725
5726fi
5727fi
5728DLLTOOL=$ac_cv_prog_DLLTOOL
5729if test -n "$DLLTOOL"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5731$as_echo "$DLLTOOL" >&6; }
5732else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734$as_echo "no" >&6; }
5735fi
5736
5737
5738fi
5739if test -z "$ac_cv_prog_DLLTOOL"; then
5740 ac_ct_DLLTOOL=$DLLTOOL
5741 # Extract the first word of "dlltool", so it can be a program name with args.
5742set dummy dlltool; ac_word=$2
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744$as_echo_n "checking for $ac_word... " >&6; }
5745if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5747else
5748 if test -n "$ac_ct_DLLTOOL"; then
5749 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5750else
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762done
5763 done
5764IFS=$as_save_IFS
5765
5766fi
5767fi
5768ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5769if test -n "$ac_ct_DLLTOOL"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5771$as_echo "$ac_ct_DLLTOOL" >&6; }
5772else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775fi
5776
5777 if test "x$ac_ct_DLLTOOL" = x; then
5778 DLLTOOL="false"
5779 else
5780 case $cross_compiling:$ac_tool_warned in
5781yes:)
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784ac_tool_warned=yes ;;
5785esac
5786 DLLTOOL=$ac_ct_DLLTOOL
5787 fi
5788else
5789 DLLTOOL="$ac_cv_prog_DLLTOOL"
5790fi
5791
5792 if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5794set dummy ${ac_tool_prefix}objdump; ac_word=$2
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796$as_echo_n "checking for $ac_word... " >&6; }
5797if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799else
5800 if test -n "$OBJDUMP"; then
5801 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815 done
5816IFS=$as_save_IFS
5817
5818fi
5819fi
5820OBJDUMP=$ac_cv_prog_OBJDUMP
5821if test -n "$OBJDUMP"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5823$as_echo "$OBJDUMP" >&6; }
5824else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
5827fi
5828
5829
5830fi
5831if test -z "$ac_cv_prog_OBJDUMP"; then
5832 ac_ct_OBJDUMP=$OBJDUMP
5833 # Extract the first word of "objdump", so it can be a program name with args.
5834set dummy objdump; ac_word=$2
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
5837if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839else
5840 if test -n "$ac_ct_OBJDUMP"; then
5841 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855 done
5856IFS=$as_save_IFS
5857
5858fi
5859fi
5860ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5861if test -n "$ac_ct_OBJDUMP"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5863$as_echo "$ac_ct_OBJDUMP" >&6; }
5864else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866$as_echo "no" >&6; }
5867fi
5868
5869 if test "x$ac_ct_OBJDUMP" = x; then
5870 OBJDUMP="false"
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873yes:)
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876ac_tool_warned=yes ;;
5877esac
5878 OBJDUMP=$ac_ct_OBJDUMP
5879 fi
5880else
5881 OBJDUMP="$ac_cv_prog_OBJDUMP"
5882fi
5883
5884 ;;
5885esac
5886
5887test -z "$AS" && AS=as
5888
5889
5890
5891
5892
5893test -z "$DLLTOOL" && DLLTOOL=dlltool
5894
5895
5896
5897
5898
5899test -z "$OBJDUMP" && OBJDUMP=objdump
5900
5901
5902
5903
5904
5905
5906
5907case `pwd` in
5908 *\ * | *\ *)
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5910$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5911esac
5912
5913
5914
5915macro_version='2.2.6b'
5916macro_revision='1.3017'
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930ltmain="$ac_aux_dir/ltmain.sh"
5931
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5933$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5934if test "${ac_cv_path_SED+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936else
5937 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5938 for ac_i in 1 2 3 4 5 6 7; do
5939 ac_script="$ac_script$as_nl$ac_script"
5940 done
5941 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5942 { ac_script=; unset ac_script;}
5943 if test -z "$SED"; then
5944 ac_path_SED_found=false
5945 # Loop through the user's path and test for each of PROGNAME-LIST
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_prog in sed gsed; do
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5954 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5955# Check for GNU ac_path_SED and select it if it is found.
5956 # Check for GNU $ac_path_SED
5957case `"$ac_path_SED" --version 2>&1` in
5958*GNU*)
5959 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5960*)
5961 ac_count=0
5962 $as_echo_n 0123456789 >"conftest.in"
5963 while :
5964 do
5965 cat "conftest.in" "conftest.in" >"conftest.tmp"
5966 mv "conftest.tmp" "conftest.in"
5967 cp "conftest.in" "conftest.nl"
5968 $as_echo '' >> "conftest.nl"
5969 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5971 as_fn_arith $ac_count + 1 && ac_count=$as_val
5972 if test $ac_count -gt ${ac_path_SED_max-0}; then
5973 # Best one so far, save it but keep looking for a better one
5974 ac_cv_path_SED="$ac_path_SED"
5975 ac_path_SED_max=$ac_count
5976 fi
5977 # 10*(2^10) chars as input seems more than enough
5978 test $ac_count -gt 10 && break
5979 done
5980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5981esac
5982
5983 $ac_path_SED_found && break 3
5984 done
5985 done
5986 done
5987IFS=$as_save_IFS
5988 if test -z "$ac_cv_path_SED"; then
5989 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5990 fi
5991else
5992 ac_cv_path_SED=$SED
5993fi
5994
5995fi
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5997$as_echo "$ac_cv_path_SED" >&6; }
5998 SED="$ac_cv_path_SED"
5999 rm -f conftest.sed
6000
6001test -z "$SED" && SED=sed
6002Xsed="$SED -e 1s/^X//"
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6015$as_echo_n "checking for fgrep... " >&6; }
6016if test "${ac_cv_path_FGREP+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6018else
6019 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6020 then ac_cv_path_FGREP="$GREP -F"
6021 else
6022 if test -z "$FGREP"; then
6023 ac_path_FGREP_found=false
6024 # Loop through the user's path and test for each of PROGNAME-LIST
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_prog in fgrep; do
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6033 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6034# Check for GNU ac_path_FGREP and select it if it is found.
6035 # Check for GNU $ac_path_FGREP
6036case `"$ac_path_FGREP" --version 2>&1` in
6037*GNU*)
6038 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6039*)
6040 ac_count=0
6041 $as_echo_n 0123456789 >"conftest.in"
6042 while :
6043 do
6044 cat "conftest.in" "conftest.in" >"conftest.tmp"
6045 mv "conftest.tmp" "conftest.in"
6046 cp "conftest.in" "conftest.nl"
6047 $as_echo 'FGREP' >> "conftest.nl"
6048 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6050 as_fn_arith $ac_count + 1 && ac_count=$as_val
6051 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6052 # Best one so far, save it but keep looking for a better one
6053 ac_cv_path_FGREP="$ac_path_FGREP"
6054 ac_path_FGREP_max=$ac_count
6055 fi
6056 # 10*(2^10) chars as input seems more than enough
6057 test $ac_count -gt 10 && break
6058 done
6059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6060esac
6061
6062 $ac_path_FGREP_found && break 3
6063 done
6064 done
6065 done
6066IFS=$as_save_IFS
6067 if test -z "$ac_cv_path_FGREP"; then
6068 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6069 fi
6070else
6071 ac_cv_path_FGREP=$FGREP
6072fi
6073
6074 fi
6075fi
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6077$as_echo "$ac_cv_path_FGREP" >&6; }
6078 FGREP="$ac_cv_path_FGREP"
6079
6080
6081test -z "$GREP" && GREP=grep
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101# Check whether --with-gnu-ld was given.
6102if test "${with_gnu_ld+set}" = set; then :
6103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6104else
6105 with_gnu_ld=no
6106fi
6107
6108ac_prog=ld
6109if test "$GCC" = yes; then
6110 # Check if gcc -print-prog-name=ld gives a path.
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6112$as_echo_n "checking for ld used by $CC... " >&6; }
6113 case $host in
6114 *-*-mingw*)
6115 # gcc leaves a trailing carriage return which upsets mingw
6116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6117 *)
6118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6119 esac
6120 case $ac_prog in
6121 # Accept absolute paths.
6122 [\\/]* | ?:[\\/]*)
6123 re_direlt='/[^/][^/]*/\.\./'
6124 # Canonicalize the pathname of ld
6125 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6126 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6127 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6128 done
6129 test -z "$LD" && LD="$ac_prog"
6130 ;;
6131 "")
6132 # If it fails, then pretend we aren't using GCC.
6133 ac_prog=ld
6134 ;;
6135 *)
6136 # If it is relative, then search for the first ld in PATH.
6137 with_gnu_ld=unknown
6138 ;;
6139 esac
6140elif test "$with_gnu_ld" = yes; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6142$as_echo_n "checking for GNU ld... " >&6; }
6143else
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6145$as_echo_n "checking for non-GNU ld... " >&6; }
6146fi
6147if test "${lt_cv_path_LD+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149else
6150 if test -z "$LD"; then
6151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6152 for ac_dir in $PATH; do
6153 IFS="$lt_save_ifs"
6154 test -z "$ac_dir" && ac_dir=.
6155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6156 lt_cv_path_LD="$ac_dir/$ac_prog"
6157 # Check to see if the program is GNU ld. I'd rather use --version,
6158 # but apparently some variants of GNU ld only accept -v.
6159 # Break only if it was the GNU/non-GNU ld that we prefer.
6160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6161 *GNU* | *'with BFD'*)
6162 test "$with_gnu_ld" != no && break
6163 ;;
6164 *)
6165 test "$with_gnu_ld" != yes && break
6166 ;;
6167 esac
6168 fi
6169 done
6170 IFS="$lt_save_ifs"
6171else
6172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6173fi
6174fi
6175
6176LD="$lt_cv_path_LD"
6177if test -n "$LD"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6179$as_echo "$LD" >&6; }
6180else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182$as_echo "no" >&6; }
6183fi
6184test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6186$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6187if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6189else
6190 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6191case `$LD -v 2>&1 </dev/null` in
6192*GNU* | *'with BFD'*)
6193 lt_cv_prog_gnu_ld=yes
6194 ;;
6195*)
6196 lt_cv_prog_gnu_ld=no
6197 ;;
6198esac
6199fi
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6201$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6202with_gnu_ld=$lt_cv_prog_gnu_ld
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6213$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6214if test "${lt_cv_path_NM+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6216else
6217 if test -n "$NM"; then
6218 # Let the user override the test.
6219 lt_cv_path_NM="$NM"
6220else
6221 lt_nm_to_check="${ac_tool_prefix}nm"
6222 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6223 lt_nm_to_check="$lt_nm_to_check nm"
6224 fi
6225 for lt_tmp_nm in $lt_nm_to_check; do
6226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6227 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6228 IFS="$lt_save_ifs"
6229 test -z "$ac_dir" && ac_dir=.
6230 tmp_nm="$ac_dir/$lt_tmp_nm"
6231 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6232 # Check to see if the nm accepts a BSD-compat flag.
6233 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6234 # nm: unknown option "B" ignored
6235 # Tru64's nm complains that /dev/null is an invalid object file
6236 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6237 */dev/null* | *'Invalid file or object type'*)
6238 lt_cv_path_NM="$tmp_nm -B"
6239 break
6240 ;;
6241 *)
6242 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6243 */dev/null*)
6244 lt_cv_path_NM="$tmp_nm -p"
6245 break
6246 ;;
6247 *)
6248 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6249 continue # so that we can try to find one that supports BSD flags
6250 ;;
6251 esac
6252 ;;
6253 esac
6254 fi
6255 done
6256 IFS="$lt_save_ifs"
6257 done
6258 : ${lt_cv_path_NM=no}
6259fi
6260fi
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6262$as_echo "$lt_cv_path_NM" >&6; }
6263if test "$lt_cv_path_NM" != "no"; then
6264 NM="$lt_cv_path_NM"
6265else
6266 # Didn't find any BSD compatible name lister, look for dumpbin.
6267 if test -n "$ac_tool_prefix"; then
6268 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6269 do
6270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6271set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273$as_echo_n "checking for $ac_word... " >&6; }
6274if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6276else
6277 if test -n "$DUMPBIN"; then
6278 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6279else
6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291done
6292 done
6293IFS=$as_save_IFS
6294
6295fi
6296fi
6297DUMPBIN=$ac_cv_prog_DUMPBIN
6298if test -n "$DUMPBIN"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6300$as_echo "$DUMPBIN" >&6; }
6301else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303$as_echo "no" >&6; }
6304fi
6305
6306
6307 test -n "$DUMPBIN" && break
6308 done
6309fi
6310if test -z "$DUMPBIN"; then
6311 ac_ct_DUMPBIN=$DUMPBIN
6312 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6313do
6314 # Extract the first word of "$ac_prog", so it can be a program name with args.
6315set dummy $ac_prog; ac_word=$2
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317$as_echo_n "checking for $ac_word... " >&6; }
6318if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320else
6321 if test -n "$ac_ct_DUMPBIN"; then
6322 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6323else
6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335done
6336 done
6337IFS=$as_save_IFS
6338
6339fi
6340fi
6341ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6342if test -n "$ac_ct_DUMPBIN"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6344$as_echo "$ac_ct_DUMPBIN" >&6; }
6345else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347$as_echo "no" >&6; }
6348fi
6349
6350
6351 test -n "$ac_ct_DUMPBIN" && break
6352done
6353
6354 if test "x$ac_ct_DUMPBIN" = x; then
6355 DUMPBIN=":"
6356 else
6357 case $cross_compiling:$ac_tool_warned in
6358yes:)
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361ac_tool_warned=yes ;;
6362esac
6363 DUMPBIN=$ac_ct_DUMPBIN
6364 fi
6365fi
6366
6367
6368 if test "$DUMPBIN" != ":"; then
6369 NM="$DUMPBIN"
6370 fi
6371fi
6372test -z "$NM" && NM=nm
6373
6374
6375
6376
6377
6378
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6380$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6381if test "${lt_cv_nm_interface+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6383else
6384 lt_cv_nm_interface="BSD nm"
6385 echo "int some_variable = 0;" > conftest.$ac_ext
6386 (eval echo "\"\$as_me:6386: $ac_compile\"" >&5)
6387 (eval "$ac_compile" 2>conftest.err)
6388 cat conftest.err >&5
6389 (eval echo "\"\$as_me:6389: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6390 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6391 cat conftest.err >&5
6392 (eval echo "\"\$as_me:6392: output\"" >&5)
6393 cat conftest.out >&5
6394 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6395 lt_cv_nm_interface="MS dumpbin"
6396 fi
6397 rm -f conftest*
6398fi
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6400$as_echo "$lt_cv_nm_interface" >&6; }
6401
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6403$as_echo_n "checking whether ln -s works... " >&6; }
6404LN_S=$as_ln_s
6405if test "$LN_S" = "ln -s"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6407$as_echo "yes" >&6; }
6408else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6410$as_echo "no, using $LN_S" >&6; }
6411fi
6412
6413# find the maximum length of command line arguments
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6415$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6416if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418else
6419 i=0
6420 teststring="ABCD"
6421
6422 case $build_os in
6423 msdosdjgpp*)
6424 # On DJGPP, this test can blow up pretty badly due to problems in libc
6425 # (any single argument exceeding 2000 bytes causes a buffer overrun
6426 # during glob expansion). Even if it were fixed, the result of this
6427 # check would be larger than it should be.
6428 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6429 ;;
6430
6431 gnu*)
6432 # Under GNU Hurd, this test is not required because there is
6433 # no limit to the length of command line arguments.
6434 # Libtool will interpret -1 as no limit whatsoever
6435 lt_cv_sys_max_cmd_len=-1;
6436 ;;
6437
6438 cygwin* | mingw* | cegcc*)
6439 # On Win9x/ME, this test blows up -- it succeeds, but takes
6440 # about 5 minutes as the teststring grows exponentially.
6441 # Worse, since 9x/ME are not pre-emptively multitasking,
6442 # you end up with a "frozen" computer, even though with patience
6443 # the test eventually succeeds (with a max line length of 256k).
6444 # Instead, let's just punt: use the minimum linelength reported by
6445 # all of the supported platforms: 8192 (on NT/2K/XP).
6446 lt_cv_sys_max_cmd_len=8192;
6447 ;;
6448
6449 amigaos*)
6450 # On AmigaOS with pdksh, this test takes hours, literally.
6451 # So we just punt and use a minimum line length of 8192.
6452 lt_cv_sys_max_cmd_len=8192;
6453 ;;
6454
6455 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6456 # This has been around since 386BSD, at least. Likely further.
6457 if test -x /sbin/sysctl; then
6458 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6459 elif test -x /usr/sbin/sysctl; then
6460 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6461 else
6462 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6463 fi
6464 # And add a safety zone
6465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6467 ;;
6468
6469 interix*)
6470 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6471 lt_cv_sys_max_cmd_len=196608
6472 ;;
6473
6474 osf*)
6475 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6476 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6477 # nice to cause kernel panics so lets avoid the loop below.
6478 # First set a reasonable default.
6479 lt_cv_sys_max_cmd_len=16384
6480 #
6481 if test -x /sbin/sysconfig; then
6482 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6483 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6484 esac
6485 fi
6486 ;;
6487 sco3.2v5*)
6488 lt_cv_sys_max_cmd_len=102400
6489 ;;
6490 sysv5* | sco5v6* | sysv4.2uw2*)
6491 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6492 if test -n "$kargmax"; then
6493 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6494 else
6495 lt_cv_sys_max_cmd_len=32768
6496 fi
6497 ;;
6498 *)
6499 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6500 if test -n "$lt_cv_sys_max_cmd_len"; then
6501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6503 else
6504 # Make teststring a little bigger before we do anything with it.
6505 # a 1K string should be a reasonable start.
6506 for i in 1 2 3 4 5 6 7 8 ; do
6507 teststring=$teststring$teststring
6508 done
6509 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6510 # If test is not a shell built-in, we'll probably end up computing a
6511 # maximum length that is only half of the actual maximum length, but
6512 # we can't tell.
6513 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6514 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6515 test $i != 17 # 1/2 MB should be enough
6516 do
6517 i=`expr $i + 1`
6518 teststring=$teststring$teststring
6519 done
6520 # Only check the string length outside the loop.
6521 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6522 teststring=
6523 # Add a significant safety factor because C++ compilers can tack on
6524 # massive amounts of additional arguments before passing them to the
6525 # linker. It appears as though 1/2 is a usable value.
6526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6527 fi
6528 ;;
6529 esac
6530
6531fi
6532
6533if test -n $lt_cv_sys_max_cmd_len ; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6535$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6536else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6538$as_echo "none" >&6; }
6539fi
6540max_cmd_len=$lt_cv_sys_max_cmd_len
6541
6542
6543
6544
6545
6546
6547: ${CP="cp -f"}
6548: ${MV="mv -f"}
6549: ${RM="rm -f"}
6550
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6552$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6553# Try some XSI features
6554xsi_shell=no
6555( _lt_dummy="a/b/c"
6556 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6557 = c,a/b,, \
6558 && eval 'test $(( 1 + 1 )) -eq 2 \
6559 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6560 && xsi_shell=yes
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6562$as_echo "$xsi_shell" >&6; }
6563
6564
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6566$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6567lt_shell_append=no
6568( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6569 >/dev/null 2>&1 \
6570 && lt_shell_append=yes
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6572$as_echo "$lt_shell_append" >&6; }
6573
6574
6575if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6576 lt_unset=unset
6577else
6578 lt_unset=false
6579fi
6580
6581
6582
6583
6584
6585# test EBCDIC or ASCII
6586case `echo X|tr X '\101'` in
6587 A) # ASCII based system
6588 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6589 lt_SP2NL='tr \040 \012'
6590 lt_NL2SP='tr \015\012 \040\040'
6591 ;;
6592 *) # EBCDIC based system
6593 lt_SP2NL='tr \100 \n'
6594 lt_NL2SP='tr \r\n \100\100'
6595 ;;
6596esac
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6607$as_echo_n "checking for $LD option to reload object files... " >&6; }
6608if test "${lt_cv_ld_reload_flag+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6610else
6611 lt_cv_ld_reload_flag='-r'
6612fi
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6614$as_echo "$lt_cv_ld_reload_flag" >&6; }
6615reload_flag=$lt_cv_ld_reload_flag
6616case $reload_flag in
6617"" | " "*) ;;
6618*) reload_flag=" $reload_flag" ;;
6619esac
6620reload_cmds='$LD$reload_flag -o $output$reload_objs'
6621case $host_os in
6622 darwin*)
6623 if test "$GCC" = yes; then
6624 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6625 else
6626 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6627 fi
6628 ;;
6629esac
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6641set dummy ${ac_tool_prefix}objdump; ac_word=$2
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643$as_echo_n "checking for $ac_word... " >&6; }
6644if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6646else
6647 if test -n "$OBJDUMP"; then
6648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6649else
6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651for as_dir in $PATH
6652do
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661done
6662 done
6663IFS=$as_save_IFS
6664
6665fi
6666fi
6667OBJDUMP=$ac_cv_prog_OBJDUMP
6668if test -n "$OBJDUMP"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6670$as_echo "$OBJDUMP" >&6; }
6671else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673$as_echo "no" >&6; }
6674fi
6675
6676
6677fi
6678if test -z "$ac_cv_prog_OBJDUMP"; then
6679 ac_ct_OBJDUMP=$OBJDUMP
6680 # Extract the first word of "objdump", so it can be a program name with args.
6681set dummy objdump; ac_word=$2
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683$as_echo_n "checking for $ac_word... " >&6; }
6684if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686else
6687 if test -n "$ac_ct_OBJDUMP"; then
6688 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6689else
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701done
6702 done
6703IFS=$as_save_IFS
6704
6705fi
6706fi
6707ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6708if test -n "$ac_ct_OBJDUMP"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6710$as_echo "$ac_ct_OBJDUMP" >&6; }
6711else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713$as_echo "no" >&6; }
6714fi
6715
6716 if test "x$ac_ct_OBJDUMP" = x; then
6717 OBJDUMP="false"
6718 else
6719 case $cross_compiling:$ac_tool_warned in
6720yes:)
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723ac_tool_warned=yes ;;
6724esac
6725 OBJDUMP=$ac_ct_OBJDUMP
6726 fi
6727else
6728 OBJDUMP="$ac_cv_prog_OBJDUMP"
6729fi
6730
6731test -z "$OBJDUMP" && OBJDUMP=objdump
6732
6733
6734
6735
6736
6737
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6739$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6740if test "${lt_cv_deplibs_check_method+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742else
6743 lt_cv_file_magic_cmd='$MAGIC_CMD'
6744lt_cv_file_magic_test_file=
6745lt_cv_deplibs_check_method='unknown'
6746# Need to set the preceding variable on all platforms that support
6747# interlibrary dependencies.
6748# 'none' -- dependencies not supported.
6749# `unknown' -- same as none, but documents that we really don't know.
6750# 'pass_all' -- all dependencies passed with no checks.
6751# 'test_compile' -- check by making test program.
6752# 'file_magic [[regex]]' -- check by looking for files in library path
6753# which responds to the $file_magic_cmd with a given extended regex.
6754# If you have `file' or equivalent on your system and you're not sure
6755# whether `pass_all' will *always* work, you probably want this one.
6756
6757case $host_os in
6758aix[4-9]*)
6759 lt_cv_deplibs_check_method=pass_all
6760 ;;
6761
6762beos*)
6763 lt_cv_deplibs_check_method=pass_all
6764 ;;
6765
6766bsdi[45]*)
6767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6768 lt_cv_file_magic_cmd='/usr/bin/file -L'
6769 lt_cv_file_magic_test_file=/shlib/libc.so
6770 ;;
6771
6772cygwin*)
6773 # func_win32_libid is a shell function defined in ltmain.sh
6774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6775 lt_cv_file_magic_cmd='func_win32_libid'
6776 ;;
6777
6778mingw* | pw32*)
6779 # Base MSYS/MinGW do not provide the 'file' command needed by
6780 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6781 # unless we find 'file', for example because we are cross-compiling.
6782 if ( file / ) >/dev/null 2>&1; then
6783 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6784 lt_cv_file_magic_cmd='func_win32_libid'
6785 else
6786 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6787 lt_cv_file_magic_cmd='$OBJDUMP -f'
6788 fi
6789 ;;
6790
6791cegcc)
6792 # use the weaker test based on 'objdump'. See mingw*.
6793 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6794 lt_cv_file_magic_cmd='$OBJDUMP -f'
6795 ;;
6796
6797darwin* | rhapsody*)
6798 lt_cv_deplibs_check_method=pass_all
6799 ;;
6800
6801freebsd* | dragonfly*)
6802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6803 case $host_cpu in
6804 i*86 )
6805 # Not sure whether the presence of OpenBSD here was a mistake.
6806 # Let's accept both of them until this is cleared up.
6807 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6808 lt_cv_file_magic_cmd=/usr/bin/file
6809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6810 ;;
6811 esac
6812 else
6813 lt_cv_deplibs_check_method=pass_all
6814 fi
6815 ;;
6816
6817gnu*)
6818 lt_cv_deplibs_check_method=pass_all
6819 ;;
6820
6821hpux10.20* | hpux11*)
6822 lt_cv_file_magic_cmd=/usr/bin/file
6823 case $host_cpu in
6824 ia64*)
6825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6826 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6827 ;;
6828 hppa*64*)
6829 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6830 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6831 ;;
6832 *)
6833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6834 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6835 ;;
6836 esac
6837 ;;
6838
6839interix[3-9]*)
6840 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6842 ;;
6843
6844irix5* | irix6* | nonstopux*)
6845 case $LD in
6846 *-32|*"-32 ") libmagic=32-bit;;
6847 *-n32|*"-n32 ") libmagic=N32;;
6848 *-64|*"-64 ") libmagic=64-bit;;
6849 *) libmagic=never-match;;
6850 esac
6851 lt_cv_deplibs_check_method=pass_all
6852 ;;
6853
6854# This must be Linux ELF.
6855linux* | k*bsd*-gnu | kopensolaris*-gnu)
6856 lt_cv_deplibs_check_method=pass_all
6857 ;;
6858
6859netbsd* | netbsdelf*-gnu)
6860 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6862 else
6863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6864 fi
6865 ;;
6866
6867newos6*)
6868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6869 lt_cv_file_magic_cmd=/usr/bin/file
6870 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6871 ;;
6872
6873*nto* | *qnx*)
6874 lt_cv_deplibs_check_method=pass_all
6875 ;;
6876
6877openbsd*)
6878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6880 else
6881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6882 fi
6883 ;;
6884
6885osf3* | osf4* | osf5*)
6886 lt_cv_deplibs_check_method=pass_all
6887 ;;
6888
6889rdos*)
6890 lt_cv_deplibs_check_method=pass_all
6891 ;;
6892
6893solaris*)
6894 lt_cv_deplibs_check_method=pass_all
6895 ;;
6896
6897sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6898 lt_cv_deplibs_check_method=pass_all
6899 ;;
6900
6901sysv4 | sysv4.3*)
6902 case $host_vendor in
6903 motorola)
6904 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]'
6905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6906 ;;
6907 ncr)
6908 lt_cv_deplibs_check_method=pass_all
6909 ;;
6910 sequent)
6911 lt_cv_file_magic_cmd='/bin/file'
6912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6913 ;;
6914 sni)
6915 lt_cv_file_magic_cmd='/bin/file'
6916 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6917 lt_cv_file_magic_test_file=/lib/libc.so
6918 ;;
6919 siemens)
6920 lt_cv_deplibs_check_method=pass_all
6921 ;;
6922 pc)
6923 lt_cv_deplibs_check_method=pass_all
6924 ;;
6925 esac
6926 ;;
6927
6928tpf*)
6929 lt_cv_deplibs_check_method=pass_all
6930 ;;
6931esac
6932
6933fi
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6935$as_echo "$lt_cv_deplibs_check_method" >&6; }
6936file_magic_cmd=$lt_cv_file_magic_cmd
6937deplibs_check_method=$lt_cv_deplibs_check_method
6938test -z "$deplibs_check_method" && deplibs_check_method=unknown
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6953set dummy ${ac_tool_prefix}ar; ac_word=$2
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955$as_echo_n "checking for $ac_word... " >&6; }
6956if test "${ac_cv_prog_AR+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6958else
6959 if test -n "$AR"; then
6960 ac_cv_prog_AR="$AR" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_AR="${ac_tool_prefix}ar"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974 done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979AR=$ac_cv_prog_AR
6980if test -n "$AR"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6982$as_echo "$AR" >&6; }
6983else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985$as_echo "no" >&6; }
6986fi
6987
6988
6989fi
6990if test -z "$ac_cv_prog_AR"; then
6991 ac_ct_AR=$AR
6992 # Extract the first word of "ar", so it can be a program name with args.
6993set dummy ar; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998else
6999 if test -n "$ac_ct_AR"; then
7000 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_ac_ct_AR="ar"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014 done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019ac_ct_AR=$ac_cv_prog_ac_ct_AR
7020if test -n "$ac_ct_AR"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7022$as_echo "$ac_ct_AR" >&6; }
7023else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028 if test "x$ac_ct_AR" = x; then
7029 AR="false"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032yes:)
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035ac_tool_warned=yes ;;
7036esac
7037 AR=$ac_ct_AR
7038 fi
7039else
7040 AR="$ac_cv_prog_AR"
7041fi
7042
7043test -z "$AR" && AR=ar
7044test -z "$AR_FLAGS" && AR_FLAGS=cru
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7058set dummy ${ac_tool_prefix}strip; ac_word=$2
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060$as_echo_n "checking for $ac_word... " >&6; }
7061if test "${ac_cv_prog_STRIP+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7063else
7064 if test -n "$STRIP"; then
7065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078done
7079 done
7080IFS=$as_save_IFS
7081
7082fi
7083fi
7084STRIP=$ac_cv_prog_STRIP
7085if test -n "$STRIP"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7087$as_echo "$STRIP" >&6; }
7088else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090$as_echo "no" >&6; }
7091fi
7092
7093
7094fi
7095if test -z "$ac_cv_prog_STRIP"; then
7096 ac_ct_STRIP=$STRIP
7097 # Extract the first word of "strip", so it can be a program name with args.
7098set dummy strip; ac_word=$2
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7102 $as_echo_n "(cached) " >&6
7103else
7104 if test -n "$ac_ct_STRIP"; then
7105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_ac_ct_STRIP="strip"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118done
7119 done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7125if test -n "$ac_ct_STRIP"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7127$as_echo "$ac_ct_STRIP" >&6; }
7128else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }
7131fi
7132
7133 if test "x$ac_ct_STRIP" = x; then
7134 STRIP=":"
7135 else
7136 case $cross_compiling:$ac_tool_warned in
7137yes:)
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7140ac_tool_warned=yes ;;
7141esac
7142 STRIP=$ac_ct_STRIP
7143 fi
7144else
7145 STRIP="$ac_cv_prog_STRIP"
7146fi
7147
7148test -z "$STRIP" && STRIP=:
7149
7150
7151
7152
7153
7154
7155if test -n "$ac_tool_prefix"; then
7156 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7157set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159$as_echo_n "checking for $ac_word... " >&6; }
7160if test "${ac_cv_prog_RANLIB+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162else
7163 if test -n "$RANLIB"; then
7164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7165else
7166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167for as_dir in $PATH
7168do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177done
7178 done
7179IFS=$as_save_IFS
7180
7181fi
7182fi
7183RANLIB=$ac_cv_prog_RANLIB
7184if test -n "$RANLIB"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7186$as_echo "$RANLIB" >&6; }
7187else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189$as_echo "no" >&6; }
7190fi
7191
7192
7193fi
7194if test -z "$ac_cv_prog_RANLIB"; then
7195 ac_ct_RANLIB=$RANLIB
7196 # Extract the first word of "ranlib", so it can be a program name with args.
7197set dummy ranlib; ac_word=$2
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199$as_echo_n "checking for $ac_word... " >&6; }
7200if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7202else
7203 if test -n "$ac_ct_RANLIB"; then
7204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_ac_ct_RANLIB="ranlib"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217done
7218 done
7219IFS=$as_save_IFS
7220
7221fi
7222fi
7223ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7224if test -n "$ac_ct_RANLIB"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7226$as_echo "$ac_ct_RANLIB" >&6; }
7227else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229$as_echo "no" >&6; }
7230fi
7231
7232 if test "x$ac_ct_RANLIB" = x; then
7233 RANLIB=":"
7234 else
7235 case $cross_compiling:$ac_tool_warned in
7236yes:)
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239ac_tool_warned=yes ;;
7240esac
7241 RANLIB=$ac_ct_RANLIB
7242 fi
7243else
7244 RANLIB="$ac_cv_prog_RANLIB"
7245fi
7246
7247test -z "$RANLIB" && RANLIB=:
7248
7249
7250
7251
7252
7253
7254# Determine commands to create old-style static archives.
7255old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7256old_postinstall_cmds='chmod 644 $oldlib'
7257old_postuninstall_cmds=
7258
7259if test -n "$RANLIB"; then
7260 case $host_os in
7261 openbsd*)
7262 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7263 ;;
7264 *)
7265 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7266 ;;
7267 esac
7268 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7269fi
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304# If no C compiler was specified, use CC.
7305LTCC=${LTCC-"$CC"}
7306
7307# If no C compiler flags were specified, use CFLAGS.
7308LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7309
7310# Allow CC to be a program name with arguments.
7311compiler=$CC
7312
7313
7314# Check for command to grab the raw symbol name followed by C symbol from nm.
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7316$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7317if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7318 $as_echo_n "(cached) " >&6
7319else
7320
7321# These are sane defaults that work on at least a few old systems.
7322# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7323
7324# Character class describing NM global symbol codes.
7325symcode='[BCDEGRST]'
7326
7327# Regexp to match symbols that can be accessed directly from C.
7328sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7329
7330# Define system-specific variables.
7331case $host_os in
7332aix*)
7333 symcode='[BCDT]'
7334 ;;
7335cygwin* | mingw* | pw32* | cegcc*)
7336 symcode='[ABCDGISTW]'
7337 ;;
7338hpux*)
7339 if test "$host_cpu" = ia64; then
7340 symcode='[ABCDEGRST]'
7341 fi
7342 ;;
7343irix* | nonstopux*)
7344 symcode='[BCDEGRST]'
7345 ;;
7346osf*)
7347 symcode='[BCDEGQRST]'
7348 ;;
7349solaris*)
7350 symcode='[BDRT]'
7351 ;;
7352sco3.2v5*)
7353 symcode='[DT]'
7354 ;;
7355sysv4.2uw2*)
7356 symcode='[DT]'
7357 ;;
7358sysv5* | sco5v6* | unixware* | OpenUNIX*)
7359 symcode='[ABDT]'
7360 ;;
7361sysv4)
7362 symcode='[DFNSTU]'
7363 ;;
7364esac
7365
7366# If we're using GNU nm, then use its standard symbol codes.
7367case `$NM -V 2>&1` in
7368*GNU* | *'with BFD'*)
7369 symcode='[ABCDGIRSTW]' ;;
7370esac
7371
7372# Transform an extracted symbol line into a proper C declaration.
7373# Some systems (esp. on ia64) link data and code symbols differently,
7374# so use this general approach.
7375lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7376
7377# Transform an extracted symbol line into symbol name and symbol address
7378lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7379lt_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'"
7380
7381# Handle CRLF in mingw tool chain
7382opt_cr=
7383case $build_os in
7384mingw*)
7385 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7386 ;;
7387esac
7388
7389# Try without a prefix underscore, then with it.
7390for ac_symprfx in "" "_"; do
7391
7392 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7393 symxfrm="\\1 $ac_symprfx\\2 \\2"
7394
7395 # Write the raw and C identifiers.
7396 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7397 # Fake it for dumpbin and say T for any non-static function
7398 # and D for any global variable.
7399 # Also find C++ and __fastcall symbols from MSVC++,
7400 # which start with @ or ?.
7401 lt_cv_sys_global_symbol_pipe="$AWK '"\
7402" {last_section=section; section=\$ 3};"\
7403" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7404" \$ 0!~/External *\|/{next};"\
7405" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7406" {if(hide[section]) next};"\
7407" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7408" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7409" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7410" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7411" ' prfx=^$ac_symprfx"
7412 else
7413 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7414 fi
7415
7416 # Check to see that the pipe works correctly.
7417 pipe_works=no
7418
7419 rm -f conftest*
7420 cat > conftest.$ac_ext <<_LT_EOF
7421#ifdef __cplusplus
7422extern "C" {
7423#endif
7424char nm_test_var;
7425void nm_test_func(void);
7426void nm_test_func(void){}
7427#ifdef __cplusplus
7428}
7429#endif
7430int main(){nm_test_var='a';nm_test_func();return(0);}
7431_LT_EOF
7432
7433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7434 (eval $ac_compile) 2>&5
7435 ac_status=$?
7436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; then
7438 # Now try to grab the symbols.
7439 nlist=conftest.nm
7440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7441 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7442 ac_status=$?
7443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444 test $ac_status = 0; } && test -s "$nlist"; then
7445 # Try sorting and uniquifying the output.
7446 if sort "$nlist" | uniq > "$nlist"T; then
7447 mv -f "$nlist"T "$nlist"
7448 else
7449 rm -f "$nlist"T
7450 fi
7451
7452 # Make sure that we snagged all the symbols we need.
7453 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7454 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7455 cat <<_LT_EOF > conftest.$ac_ext
7456#ifdef __cplusplus
7457extern "C" {
7458#endif
7459
7460_LT_EOF
7461 # Now generate the symbol file.
7462 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7463
7464 cat <<_LT_EOF >> conftest.$ac_ext
7465
7466/* The mapping between symbol names and symbols. */
7467const struct {
7468 const char *name;
7469 void *address;
7470}
7471lt__PROGRAM__LTX_preloaded_symbols[] =
7472{
7473 { "@PROGRAM@", (void *) 0 },
7474_LT_EOF
7475 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7476 cat <<\_LT_EOF >> conftest.$ac_ext
7477 {0, (void *) 0}
7478};
7479
7480/* This works around a problem in FreeBSD linker */
7481#ifdef FREEBSD_WORKAROUND
7482static const void *lt_preloaded_setup() {
7483 return lt__PROGRAM__LTX_preloaded_symbols;
7484}
7485#endif
7486
7487#ifdef __cplusplus
7488}
7489#endif
7490_LT_EOF
7491 # Now try linking the two files.
7492 mv conftest.$ac_objext conftstm.$ac_objext
7493 lt_save_LIBS="$LIBS"
7494 lt_save_CFLAGS="$CFLAGS"
7495 LIBS="conftstm.$ac_objext"
7496 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7498 (eval $ac_link) 2>&5
7499 ac_status=$?
7500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7502 pipe_works=yes
7503 fi
7504 LIBS="$lt_save_LIBS"
7505 CFLAGS="$lt_save_CFLAGS"
7506 else
7507 echo "cannot find nm_test_func in $nlist" >&5
7508 fi
7509 else
7510 echo "cannot find nm_test_var in $nlist" >&5
7511 fi
7512 else
7513 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7514 fi
7515 else
7516 echo "$progname: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7518 fi
7519 rm -rf conftest* conftst*
7520
7521 # Do not use the global_symbol_pipe unless it works.
7522 if test "$pipe_works" = yes; then
7523 break
7524 else
7525 lt_cv_sys_global_symbol_pipe=
7526 fi
7527done
7528
7529fi
7530
7531if test -z "$lt_cv_sys_global_symbol_pipe"; then
7532 lt_cv_sys_global_symbol_to_cdecl=
7533fi
7534if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7536$as_echo "failed" >&6; }
7537else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7539$as_echo "ok" >&6; }
7540fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563# Check whether --enable-libtool-lock was given.
7564if test "${enable_libtool_lock+set}" = set; then :
7565 enableval=$enable_libtool_lock;
7566fi
7567
7568test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7569
7570# Some flags need to be propagated to the compiler or linker for good
7571# libtool support.
7572case $host in
7573ia64-*-hpux*)
7574 # Find out which ABI we are using.
7575 echo 'int i;' > conftest.$ac_ext
7576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7577 (eval $ac_compile) 2>&5
7578 ac_status=$?
7579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580 test $ac_status = 0; }; then
7581 case `/usr/bin/file conftest.$ac_objext` in
7582 *ELF-32*)
7583 HPUX_IA64_MODE="32"
7584 ;;
7585 *ELF-64*)
7586 HPUX_IA64_MODE="64"
7587 ;;
7588 esac
7589 fi
7590 rm -rf conftest*
7591 ;;
7592*-*-irix6*)
7593 # Find out which ABI we are using.
7594 echo '#line 7594 "configure"' > conftest.$ac_ext
7595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7596 (eval $ac_compile) 2>&5
7597 ac_status=$?
7598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }; then
7600 if test "$lt_cv_prog_gnu_ld" = yes; then
7601 case `/usr/bin/file conftest.$ac_objext` in
7602 *32-bit*)
7603 LD="${LD-ld} -melf32bsmip"
7604 ;;
7605 *N32*)
7606 LD="${LD-ld} -melf32bmipn32"
7607 ;;
7608 *64-bit*)
7609 LD="${LD-ld} -melf64bmip"
7610 ;;
7611 esac
7612 else
7613 case `/usr/bin/file conftest.$ac_objext` in
7614 *32-bit*)
7615 LD="${LD-ld} -32"
7616 ;;
7617 *N32*)
7618 LD="${LD-ld} -n32"
7619 ;;
7620 *64-bit*)
7621 LD="${LD-ld} -64"
7622 ;;
7623 esac
7624 fi
7625 fi
7626 rm -rf conftest*
7627 ;;
7628
7629x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7630s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7631 # Find out which ABI we are using.
7632 echo 'int i;' > conftest.$ac_ext
7633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7634 (eval $ac_compile) 2>&5
7635 ac_status=$?
7636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637 test $ac_status = 0; }; then
7638 case `/usr/bin/file conftest.o` in
7639 *32-bit*)
7640 case $host in
7641 x86_64-*kfreebsd*-gnu)
7642 LD="${LD-ld} -m elf_i386_fbsd"
7643 ;;
7644 x86_64-*linux*)
7645 LD="${LD-ld} -m elf_i386"
7646 ;;
7647 ppc64-*linux*|powerpc64-*linux*)
7648 LD="${LD-ld} -m elf32ppclinux"
7649 ;;
7650 s390x-*linux*)
7651 LD="${LD-ld} -m elf_s390"
7652 ;;
7653 sparc64-*linux*)
7654 LD="${LD-ld} -m elf32_sparc"
7655 ;;
7656 esac
7657 ;;
7658 *64-bit*)
7659 case $host in
7660 x86_64-*kfreebsd*-gnu)
7661 LD="${LD-ld} -m elf_x86_64_fbsd"
7662 ;;
7663 x86_64-*linux*)
7664 LD="${LD-ld} -m elf_x86_64"
7665 ;;
7666 ppc*-*linux*|powerpc*-*linux*)
7667 LD="${LD-ld} -m elf64ppc"
7668 ;;
7669 s390*-*linux*|s390*-*tpf*)
7670 LD="${LD-ld} -m elf64_s390"
7671 ;;
7672 sparc*-*linux*)
7673 LD="${LD-ld} -m elf64_sparc"
7674 ;;
7675 esac
7676 ;;
7677 esac
7678 fi
7679 rm -rf conftest*
7680 ;;
7681
7682*-*-sco3.2v5*)
7683 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7684 SAVE_CFLAGS="$CFLAGS"
7685 CFLAGS="$CFLAGS -belf"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7687$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7688if test "${lt_cv_cc_needs_belf+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690else
7691 ac_ext=c
7692ac_cpp='$CPP $CPPFLAGS'
7693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h. */
7699
7700int
7701main ()
7702{
7703
7704 ;
7705 return 0;
7706}
7707_ACEOF
7708if ac_fn_c_try_link "$LINENO"; then :
7709 lt_cv_cc_needs_belf=yes
7710else
7711 lt_cv_cc_needs_belf=no
7712fi
7713rm -f core conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7715 ac_ext=c
7716ac_cpp='$CPP $CPPFLAGS'
7717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719ac_compiler_gnu=$ac_cv_c_compiler_gnu
7720
7721fi
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7723$as_echo "$lt_cv_cc_needs_belf" >&6; }
7724 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7725 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7726 CFLAGS="$SAVE_CFLAGS"
7727 fi
7728 ;;
7729sparc*-*solaris*)
7730 # Find out which ABI we are using.
7731 echo 'int i;' > conftest.$ac_ext
7732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7733 (eval $ac_compile) 2>&5
7734 ac_status=$?
7735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7736 test $ac_status = 0; }; then
7737 case `/usr/bin/file conftest.o` in
7738 *64-bit*)
7739 case $lt_cv_prog_gnu_ld in
7740 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7741 *)
7742 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7743 LD="${LD-ld} -64"
7744 fi
7745 ;;
7746 esac
7747 ;;
7748 esac
7749 fi
7750 rm -rf conftest*
7751 ;;
7752esac
7753
7754need_locks="$enable_libtool_lock"
7755
7756
7757 case $host_os in
7758 rhapsody* | darwin*)
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7761set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763$as_echo_n "checking for $ac_word... " >&6; }
7764if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7766else
7767 if test -n "$DSYMUTIL"; then
7768 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7769else
7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 break 2
7780 fi
7781done
7782 done
7783IFS=$as_save_IFS
7784
7785fi
7786fi
7787DSYMUTIL=$ac_cv_prog_DSYMUTIL
7788if test -n "$DSYMUTIL"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7790$as_echo "$DSYMUTIL" >&6; }
7791else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793$as_echo "no" >&6; }
7794fi
7795
7796
7797fi
7798if test -z "$ac_cv_prog_DSYMUTIL"; then
7799 ac_ct_DSYMUTIL=$DSYMUTIL
7800 # Extract the first word of "dsymutil", so it can be a program name with args.
7801set dummy dsymutil; ac_word=$2
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803$as_echo_n "checking for $ac_word... " >&6; }
7804if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7806else
7807 if test -n "$ac_ct_DSYMUTIL"; then
7808 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7809else
7810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 break 2
7820 fi
7821done
7822 done
7823IFS=$as_save_IFS
7824
7825fi
7826fi
7827ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7828if test -n "$ac_ct_DSYMUTIL"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7830$as_echo "$ac_ct_DSYMUTIL" >&6; }
7831else
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833$as_echo "no" >&6; }
7834fi
7835
7836 if test "x$ac_ct_DSYMUTIL" = x; then
7837 DSYMUTIL=":"
7838 else
7839 case $cross_compiling:$ac_tool_warned in
7840yes:)
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843ac_tool_warned=yes ;;
7844esac
7845 DSYMUTIL=$ac_ct_DSYMUTIL
7846 fi
7847else
7848 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7849fi
7850
7851 if test -n "$ac_tool_prefix"; then
7852 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7853set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855$as_echo_n "checking for $ac_word... " >&6; }
7856if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858else
7859 if test -n "$NMEDIT"; then
7860 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7861else
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873done
7874 done
7875IFS=$as_save_IFS
7876
7877fi
7878fi
7879NMEDIT=$ac_cv_prog_NMEDIT
7880if test -n "$NMEDIT"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7882$as_echo "$NMEDIT" >&6; }
7883else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886fi
7887
7888
7889fi
7890if test -z "$ac_cv_prog_NMEDIT"; then
7891 ac_ct_NMEDIT=$NMEDIT
7892 # Extract the first word of "nmedit", so it can be a program name with args.
7893set dummy nmedit; ac_word=$2
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895$as_echo_n "checking for $ac_word... " >&6; }
7896if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898else
7899 if test -n "$ac_ct_NMEDIT"; then
7900 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913done
7914 done
7915IFS=$as_save_IFS
7916
7917fi
7918fi
7919ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7920if test -n "$ac_ct_NMEDIT"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7922$as_echo "$ac_ct_NMEDIT" >&6; }
7923else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
7926fi
7927
7928 if test "x$ac_ct_NMEDIT" = x; then
7929 NMEDIT=":"
7930 else
7931 case $cross_compiling:$ac_tool_warned in
7932yes:)
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935ac_tool_warned=yes ;;
7936esac
7937 NMEDIT=$ac_ct_NMEDIT
7938 fi
7939else
7940 NMEDIT="$ac_cv_prog_NMEDIT"
7941fi
7942
7943 if test -n "$ac_tool_prefix"; then
7944 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7945set dummy ${ac_tool_prefix}lipo; ac_word=$2
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947$as_echo_n "checking for $ac_word... " >&6; }
7948if test "${ac_cv_prog_LIPO+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
7950else
7951 if test -n "$LIPO"; then
7952 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7953else
7954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955for as_dir in $PATH
7956do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963 break 2
7964 fi
7965done
7966 done
7967IFS=$as_save_IFS
7968
7969fi
7970fi
7971LIPO=$ac_cv_prog_LIPO
7972if test -n "$LIPO"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7974$as_echo "$LIPO" >&6; }
7975else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977$as_echo "no" >&6; }
7978fi
7979
7980
7981fi
7982if test -z "$ac_cv_prog_LIPO"; then
7983 ac_ct_LIPO=$LIPO
7984 # Extract the first word of "lipo", so it can be a program name with args.
7985set dummy lipo; ac_word=$2
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987$as_echo_n "checking for $ac_word... " >&6; }
7988if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
7990else
7991 if test -n "$ac_ct_LIPO"; then
7992 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7993else
7994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995for as_dir in $PATH
7996do
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_ac_ct_LIPO="lipo"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 break 2
8004 fi
8005done
8006 done
8007IFS=$as_save_IFS
8008
8009fi
8010fi
8011ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8012if test -n "$ac_ct_LIPO"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8014$as_echo "$ac_ct_LIPO" >&6; }
8015else
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017$as_echo "no" >&6; }
8018fi
8019
8020 if test "x$ac_ct_LIPO" = x; then
8021 LIPO=":"
8022 else
8023 case $cross_compiling:$ac_tool_warned in
8024yes:)
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8027ac_tool_warned=yes ;;
8028esac
8029 LIPO=$ac_ct_LIPO
8030 fi
8031else
8032 LIPO="$ac_cv_prog_LIPO"
8033fi
8034
8035 if test -n "$ac_tool_prefix"; then
8036 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8037set dummy ${ac_tool_prefix}otool; ac_word=$2
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039$as_echo_n "checking for $ac_word... " >&6; }
8040if test "${ac_cv_prog_OTOOL+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042else
8043 if test -n "$OTOOL"; then
8044 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8045else
8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8053 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057done
8058 done
8059IFS=$as_save_IFS
8060
8061fi
8062fi
8063OTOOL=$ac_cv_prog_OTOOL
8064if test -n "$OTOOL"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8066$as_echo "$OTOOL" >&6; }
8067else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069$as_echo "no" >&6; }
8070fi
8071
8072
8073fi
8074if test -z "$ac_cv_prog_OTOOL"; then
8075 ac_ct_OTOOL=$OTOOL
8076 # Extract the first word of "otool", so it can be a program name with args.
8077set dummy otool; ac_word=$2
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079$as_echo_n "checking for $ac_word... " >&6; }
8080if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8081 $as_echo_n "(cached) " >&6
8082else
8083 if test -n "$ac_ct_OTOOL"; then
8084 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8085else
8086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087for as_dir in $PATH
8088do
8089 IFS=$as_save_IFS
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8093 ac_cv_prog_ac_ct_OTOOL="otool"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 break 2
8096 fi
8097done
8098 done
8099IFS=$as_save_IFS
8100
8101fi
8102fi
8103ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8104if test -n "$ac_ct_OTOOL"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8106$as_echo "$ac_ct_OTOOL" >&6; }
8107else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109$as_echo "no" >&6; }
8110fi
8111
8112 if test "x$ac_ct_OTOOL" = x; then
8113 OTOOL=":"
8114 else
8115 case $cross_compiling:$ac_tool_warned in
8116yes:)
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119ac_tool_warned=yes ;;
8120esac
8121 OTOOL=$ac_ct_OTOOL
8122 fi
8123else
8124 OTOOL="$ac_cv_prog_OTOOL"
8125fi
8126
8127 if test -n "$ac_tool_prefix"; then
8128 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8129set dummy ${ac_tool_prefix}otool64; ac_word=$2
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131$as_echo_n "checking for $ac_word... " >&6; }
8132if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134else
8135 if test -n "$OTOOL64"; then
8136 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8137else
8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8148 fi
8149done
8150 done
8151IFS=$as_save_IFS
8152
8153fi
8154fi
8155OTOOL64=$ac_cv_prog_OTOOL64
8156if test -n "$OTOOL64"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8158$as_echo "$OTOOL64" >&6; }
8159else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161$as_echo "no" >&6; }
8162fi
8163
8164
8165fi
8166if test -z "$ac_cv_prog_OTOOL64"; then
8167 ac_ct_OTOOL64=$OTOOL64
8168 # Extract the first word of "otool64", so it can be a program name with args.
8169set dummy otool64; ac_word=$2
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171$as_echo_n "checking for $ac_word... " >&6; }
8172if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174else
8175 if test -n "$ac_ct_OTOOL64"; then
8176 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8177else
8178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179for as_dir in $PATH
8180do
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185 ac_cv_prog_ac_ct_OTOOL64="otool64"
8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 break 2
8188 fi
8189done
8190 done
8191IFS=$as_save_IFS
8192
8193fi
8194fi
8195ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8196if test -n "$ac_ct_OTOOL64"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8198$as_echo "$ac_ct_OTOOL64" >&6; }
8199else
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }
8202fi
8203
8204 if test "x$ac_ct_OTOOL64" = x; then
8205 OTOOL64=":"
8206 else
8207 case $cross_compiling:$ac_tool_warned in
8208yes:)
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8211ac_tool_warned=yes ;;
8212esac
8213 OTOOL64=$ac_ct_OTOOL64
8214 fi
8215else
8216 OTOOL64="$ac_cv_prog_OTOOL64"
8217fi
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8246$as_echo_n "checking for -single_module linker flag... " >&6; }
8247if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8249else
8250 lt_cv_apple_cc_single_mod=no
8251 if test -z "${LT_MULTI_MODULE}"; then
8252 # By default we will add the -single_module flag. You can override
8253 # by either setting the environment variable LT_MULTI_MODULE
8254 # non-empty at configure time, or by adding -multi_module to the
8255 # link flags.
8256 rm -rf libconftest.dylib*
8257 echo "int foo(void){return 1;}" > conftest.c
8258 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8259-dynamiclib -Wl,-single_module conftest.c" >&5
8260 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8261 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8262 _lt_result=$?
8263 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8264 lt_cv_apple_cc_single_mod=yes
8265 else
8266 cat conftest.err >&5
8267 fi
8268 rm -rf libconftest.dylib*
8269 rm -f conftest.*
8270 fi
8271fi
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8273$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8275$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8276if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8278else
8279 lt_cv_ld_exported_symbols_list=no
8280 save_LDFLAGS=$LDFLAGS
8281 echo "_main" > conftest.sym
8282 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284/* end confdefs.h. */
8285
8286int
8287main ()
8288{
8289
8290 ;
8291 return 0;
8292}
8293_ACEOF
8294if ac_fn_c_try_link "$LINENO"; then :
8295 lt_cv_ld_exported_symbols_list=yes
8296else
8297 lt_cv_ld_exported_symbols_list=no
8298fi
8299rm -f core conftest.err conftest.$ac_objext \
8300 conftest$ac_exeext conftest.$ac_ext
8301 LDFLAGS="$save_LDFLAGS"
8302
8303fi
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8305$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8306 case $host_os in
8307 rhapsody* | darwin1.[012])
8308 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8309 darwin1.*)
8310 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8311 darwin*) # darwin 5.x on
8312 # if running on 10.5 or later, the deployment target defaults
8313 # to the OS version, if on x86, and 10.4, the deployment
8314 # target defaults to 10.4. Don't you love it?
8315 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8316 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8317 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8318 10.[012]*)
8319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8320 10.*)
8321 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8322 esac
8323 ;;
8324 esac
8325 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8326 _lt_dar_single_mod='$single_module'
8327 fi
8328 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8329 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8330 else
8331 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8332 fi
8333 if test "$DSYMUTIL" != ":"; then
8334 _lt_dsymutil='~$DSYMUTIL $lib || :'
8335 else
8336 _lt_dsymutil=
8337 fi
8338 ;;
8339 esac
8340
8341for ac_header in dlfcn.h
8342do :
8343 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8344"
8345if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8346 cat >>confdefs.h <<_ACEOF
8347#define HAVE_DLFCN_H 1
8348_ACEOF
8349
8350fi
8351
8352done
8353
8354
8355
8356# Set options
8357
8358
8359
8360 enable_dlopen=no
8361
8362
8363
8364 # Check whether --enable-shared was given.
8365if test "${enable_shared+set}" = set; then :
8366 enableval=$enable_shared; p=${PACKAGE-default}
8367 case $enableval in
8368 yes) enable_shared=yes ;;
8369 no) enable_shared=no ;;
8370 *)
8371 enable_shared=no
8372 # Look at the argument we got. We use all the common list separators.
8373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8374 for pkg in $enableval; do
8375 IFS="$lt_save_ifs"
8376 if test "X$pkg" = "X$p"; then
8377 enable_shared=yes
8378 fi
8379 done
8380 IFS="$lt_save_ifs"
8381 ;;
8382 esac
8383else
8384 enable_shared=yes
8385fi
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395 # Check whether --enable-static was given.
8396if test "${enable_static+set}" = set; then :
8397 enableval=$enable_static; p=${PACKAGE-default}
8398 case $enableval in
8399 yes) enable_static=yes ;;
8400 no) enable_static=no ;;
8401 *)
8402 enable_static=no
8403 # Look at the argument we got. We use all the common list separators.
8404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8405 for pkg in $enableval; do
8406 IFS="$lt_save_ifs"
8407 if test "X$pkg" = "X$p"; then
8408 enable_static=yes
8409 fi
8410 done
8411 IFS="$lt_save_ifs"
8412 ;;
8413 esac
8414else
8415 enable_static=yes
8416fi
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427# Check whether --with-pic was given.
8428if test "${with_pic+set}" = set; then :
8429 withval=$with_pic; pic_mode="$withval"
8430else
8431 pic_mode=default
8432fi
8433
8434
8435test -z "$pic_mode" && pic_mode=default
8436
8437
8438
8439
8440
8441
8442
8443 # Check whether --enable-fast-install was given.
8444if test "${enable_fast_install+set}" = set; then :
8445 enableval=$enable_fast_install; p=${PACKAGE-default}
8446 case $enableval in
8447 yes) enable_fast_install=yes ;;
8448 no) enable_fast_install=no ;;
8449 *)
8450 enable_fast_install=no
8451 # Look at the argument we got. We use all the common list separators.
8452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8453 for pkg in $enableval; do
8454 IFS="$lt_save_ifs"
8455 if test "X$pkg" = "X$p"; then
8456 enable_fast_install=yes
8457 fi
8458 done
8459 IFS="$lt_save_ifs"
8460 ;;
8461 esac
8462else
8463 enable_fast_install=yes
8464fi
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476# This can be used to rebuild libtool when needed
8477LIBTOOL_DEPS="$ltmain"
8478
8479# Always use our own libtool.
8480LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506test -z "$LN_S" && LN_S="ln -s"
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521if test -n "${ZSH_VERSION+set}" ; then
8522 setopt NO_GLOB_SUBST
8523fi
8524
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8526$as_echo_n "checking for objdir... " >&6; }
8527if test "${lt_cv_objdir+set}" = set; then :
8528 $as_echo_n "(cached) " >&6
8529else
8530 rm -f .libs 2>/dev/null
8531mkdir .libs 2>/dev/null
8532if test -d .libs; then
8533 lt_cv_objdir=.libs
8534else
8535 # MS-DOS does not allow filenames that begin with a dot.
8536 lt_cv_objdir=_libs
8537fi
8538rmdir .libs 2>/dev/null
8539fi
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8541$as_echo "$lt_cv_objdir" >&6; }
8542objdir=$lt_cv_objdir
8543
8544
8545
8546
8547
8548cat >>confdefs.h <<_ACEOF
8549#define LT_OBJDIR "$lt_cv_objdir/"
8550_ACEOF
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568case $host_os in
8569aix3*)
8570 # AIX sometimes has problems with the GCC collect2 program. For some
8571 # reason, if we set the COLLECT_NAMES environment variable, the problems
8572 # vanish in a puff of smoke.
8573 if test "X${COLLECT_NAMES+set}" != Xset; then
8574 COLLECT_NAMES=
8575 export COLLECT_NAMES
8576 fi
8577 ;;
8578esac
8579
8580# Sed substitution that helps us do robust quoting. It backslashifies
8581# metacharacters that are still active within double-quoted strings.
8582sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8583
8584# Same as above, but do not quote variable references.
8585double_quote_subst='s/\(["`\\]\)/\\\1/g'
8586
8587# Sed substitution to delay expansion of an escaped shell variable in a
8588# double_quote_subst'ed string.
8589delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8590
8591# Sed substitution to delay expansion of an escaped single quote.
8592delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8593
8594# Sed substitution to avoid accidental globbing in evaled expressions
8595no_glob_subst='s/\*/\\\*/g'
8596
8597# Global variables:
8598ofile=libtool
8599can_build_shared=yes
8600
8601# All known linkers require a `.a' archive for static linking (except MSVC,
8602# which needs '.lib').
8603libext=a
8604
8605with_gnu_ld="$lt_cv_prog_gnu_ld"
8606
8607old_CC="$CC"
8608old_CFLAGS="$CFLAGS"
8609
8610# Set sane defaults for various variables
8611test -z "$CC" && CC=cc
8612test -z "$LTCC" && LTCC=$CC
8613test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8614test -z "$LD" && LD=ld
8615test -z "$ac_objext" && ac_objext=o
8616
8617for cc_temp in $compiler""; do
8618 case $cc_temp in
8619 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8620 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8621 \-*) ;;
8622 *) break;;
8623 esac
8624done
8625cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8626
8627
8628# Only perform the check for file, if the check method requires it
8629test -z "$MAGIC_CMD" && MAGIC_CMD=file
8630case $deplibs_check_method in
8631file_magic*)
8632 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8634$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8635if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8637else
8638 case $MAGIC_CMD in
8639[\\/*] | ?:[\\/]*)
8640 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8641 ;;
8642*)
8643 lt_save_MAGIC_CMD="$MAGIC_CMD"
8644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8645 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8646 for ac_dir in $ac_dummy; do
8647 IFS="$lt_save_ifs"
8648 test -z "$ac_dir" && ac_dir=.
8649 if test -f $ac_dir/${ac_tool_prefix}file; then
8650 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8651 if test -n "$file_magic_test_file"; then
8652 case $deplibs_check_method in
8653 "file_magic "*)
8654 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8656 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8657 $EGREP "$file_magic_regex" > /dev/null; then
8658 :
8659 else
8660 cat <<_LT_EOF 1>&2
8661
8662*** Warning: the command libtool uses to detect shared libraries,
8663*** $file_magic_cmd, produces output that libtool cannot recognize.
8664*** The result is that libtool may fail to recognize shared libraries
8665*** as such. This will affect the creation of libtool libraries that
8666*** depend on shared libraries, but programs linked with such libtool
8667*** libraries will work regardless of this problem. Nevertheless, you
8668*** may want to report the problem to your system manager and/or to
8669*** bug-libtool@gnu.org
8670
8671_LT_EOF
8672 fi ;;
8673 esac
8674 fi
8675 break
8676 fi
8677 done
8678 IFS="$lt_save_ifs"
8679 MAGIC_CMD="$lt_save_MAGIC_CMD"
8680 ;;
8681esac
8682fi
8683
8684MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8685if test -n "$MAGIC_CMD"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8687$as_echo "$MAGIC_CMD" >&6; }
8688else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690$as_echo "no" >&6; }
8691fi
8692
8693
8694
8695
8696
8697if test -z "$lt_cv_path_MAGIC_CMD"; then
8698 if test -n "$ac_tool_prefix"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8700$as_echo_n "checking for file... " >&6; }
8701if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
8703else
8704 case $MAGIC_CMD in
8705[\\/*] | ?:[\\/]*)
8706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8707 ;;
8708*)
8709 lt_save_MAGIC_CMD="$MAGIC_CMD"
8710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8712 for ac_dir in $ac_dummy; do
8713 IFS="$lt_save_ifs"
8714 test -z "$ac_dir" && ac_dir=.
8715 if test -f $ac_dir/file; then
8716 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8717 if test -n "$file_magic_test_file"; then
8718 case $deplibs_check_method in
8719 "file_magic "*)
8720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8723 $EGREP "$file_magic_regex" > /dev/null; then
8724 :
8725 else
8726 cat <<_LT_EOF 1>&2
8727
8728*** Warning: the command libtool uses to detect shared libraries,
8729*** $file_magic_cmd, produces output that libtool cannot recognize.
8730*** The result is that libtool may fail to recognize shared libraries
8731*** as such. This will affect the creation of libtool libraries that
8732*** depend on shared libraries, but programs linked with such libtool
8733*** libraries will work regardless of this problem. Nevertheless, you
8734*** may want to report the problem to your system manager and/or to
8735*** bug-libtool@gnu.org
8736
8737_LT_EOF
8738 fi ;;
8739 esac
8740 fi
8741 break
8742 fi
8743 done
8744 IFS="$lt_save_ifs"
8745 MAGIC_CMD="$lt_save_MAGIC_CMD"
8746 ;;
8747esac
8748fi
8749
8750MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8751if test -n "$MAGIC_CMD"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8753$as_echo "$MAGIC_CMD" >&6; }
8754else
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756$as_echo "no" >&6; }
8757fi
8758
8759
8760 else
8761 MAGIC_CMD=:
8762 fi
8763fi
8764
8765 fi
8766 ;;
8767esac
8768
8769# Use C for the default configuration in the libtool script
8770
8771lt_save_CC="$CC"
8772ac_ext=c
8773ac_cpp='$CPP $CPPFLAGS'
8774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8776ac_compiler_gnu=$ac_cv_c_compiler_gnu
8777
8778
8779# Source file extension for C test sources.
8780ac_ext=c
8781
8782# Object file extension for compiled C test sources.
8783objext=o
8784objext=$objext
8785
8786# Code to be used in simple compile tests
8787lt_simple_compile_test_code="int some_variable = 0;"
8788
8789# Code to be used in simple link tests
8790lt_simple_link_test_code='int main(){return(0);}'
8791
8792
8793
8794
8795
8796
8797
8798# If no C compiler was specified, use CC.
8799LTCC=${LTCC-"$CC"}
8800
8801# If no C compiler flags were specified, use CFLAGS.
8802LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8803
8804# Allow CC to be a program name with arguments.
8805compiler=$CC
8806
8807# Save the default compiler, since it gets overwritten when the other
8808# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8809compiler_DEFAULT=$CC
8810
8811# save warnings/boilerplate of simple test code
8812ac_outfile=conftest.$ac_objext
8813echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8814eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8815_lt_compiler_boilerplate=`cat conftest.err`
8816$RM conftest*
8817
8818ac_outfile=conftest.$ac_objext
8819echo "$lt_simple_link_test_code" >conftest.$ac_ext
8820eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8821_lt_linker_boilerplate=`cat conftest.err`
8822$RM -r conftest*
8823
8824
8825## CAVEAT EMPTOR:
8826## There is no encapsulation within the following macros, do not change
8827## the running order or otherwise move them around unless you know exactly
8828## what you are doing...
8829if test -n "$compiler"; then
8830
8831lt_prog_compiler_no_builtin_flag=
8832
8833if test "$GCC" = yes; then
8834 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8837$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8838if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8840else
8841 lt_cv_prog_compiler_rtti_exceptions=no
8842 ac_outfile=conftest.$ac_objext
8843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8844 lt_compiler_flag="-fno-rtti -fno-exceptions"
8845 # Insert the option either (1) after the last *FLAGS variable, or
8846 # (2) before a word containing "conftest.", or (3) at the end.
8847 # Note that $ac_compile itself does not contain backslashes and begins
8848 # with a dollar sign (not a hyphen), so the echo should work correctly.
8849 # The option is referenced via a variable to avoid confusing sed.
8850 lt_compile=`echo "$ac_compile" | $SED \
8851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8853 -e 's:$: $lt_compiler_flag:'`
8854 (eval echo "\"\$as_me:8854: $lt_compile\"" >&5)
8855 (eval "$lt_compile" 2>conftest.err)
8856 ac_status=$?
8857 cat conftest.err >&5
8858 echo "$as_me:8858: \$? = $ac_status" >&5
8859 if (exit $ac_status) && test -s "$ac_outfile"; then
8860 # The compiler can only warn and ignore the option if not recognized
8861 # So say no if there are warnings other than the usual output.
8862 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8864 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8865 lt_cv_prog_compiler_rtti_exceptions=yes
8866 fi
8867 fi
8868 $RM conftest*
8869
8870fi
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8872$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8873
8874if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8875 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8876else
8877 :
8878fi
8879
8880fi
8881
8882
8883
8884
8885
8886
8887 lt_prog_compiler_wl=
8888lt_prog_compiler_pic=
8889lt_prog_compiler_static=
8890
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8892$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8893
8894 if test "$GCC" = yes; then
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_static='-static'
8897
8898 case $host_os in
8899 aix*)
8900 # All AIX code is PIC.
8901 if test "$host_cpu" = ia64; then
8902 # AIX 5 now supports IA64 processor
8903 lt_prog_compiler_static='-Bstatic'
8904 fi
8905 ;;
8906
8907 amigaos*)
8908 case $host_cpu in
8909 powerpc)
8910 # see comment about AmigaOS4 .so support
8911 lt_prog_compiler_pic='-fPIC'
8912 ;;
8913 m68k)
8914 # FIXME: we need at least 68020 code to build shared libraries, but
8915 # adding the `-m68020' flag to GCC prevents building anything better,
8916 # like `-m68040'.
8917 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8918 ;;
8919 esac
8920 ;;
8921
8922 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8923 # PIC is the default for these OSes.
8924 ;;
8925
8926 mingw* | cygwin* | pw32* | os2* | cegcc*)
8927 # This hack is so that the source file can tell whether it is being
8928 # built for inclusion in a dll (and should export symbols for example).
8929 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8930 # (--disable-auto-import) libraries
8931 lt_prog_compiler_pic='-DDLL_EXPORT'
8932 ;;
8933
8934 darwin* | rhapsody*)
8935 # PIC is the default on this platform
8936 # Common symbols not allowed in MH_DYLIB files
8937 lt_prog_compiler_pic='-fno-common'
8938 ;;
8939
8940 hpux*)
8941 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8942 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8943 # sets the default TLS model and affects inlining.
8944 case $host_cpu in
8945 hppa*64*)
8946 # +Z the default
8947 ;;
8948 *)
8949 lt_prog_compiler_pic='-fPIC'
8950 ;;
8951 esac
8952 ;;
8953
8954 interix[3-9]*)
8955 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8956 # Instead, we relocate shared libraries at runtime.
8957 ;;
8958
8959 msdosdjgpp*)
8960 # Just because we use GCC doesn't mean we suddenly get shared libraries
8961 # on systems that don't support them.
8962 lt_prog_compiler_can_build_shared=no
8963 enable_shared=no
8964 ;;
8965
8966 *nto* | *qnx*)
8967 # QNX uses GNU C++, but need to define -shared option too, otherwise
8968 # it will coredump.
8969 lt_prog_compiler_pic='-fPIC -shared'
8970 ;;
8971
8972 sysv4*MP*)
8973 if test -d /usr/nec; then
8974 lt_prog_compiler_pic=-Kconform_pic
8975 fi
8976 ;;
8977
8978 *)
8979 lt_prog_compiler_pic='-fPIC'
8980 ;;
8981 esac
8982 else
8983 # PORTME Check for flag to pass linker flags through the system compiler.
8984 case $host_os in
8985 aix*)
8986 lt_prog_compiler_wl='-Wl,'
8987 if test "$host_cpu" = ia64; then
8988 # AIX 5 now supports IA64 processor
8989 lt_prog_compiler_static='-Bstatic'
8990 else
8991 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8992 fi
8993 ;;
8994
8995 mingw* | cygwin* | pw32* | os2* | cegcc*)
8996 # This hack is so that the source file can tell whether it is being
8997 # built for inclusion in a dll (and should export symbols for example).
8998 lt_prog_compiler_pic='-DDLL_EXPORT'
8999 ;;
9000
9001 hpux9* | hpux10* | hpux11*)
9002 lt_prog_compiler_wl='-Wl,'
9003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9004 # not for PA HP-UX.
9005 case $host_cpu in
9006 hppa*64*|ia64*)
9007 # +Z the default
9008 ;;
9009 *)
9010 lt_prog_compiler_pic='+Z'
9011 ;;
9012 esac
9013 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9014 lt_prog_compiler_static='${wl}-a ${wl}archive'
9015 ;;
9016
9017 irix5* | irix6* | nonstopux*)
9018 lt_prog_compiler_wl='-Wl,'
9019 # PIC (with -KPIC) is the default.
9020 lt_prog_compiler_static='-non_shared'
9021 ;;
9022
9023 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9024 case $cc_basename in
9025 # old Intel for x86_64 which still supported -KPIC.
9026 ecc*)
9027 lt_prog_compiler_wl='-Wl,'
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-static'
9030 ;;
9031 # icc used to be incompatible with GCC.
9032 # ICC 10 doesn't accept -KPIC any more.
9033 icc* | ifort*)
9034 lt_prog_compiler_wl='-Wl,'
9035 lt_prog_compiler_pic='-fPIC'
9036 lt_prog_compiler_static='-static'
9037 ;;
9038 # Lahey Fortran 8.1.
9039 lf95*)
9040 lt_prog_compiler_wl='-Wl,'
9041 lt_prog_compiler_pic='--shared'
9042 lt_prog_compiler_static='--static'
9043 ;;
9044 pgcc* | pgf77* | pgf90* | pgf95*)
9045 # Portland Group compilers (*not* the Pentium gcc compiler,
9046 # which looks to be a dead project)
9047 lt_prog_compiler_wl='-Wl,'
9048 lt_prog_compiler_pic='-fpic'
9049 lt_prog_compiler_static='-Bstatic'
9050 ;;
9051 ccc*)
9052 lt_prog_compiler_wl='-Wl,'
9053 # All Alpha code is PIC.
9054 lt_prog_compiler_static='-non_shared'
9055 ;;
9056 xl*)
9057 # IBM XL C 8.0/Fortran 10.1 on PPC
9058 lt_prog_compiler_wl='-Wl,'
9059 lt_prog_compiler_pic='-qpic'
9060 lt_prog_compiler_static='-qstaticlink'
9061 ;;
9062 *)
9063 case `$CC -V 2>&1 | sed 5q` in
9064 *Sun\ C*)
9065 # Sun C 5.9
9066 lt_prog_compiler_pic='-KPIC'
9067 lt_prog_compiler_static='-Bstatic'
9068 lt_prog_compiler_wl='-Wl,'
9069 ;;
9070 *Sun\ F*)
9071 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9072 lt_prog_compiler_pic='-KPIC'
9073 lt_prog_compiler_static='-Bstatic'
9074 lt_prog_compiler_wl=''
9075 ;;
9076 esac
9077 ;;
9078 esac
9079 ;;
9080
9081 newsos6)
9082 lt_prog_compiler_pic='-KPIC'
9083 lt_prog_compiler_static='-Bstatic'
9084 ;;
9085
9086 *nto* | *qnx*)
9087 # QNX uses GNU C++, but need to define -shared option too, otherwise
9088 # it will coredump.
9089 lt_prog_compiler_pic='-fPIC -shared'
9090 ;;
9091
9092 osf3* | osf4* | osf5*)
9093 lt_prog_compiler_wl='-Wl,'
9094 # All OSF/1 code is PIC.
9095 lt_prog_compiler_static='-non_shared'
9096 ;;
9097
9098 rdos*)
9099 lt_prog_compiler_static='-non_shared'
9100 ;;
9101
9102 solaris*)
9103 lt_prog_compiler_pic='-KPIC'
9104 lt_prog_compiler_static='-Bstatic'
9105 case $cc_basename in
9106 f77* | f90* | f95*)
9107 lt_prog_compiler_wl='-Qoption ld ';;
9108 *)
9109 lt_prog_compiler_wl='-Wl,';;
9110 esac
9111 ;;
9112
9113 sunos4*)
9114 lt_prog_compiler_wl='-Qoption ld '
9115 lt_prog_compiler_pic='-PIC'
9116 lt_prog_compiler_static='-Bstatic'
9117 ;;
9118
9119 sysv4 | sysv4.2uw2* | sysv4.3*)
9120 lt_prog_compiler_wl='-Wl,'
9121 lt_prog_compiler_pic='-KPIC'
9122 lt_prog_compiler_static='-Bstatic'
9123 ;;
9124
9125 sysv4*MP*)
9126 if test -d /usr/nec ;then
9127 lt_prog_compiler_pic='-Kconform_pic'
9128 lt_prog_compiler_static='-Bstatic'
9129 fi
9130 ;;
9131
9132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9133 lt_prog_compiler_wl='-Wl,'
9134 lt_prog_compiler_pic='-KPIC'
9135 lt_prog_compiler_static='-Bstatic'
9136 ;;
9137
9138 unicos*)
9139 lt_prog_compiler_wl='-Wl,'
9140 lt_prog_compiler_can_build_shared=no
9141 ;;
9142
9143 uts4*)
9144 lt_prog_compiler_pic='-pic'
9145 lt_prog_compiler_static='-Bstatic'
9146 ;;
9147
9148 *)
9149 lt_prog_compiler_can_build_shared=no
9150 ;;
9151 esac
9152 fi
9153
9154case $host_os in
9155 # For platforms which do not support PIC, -DPIC is meaningless:
9156 *djgpp*)
9157 lt_prog_compiler_pic=
9158 ;;
9159 *)
9160 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9161 ;;
9162esac
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9164$as_echo "$lt_prog_compiler_pic" >&6; }
9165
9166
9167
9168
9169
9170
9171#
9172# Check to make sure the PIC flag actually works.
9173#
9174if test -n "$lt_prog_compiler_pic"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9176$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9177if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9178 $as_echo_n "(cached) " >&6
9179else
9180 lt_cv_prog_compiler_pic_works=no
9181 ac_outfile=conftest.$ac_objext
9182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9184 # Insert the option either (1) after the last *FLAGS variable, or
9185 # (2) before a word containing "conftest.", or (3) at the end.
9186 # Note that $ac_compile itself does not contain backslashes and begins
9187 # with a dollar sign (not a hyphen), so the echo should work correctly.
9188 # The option is referenced via a variable to avoid confusing sed.
9189 lt_compile=`echo "$ac_compile" | $SED \
9190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192 -e 's:$: $lt_compiler_flag:'`
9193 (eval echo "\"\$as_me:9193: $lt_compile\"" >&5)
9194 (eval "$lt_compile" 2>conftest.err)
9195 ac_status=$?
9196 cat conftest.err >&5
9197 echo "$as_me:9197: \$? = $ac_status" >&5
9198 if (exit $ac_status) && test -s "$ac_outfile"; then
9199 # The compiler can only warn and ignore the option if not recognized
9200 # So say no if there are warnings other than the usual output.
9201 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9204 lt_cv_prog_compiler_pic_works=yes
9205 fi
9206 fi
9207 $RM conftest*
9208
9209fi
9210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9211$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9212
9213if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9214 case $lt_prog_compiler_pic in
9215 "" | " "*) ;;
9216 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9217 esac
9218else
9219 lt_prog_compiler_pic=
9220 lt_prog_compiler_can_build_shared=no
9221fi
9222
9223fi
9224
9225
9226
9227
9228
9229
9230#
9231# Check to make sure the static flag actually works.
9232#
9233wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9235$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9236if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9237 $as_echo_n "(cached) " >&6
9238else
9239 lt_cv_prog_compiler_static_works=no
9240 save_LDFLAGS="$LDFLAGS"
9241 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9244 # The linker can only warn and ignore the option if not recognized
9245 # So say no if there are warnings
9246 if test -s conftest.err; then
9247 # Append any errors to the config.log.
9248 cat conftest.err 1>&5
9249 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9251 if diff conftest.exp conftest.er2 >/dev/null; then
9252 lt_cv_prog_compiler_static_works=yes
9253 fi
9254 else
9255 lt_cv_prog_compiler_static_works=yes
9256 fi
9257 fi
9258 $RM -r conftest*
9259 LDFLAGS="$save_LDFLAGS"
9260
9261fi
9262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9263$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9264
9265if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9266 :
9267else
9268 lt_prog_compiler_static=
9269fi
9270
9271
9272
9273
9274
9275
9276
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9278$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9279if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
9281else
9282 lt_cv_prog_compiler_c_o=no
9283 $RM -r conftest 2>/dev/null
9284 mkdir conftest
9285 cd conftest
9286 mkdir out
9287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9288
9289 lt_compiler_flag="-o out/conftest2.$ac_objext"
9290 # Insert the option either (1) after the last *FLAGS variable, or
9291 # (2) before a word containing "conftest.", or (3) at the end.
9292 # Note that $ac_compile itself does not contain backslashes and begins
9293 # with a dollar sign (not a hyphen), so the echo should work correctly.
9294 lt_compile=`echo "$ac_compile" | $SED \
9295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9297 -e 's:$: $lt_compiler_flag:'`
9298 (eval echo "\"\$as_me:9298: $lt_compile\"" >&5)
9299 (eval "$lt_compile" 2>out/conftest.err)
9300 ac_status=$?
9301 cat out/conftest.err >&5
9302 echo "$as_me:9302: \$? = $ac_status" >&5
9303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9304 then
9305 # The compiler can only warn and ignore the option if not recognized
9306 # So say no if there are warnings
9307 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9310 lt_cv_prog_compiler_c_o=yes
9311 fi
9312 fi
9313 chmod u+w . 2>&5
9314 $RM conftest*
9315 # SGI C++ compiler will create directory out/ii_files/ for
9316 # template instantiation
9317 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9318 $RM out/* && rmdir out
9319 cd ..
9320 $RM -r conftest
9321 $RM conftest*
9322
9323fi
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9325$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9326
9327
9328
9329
9330
9331
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9333$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9334if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9336else
9337 lt_cv_prog_compiler_c_o=no
9338 $RM -r conftest 2>/dev/null
9339 mkdir conftest
9340 cd conftest
9341 mkdir out
9342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9343
9344 lt_compiler_flag="-o out/conftest2.$ac_objext"
9345 # Insert the option either (1) after the last *FLAGS variable, or
9346 # (2) before a word containing "conftest.", or (3) at the end.
9347 # Note that $ac_compile itself does not contain backslashes and begins
9348 # with a dollar sign (not a hyphen), so the echo should work correctly.
9349 lt_compile=`echo "$ac_compile" | $SED \
9350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9352 -e 's:$: $lt_compiler_flag:'`
9353 (eval echo "\"\$as_me:9353: $lt_compile\"" >&5)
9354 (eval "$lt_compile" 2>out/conftest.err)
9355 ac_status=$?
9356 cat out/conftest.err >&5
9357 echo "$as_me:9357: \$? = $ac_status" >&5
9358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9359 then
9360 # The compiler can only warn and ignore the option if not recognized
9361 # So say no if there are warnings
9362 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9365 lt_cv_prog_compiler_c_o=yes
9366 fi
9367 fi
9368 chmod u+w . 2>&5
9369 $RM conftest*
9370 # SGI C++ compiler will create directory out/ii_files/ for
9371 # template instantiation
9372 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9373 $RM out/* && rmdir out
9374 cd ..
9375 $RM -r conftest
9376 $RM conftest*
9377
9378fi
9379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9380$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9381
9382
9383
9384
9385hard_links="nottested"
9386if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9387 # do not overwrite the value of need_locks provided by the user
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9389$as_echo_n "checking if we can lock with hard links... " >&6; }
9390 hard_links=yes
9391 $RM conftest*
9392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9393 touch conftest.a
9394 ln conftest.a conftest.b 2>&5 || hard_links=no
9395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9397$as_echo "$hard_links" >&6; }
9398 if test "$hard_links" = no; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9400$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9401 need_locks=warn
9402 fi
9403else
9404 need_locks=no
9405fi
9406
9407
9408
9409
9410
9411
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9413$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9414
9415 runpath_var=
9416 allow_undefined_flag=
9417 always_export_symbols=no
9418 archive_cmds=
9419 archive_expsym_cmds=
9420 compiler_needs_object=no
9421 enable_shared_with_static_runtimes=no
9422 export_dynamic_flag_spec=
9423 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9424 hardcode_automatic=no
9425 hardcode_direct=no
9426 hardcode_direct_absolute=no
9427 hardcode_libdir_flag_spec=
9428 hardcode_libdir_flag_spec_ld=
9429 hardcode_libdir_separator=
9430 hardcode_minus_L=no
9431 hardcode_shlibpath_var=unsupported
9432 inherit_rpath=no
9433 link_all_deplibs=unknown
9434 module_cmds=
9435 module_expsym_cmds=
9436 old_archive_from_new_cmds=
9437 old_archive_from_expsyms_cmds=
9438 thread_safe_flag_spec=
9439 whole_archive_flag_spec=
9440 # include_expsyms should be a list of space-separated symbols to be *always*
9441 # included in the symbol list
9442 include_expsyms=
9443 # exclude_expsyms can be an extended regexp of symbols to exclude
9444 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9445 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9446 # as well as any symbol that contains `d'.
9447 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9448 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9449 # platforms (ab)use it in PIC code, but their linkers get confused if
9450 # the symbol is explicitly referenced. Since portable code cannot
9451 # rely on this symbol name, it's probably fine to never include it in
9452 # preloaded symbol tables.
9453 # Exclude shared library initialization/finalization symbols.
9454 extract_expsyms_cmds=
9455
9456 case $host_os in
9457 cygwin* | mingw* | pw32* | cegcc*)
9458 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9459 # When not using gcc, we currently assume that we are using
9460 # Microsoft Visual C++.
9461 if test "$GCC" != yes; then
9462 with_gnu_ld=no
9463 fi
9464 ;;
9465 interix*)
9466 # we just hope/assume this is gcc and not c89 (= MSVC++)
9467 with_gnu_ld=yes
9468 ;;
9469 openbsd*)
9470 with_gnu_ld=no
9471 ;;
9472 linux* | k*bsd*-gnu)
9473 link_all_deplibs=no
9474 ;;
9475 esac
9476
9477 ld_shlibs=yes
9478 if test "$with_gnu_ld" = yes; then
9479 # If archive_cmds runs LD, not CC, wlarc should be empty
9480 wlarc='${wl}'
9481
9482 # Set some defaults for GNU ld with shared library support. These
9483 # are reset later if shared libraries are not supported. Putting them
9484 # here allows them to be overridden if necessary.
9485 runpath_var=LD_RUN_PATH
9486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487 export_dynamic_flag_spec='${wl}--export-dynamic'
9488 # ancient GNU ld didn't support --whole-archive et. al.
9489 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9490 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9491 else
9492 whole_archive_flag_spec=
9493 fi
9494 supports_anon_versioning=no
9495 case `$LD -v 2>&1` in
9496 *GNU\ gold*) supports_anon_versioning=yes ;;
9497 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9498 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9499 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9500 *\ 2.11.*) ;; # other 2.11 versions
9501 *) supports_anon_versioning=yes ;;
9502 esac
9503
9504 # See if GNU ld supports shared libraries.
9505 case $host_os in
9506 aix[3-9]*)
9507 # On AIX/PPC, the GNU linker is very broken
9508 if test "$host_cpu" != ia64; then
9509 ld_shlibs=no
9510 cat <<_LT_EOF 1>&2
9511
9512*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9513*** to be unable to reliably create shared libraries on AIX.
9514*** Therefore, libtool is disabling shared libraries support. If you
9515*** really care for shared libraries, you may want to modify your PATH
9516*** so that a non-GNU linker is found, and then restart.
9517
9518_LT_EOF
9519 fi
9520 ;;
9521
9522 amigaos*)
9523 case $host_cpu in
9524 powerpc)
9525 # see comment about AmigaOS4 .so support
9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527 archive_expsym_cmds=''
9528 ;;
9529 m68k)
9530 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)'
9531 hardcode_libdir_flag_spec='-L$libdir'
9532 hardcode_minus_L=yes
9533 ;;
9534 esac
9535 ;;
9536
9537 beos*)
9538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539 allow_undefined_flag=unsupported
9540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9541 # support --undefined. This deserves some investigation. FIXME
9542 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543 else
9544 ld_shlibs=no
9545 fi
9546 ;;
9547
9548 cygwin* | mingw* | pw32* | cegcc*)
9549 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9550 # as there is no search path for DLLs.
9551 hardcode_libdir_flag_spec='-L$libdir'
9552 allow_undefined_flag=unsupported
9553 always_export_symbols=no
9554 enable_shared_with_static_runtimes=yes
9555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9556
9557 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9559 # If the export-symbols file already is a .def file (1st line
9560 # is EXPORTS), use it as is; otherwise, prepend...
9561 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9562 cp $export_symbols $output_objdir/$soname.def;
9563 else
9564 echo EXPORTS > $output_objdir/$soname.def;
9565 cat $export_symbols >> $output_objdir/$soname.def;
9566 fi~
9567 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9568 else
9569 ld_shlibs=no
9570 fi
9571 ;;
9572
9573 interix[3-9]*)
9574 hardcode_direct=no
9575 hardcode_shlibpath_var=no
9576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9577 export_dynamic_flag_spec='${wl}-E'
9578 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9579 # Instead, shared libraries are loaded at an image base (0x10000000 by
9580 # default) and relocated if they conflict, which is a slow very memory
9581 # consuming and fragmenting process. To avoid this, we pick a random,
9582 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9583 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9584 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9585 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'
9586 ;;
9587
9588 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9589 tmp_diet=no
9590 if test "$host_os" = linux-dietlibc; then
9591 case $cc_basename in
9592 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9593 esac
9594 fi
9595 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9596 && test "$tmp_diet" = no
9597 then
9598 tmp_addflag=
9599 tmp_sharedflag='-shared'
9600 case $cc_basename,$host_cpu in
9601 pgcc*) # Portland Group C compiler
9602 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9603 tmp_addflag=' $pic_flag'
9604 ;;
9605 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9606 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9607 tmp_addflag=' $pic_flag -Mnomain' ;;
9608 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9609 tmp_addflag=' -i_dynamic' ;;
9610 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9611 tmp_addflag=' -i_dynamic -nofor_main' ;;
9612 ifc* | ifort*) # Intel Fortran compiler
9613 tmp_addflag=' -nofor_main' ;;
9614 lf95*) # Lahey Fortran 8.1
9615 whole_archive_flag_spec=
9616 tmp_sharedflag='--shared' ;;
9617 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9618 tmp_sharedflag='-qmkshrobj'
9619 tmp_addflag= ;;
9620 esac
9621 case `$CC -V 2>&1 | sed 5q` in
9622 *Sun\ C*) # Sun C 5.9
9623 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9624 compiler_needs_object=yes
9625 tmp_sharedflag='-G' ;;
9626 *Sun\ F*) # Sun Fortran 8.3
9627 tmp_sharedflag='-G' ;;
9628 esac
9629 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630
9631 if test "x$supports_anon_versioning" = xyes; then
9632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9634 echo "local: *; };" >> $output_objdir/$libname.ver~
9635 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9636 fi
9637
9638 case $cc_basename in
9639 xlf*)
9640 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9641 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9642 hardcode_libdir_flag_spec=
9643 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9644 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9645 if test "x$supports_anon_versioning" = xyes; then
9646 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9648 echo "local: *; };" >> $output_objdir/$libname.ver~
9649 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9650 fi
9651 ;;
9652 esac
9653 else
9654 ld_shlibs=no
9655 fi
9656 ;;
9657
9658 netbsd* | netbsdelf*-gnu)
9659 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9660 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9661 wlarc=
9662 else
9663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9665 fi
9666 ;;
9667
9668 solaris*)
9669 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9670 ld_shlibs=no
9671 cat <<_LT_EOF 1>&2
9672
9673*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9674*** create shared libraries on Solaris systems. Therefore, libtool
9675*** is disabling shared libraries support. We urge you to upgrade GNU
9676*** binutils to release 2.9.1 or newer. Another option is to modify
9677*** your PATH or compiler configuration so that the native linker is
9678*** used, and then restart.
9679
9680_LT_EOF
9681 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9684 else
9685 ld_shlibs=no
9686 fi
9687 ;;
9688
9689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9690 case `$LD -v 2>&1` in
9691 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9692 ld_shlibs=no
9693 cat <<_LT_EOF 1>&2
9694
9695*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9696*** reliably create shared libraries on SCO systems. Therefore, libtool
9697*** is disabling shared libraries support. We urge you to upgrade GNU
9698*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9699*** your PATH or compiler configuration so that the native linker is
9700*** used, and then restart.
9701
9702_LT_EOF
9703 ;;
9704 *)
9705 # For security reasons, it is highly recommended that you always
9706 # use absolute paths for naming shared libraries, and exclude the
9707 # DT_RUNPATH tag from executables and libraries. But doing so
9708 # requires that you compile everything twice, which is a pain.
9709 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9713 else
9714 ld_shlibs=no
9715 fi
9716 ;;
9717 esac
9718 ;;
9719
9720 sunos4*)
9721 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9722 wlarc=
9723 hardcode_direct=yes
9724 hardcode_shlibpath_var=no
9725 ;;
9726
9727 *)
9728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9731 else
9732 ld_shlibs=no
9733 fi
9734 ;;
9735 esac
9736
9737 if test "$ld_shlibs" = no; then
9738 runpath_var=
9739 hardcode_libdir_flag_spec=
9740 export_dynamic_flag_spec=
9741 whole_archive_flag_spec=
9742 fi
9743 else
9744 # PORTME fill in a description of your system's linker (not GNU ld)
9745 case $host_os in
9746 aix3*)
9747 allow_undefined_flag=unsupported
9748 always_export_symbols=yes
9749 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'
9750 # Note: this linker hardcodes the directories in LIBPATH if there
9751 # are no directories specified by -L.
9752 hardcode_minus_L=yes
9753 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9754 # Neither direct hardcoding nor static linking is supported with a
9755 # broken collect2.
9756 hardcode_direct=unsupported
9757 fi
9758 ;;
9759
9760 aix[4-9]*)
9761 if test "$host_cpu" = ia64; then
9762 # On IA64, the linker does run time linking by default, so we don't
9763 # have to do anything special.
9764 aix_use_runtimelinking=no
9765 exp_sym_flag='-Bexport'
9766 no_entry_flag=""
9767 else
9768 # If we're using GNU nm, then we don't want the "-C" option.
9769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9771 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9772 else
9773 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'
9774 fi
9775 aix_use_runtimelinking=no
9776
9777 # Test if we are trying to use run time linking or normal
9778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9779 # need to do runtime linking.
9780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9781 for ld_flag in $LDFLAGS; do
9782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9783 aix_use_runtimelinking=yes
9784 break
9785 fi
9786 done
9787 ;;
9788 esac
9789
9790 exp_sym_flag='-bexport'
9791 no_entry_flag='-bnoentry'
9792 fi
9793
9794 # When large executables or shared objects are built, AIX ld can
9795 # have problems creating the table of contents. If linking a library
9796 # or program results in "error TOC overflow" add -mminimal-toc to
9797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9799
9800 archive_cmds=''
9801 hardcode_direct=yes
9802 hardcode_direct_absolute=yes
9803 hardcode_libdir_separator=':'
9804 link_all_deplibs=yes
9805 file_list_spec='${wl}-f,'
9806
9807 if test "$GCC" = yes; then
9808 case $host_os in aix4.[012]|aix4.[012].*)
9809 # We only want to do this on AIX 4.2 and lower, the check
9810 # below for broken collect2 doesn't work under 4.3+
9811 collect2name=`${CC} -print-prog-name=collect2`
9812 if test -f "$collect2name" &&
9813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9814 then
9815 # We have reworked collect2
9816 :
9817 else
9818 # We have old collect2
9819 hardcode_direct=unsupported
9820 # It fails to find uninstalled libraries when the uninstalled
9821 # path is not listed in the libpath. Setting hardcode_minus_L
9822 # to unsupported forces relinking
9823 hardcode_minus_L=yes
9824 hardcode_libdir_flag_spec='-L$libdir'
9825 hardcode_libdir_separator=
9826 fi
9827 ;;
9828 esac
9829 shared_flag='-shared'
9830 if test "$aix_use_runtimelinking" = yes; then
9831 shared_flag="$shared_flag "'${wl}-G'
9832 fi
9833 link_all_deplibs=no
9834 else
9835 # not using gcc
9836 if test "$host_cpu" = ia64; then
9837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9838 # chokes on -Wl,-G. The following line is correct:
9839 shared_flag='-G'
9840 else
9841 if test "$aix_use_runtimelinking" = yes; then
9842 shared_flag='${wl}-G'
9843 else
9844 shared_flag='${wl}-bM:SRE'
9845 fi
9846 fi
9847 fi
9848
9849 export_dynamic_flag_spec='${wl}-bexpall'
9850 # It seems that -bexpall does not export symbols beginning with
9851 # underscore (_), so it is better to generate a list of symbols to export.
9852 always_export_symbols=yes
9853 if test "$aix_use_runtimelinking" = yes; then
9854 # Warning - without using the other runtime loading flags (-brtl),
9855 # -berok will link without error, but may produce a broken library.
9856 allow_undefined_flag='-berok'
9857 # Determine the default libpath from the value encoded in an
9858 # empty executable.
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h. */
9861
9862int
9863main ()
9864{
9865
9866 ;
9867 return 0;
9868}
9869_ACEOF
9870if ac_fn_c_try_link "$LINENO"; then :
9871
9872lt_aix_libpath_sed='
9873 /Import File Strings/,/^$/ {
9874 /^0/ {
9875 s/^0 *\(.*\)$/\1/
9876 p
9877 }
9878 }'
9879aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9880# Check for a 64-bit object if we didn't find anything.
9881if test -z "$aix_libpath"; then
9882 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9883fi
9884fi
9885rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9888
9889 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9890 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9891 else
9892 if test "$host_cpu" = ia64; then
9893 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9894 allow_undefined_flag="-z nodefs"
9895 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"
9896 else
9897 # Determine the default libpath from the value encoded in an
9898 # empty executable.
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900/* end confdefs.h. */
9901
9902int
9903main ()
9904{
9905
9906 ;
9907 return 0;
9908}
9909_ACEOF
9910if ac_fn_c_try_link "$LINENO"; then :
9911
9912lt_aix_libpath_sed='
9913 /Import File Strings/,/^$/ {
9914 /^0/ {
9915 s/^0 *\(.*\)$/\1/
9916 p
9917 }
9918 }'
9919aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9920# Check for a 64-bit object if we didn't find anything.
9921if test -z "$aix_libpath"; then
9922 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9923fi
9924fi
9925rm -f core conftest.err conftest.$ac_objext \
9926 conftest$ac_exeext conftest.$ac_ext
9927if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9928
9929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9930 # Warning - without using the other run time loading flags,
9931 # -berok will link without error, but may produce a broken library.
9932 no_undefined_flag=' ${wl}-bernotok'
9933 allow_undefined_flag=' ${wl}-berok'
9934 # Exported symbols can be pulled into shared objects from archives
9935 whole_archive_flag_spec='$convenience'
9936 archive_cmds_need_lc=yes
9937 # This is similar to how AIX traditionally builds its shared libraries.
9938 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'
9939 fi
9940 fi
9941 ;;
9942
9943 amigaos*)
9944 case $host_cpu in
9945 powerpc)
9946 # see comment about AmigaOS4 .so support
9947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9948 archive_expsym_cmds=''
9949 ;;
9950 m68k)
9951 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)'
9952 hardcode_libdir_flag_spec='-L$libdir'
9953 hardcode_minus_L=yes
9954 ;;
9955 esac
9956 ;;
9957
9958 bsdi[45]*)
9959 export_dynamic_flag_spec=-rdynamic
9960 ;;
9961
9962 cygwin* | mingw* | pw32* | cegcc*)
9963 # When not using gcc, we currently assume that we are using
9964 # Microsoft Visual C++.
9965 # hardcode_libdir_flag_spec is actually meaningless, as there is
9966 # no search path for DLLs.
9967 hardcode_libdir_flag_spec=' '
9968 allow_undefined_flag=unsupported
9969 # Tell ltmain to make .lib files, not .a files.
9970 libext=lib
9971 # Tell ltmain to make .dll files, not .so files.
9972 shrext_cmds=".dll"
9973 # FIXME: Setting linknames here is a bad hack.
9974 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9975 # The linker will automatically build a .lib file if we build a DLL.
9976 old_archive_from_new_cmds='true'
9977 # FIXME: Should let the user specify the lib program.
9978 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9979 fix_srcfile_path='`cygpath -w "$srcfile"`'
9980 enable_shared_with_static_runtimes=yes
9981 ;;
9982
9983 darwin* | rhapsody*)
9984
9985
9986 archive_cmds_need_lc=no
9987 hardcode_direct=no
9988 hardcode_automatic=yes
9989 hardcode_shlibpath_var=unsupported
9990 whole_archive_flag_spec=''
9991 link_all_deplibs=yes
9992 allow_undefined_flag="$_lt_dar_allow_undefined"
9993 case $cc_basename in
9994 ifort*) _lt_dar_can_shared=yes ;;
9995 *) _lt_dar_can_shared=$GCC ;;
9996 esac
9997 if test "$_lt_dar_can_shared" = "yes"; then
9998 output_verbose_link_cmd=echo
9999 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10000 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10001 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}"
10002 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}"
10003
10004 else
10005 ld_shlibs=no
10006 fi
10007
10008 ;;
10009
10010 dgux*)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_libdir_flag_spec='-L$libdir'
10013 hardcode_shlibpath_var=no
10014 ;;
10015
10016 freebsd1*)
10017 ld_shlibs=no
10018 ;;
10019
10020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10021 # support. Future versions do this automatically, but an explicit c++rt0.o
10022 # does not break anything, and helps significantly (at the cost of a little
10023 # extra space).
10024 freebsd2.2*)
10025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10026 hardcode_libdir_flag_spec='-R$libdir'
10027 hardcode_direct=yes
10028 hardcode_shlibpath_var=no
10029 ;;
10030
10031 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10032 freebsd2*)
10033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_direct=yes
10035 hardcode_minus_L=yes
10036 hardcode_shlibpath_var=no
10037 ;;
10038
10039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10040 freebsd* | dragonfly*)
10041 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10042 hardcode_libdir_flag_spec='-R$libdir'
10043 hardcode_direct=yes
10044 hardcode_shlibpath_var=no
10045 ;;
10046
10047 hpux9*)
10048 if test "$GCC" = yes; then
10049 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10050 else
10051 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'
10052 fi
10053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10054 hardcode_libdir_separator=:
10055 hardcode_direct=yes
10056
10057 # hardcode_minus_L: Not really in the search PATH,
10058 # but as the default location of the library.
10059 hardcode_minus_L=yes
10060 export_dynamic_flag_spec='${wl}-E'
10061 ;;
10062
10063 hpux10*)
10064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 else
10067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10068 fi
10069 if test "$with_gnu_ld" = no; then
10070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10071 hardcode_libdir_flag_spec_ld='+b $libdir'
10072 hardcode_libdir_separator=:
10073 hardcode_direct=yes
10074 hardcode_direct_absolute=yes
10075 export_dynamic_flag_spec='${wl}-E'
10076 # hardcode_minus_L: Not really in the search PATH,
10077 # but as the default location of the library.
10078 hardcode_minus_L=yes
10079 fi
10080 ;;
10081
10082 hpux11*)
10083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10084 case $host_cpu in
10085 hppa*64*)
10086 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 ;;
10088 ia64*)
10089 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10090 ;;
10091 *)
10092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10093 ;;
10094 esac
10095 else
10096 case $host_cpu in
10097 hppa*64*)
10098 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 ;;
10100 ia64*)
10101 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10102 ;;
10103 *)
10104 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10105 ;;
10106 esac
10107 fi
10108 if test "$with_gnu_ld" = no; then
10109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10110 hardcode_libdir_separator=:
10111
10112 case $host_cpu in
10113 hppa*64*|ia64*)
10114 hardcode_direct=no
10115 hardcode_shlibpath_var=no
10116 ;;
10117 *)
10118 hardcode_direct=yes
10119 hardcode_direct_absolute=yes
10120 export_dynamic_flag_spec='${wl}-E'
10121
10122 # hardcode_minus_L: Not really in the search PATH,
10123 # but as the default location of the library.
10124 hardcode_minus_L=yes
10125 ;;
10126 esac
10127 fi
10128 ;;
10129
10130 irix5* | irix6* | nonstopux*)
10131 if test "$GCC" = yes; then
10132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10133 # Try to use the -exported_symbol ld option, if it does not
10134 # work, assume that -exports_file does not work either and
10135 # implicitly export all symbols.
10136 save_LDFLAGS="$LDFLAGS"
10137 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139/* end confdefs.h. */
10140int foo(void) {}
10141_ACEOF
10142if ac_fn_c_try_link "$LINENO"; then :
10143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10144
10145fi
10146rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 LDFLAGS="$save_LDFLAGS"
10149 else
10150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10152 fi
10153 archive_cmds_need_lc='no'
10154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10155 hardcode_libdir_separator=:
10156 inherit_rpath=yes
10157 link_all_deplibs=yes
10158 ;;
10159
10160 netbsd* | netbsdelf*-gnu)
10161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10163 else
10164 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10165 fi
10166 hardcode_libdir_flag_spec='-R$libdir'
10167 hardcode_direct=yes
10168 hardcode_shlibpath_var=no
10169 ;;
10170
10171 newsos6)
10172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173 hardcode_direct=yes
10174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10175 hardcode_libdir_separator=:
10176 hardcode_shlibpath_var=no
10177 ;;
10178
10179 *nto* | *qnx*)
10180 ;;
10181
10182 openbsd*)
10183 if test -f /usr/libexec/ld.so; then
10184 hardcode_direct=yes
10185 hardcode_shlibpath_var=no
10186 hardcode_direct_absolute=yes
10187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10188 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10189 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10190 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10191 export_dynamic_flag_spec='${wl}-E'
10192 else
10193 case $host_os in
10194 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_libdir_flag_spec='-R$libdir'
10197 ;;
10198 *)
10199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10201 ;;
10202 esac
10203 fi
10204 else
10205 ld_shlibs=no
10206 fi
10207 ;;
10208
10209 os2*)
10210 hardcode_libdir_flag_spec='-L$libdir'
10211 hardcode_minus_L=yes
10212 allow_undefined_flag=unsupported
10213 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'
10214 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10215 ;;
10216
10217 osf3*)
10218 if test "$GCC" = yes; then
10219 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10220 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10221 else
10222 allow_undefined_flag=' -expect_unresolved \*'
10223 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10224 fi
10225 archive_cmds_need_lc='no'
10226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10227 hardcode_libdir_separator=:
10228 ;;
10229
10230 osf4* | osf5*) # as osf3* with the addition of -msym flag
10231 if test "$GCC" = yes; then
10232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10233 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10235 else
10236 allow_undefined_flag=' -expect_unresolved \*'
10237 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10238 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~
10239 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10240
10241 # Both c and cxx compiler support -rpath directly
10242 hardcode_libdir_flag_spec='-rpath $libdir'
10243 fi
10244 archive_cmds_need_lc='no'
10245 hardcode_libdir_separator=:
10246 ;;
10247
10248 solaris*)
10249 no_undefined_flag=' -z defs'
10250 if test "$GCC" = yes; then
10251 wlarc='${wl}'
10252 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10254 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10255 else
10256 case `$CC -V 2>&1` in
10257 *"Compilers 5.0"*)
10258 wlarc=''
10259 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10261 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10262 ;;
10263 *)
10264 wlarc='${wl}'
10265 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10267 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10268 ;;
10269 esac
10270 fi
10271 hardcode_libdir_flag_spec='-R$libdir'
10272 hardcode_shlibpath_var=no
10273 case $host_os in
10274 solaris2.[0-5] | solaris2.[0-5].*) ;;
10275 *)
10276 # The compiler driver will combine and reorder linker options,
10277 # but understands `-z linker_flag'. GCC discards it without `$wl',
10278 # but is careful enough not to reorder.
10279 # Supported since Solaris 2.6 (maybe 2.5.1?)
10280 if test "$GCC" = yes; then
10281 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10282 else
10283 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10284 fi
10285 ;;
10286 esac
10287 link_all_deplibs=yes
10288 ;;
10289
10290 sunos4*)
10291 if test "x$host_vendor" = xsequent; then
10292 # Use $CC to link under sequent, because it throws in some extra .o
10293 # files that make .init and .fini sections work.
10294 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10295 else
10296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10297 fi
10298 hardcode_libdir_flag_spec='-L$libdir'
10299 hardcode_direct=yes
10300 hardcode_minus_L=yes
10301 hardcode_shlibpath_var=no
10302 ;;
10303
10304 sysv4)
10305 case $host_vendor in
10306 sni)
10307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10308 hardcode_direct=yes # is this really true???
10309 ;;
10310 siemens)
10311 ## LD is ld it makes a PLAMLIB
10312 ## CC just makes a GrossModule.
10313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10314 reload_cmds='$CC -r -o $output$reload_objs'
10315 hardcode_direct=no
10316 ;;
10317 motorola)
10318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10320 ;;
10321 esac
10322 runpath_var='LD_RUN_PATH'
10323 hardcode_shlibpath_var=no
10324 ;;
10325
10326 sysv4.3*)
10327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10328 hardcode_shlibpath_var=no
10329 export_dynamic_flag_spec='-Bexport'
10330 ;;
10331
10332 sysv4*MP*)
10333 if test -d /usr/nec; then
10334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_shlibpath_var=no
10336 runpath_var=LD_RUN_PATH
10337 hardcode_runpath_var=yes
10338 ld_shlibs=yes
10339 fi
10340 ;;
10341
10342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10343 no_undefined_flag='${wl}-z,text'
10344 archive_cmds_need_lc=no
10345 hardcode_shlibpath_var=no
10346 runpath_var='LD_RUN_PATH'
10347
10348 if test "$GCC" = yes; then
10349 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351 else
10352 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10354 fi
10355 ;;
10356
10357 sysv5* | sco3.2v5* | sco5v6*)
10358 # Note: We can NOT use -z defs as we might desire, because we do not
10359 # link with -lc, and that would cause any symbols used from libc to
10360 # always be unresolved, which means just about no library would
10361 # ever link correctly. If we're not using GNU ld we use -z text
10362 # though, which does catch some bad symbols but isn't as heavy-handed
10363 # as -z defs.
10364 no_undefined_flag='${wl}-z,text'
10365 allow_undefined_flag='${wl}-z,nodefs'
10366 archive_cmds_need_lc=no
10367 hardcode_shlibpath_var=no
10368 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10369 hardcode_libdir_separator=':'
10370 link_all_deplibs=yes
10371 export_dynamic_flag_spec='${wl}-Bexport'
10372 runpath_var='LD_RUN_PATH'
10373
10374 if test "$GCC" = yes; then
10375 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10377 else
10378 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 fi
10381 ;;
10382
10383 uts4*)
10384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10385 hardcode_libdir_flag_spec='-L$libdir'
10386 hardcode_shlibpath_var=no
10387 ;;
10388
10389 *)
10390 ld_shlibs=no
10391 ;;
10392 esac
10393
10394 if test x$host_vendor = xsni; then
10395 case $host in
10396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10397 export_dynamic_flag_spec='${wl}-Blargedynsym'
10398 ;;
10399 esac
10400 fi
10401 fi
10402
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10404$as_echo "$ld_shlibs" >&6; }
10405test "$ld_shlibs" = no && can_build_shared=no
10406
10407with_gnu_ld=$with_gnu_ld
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423#
10424# Do we need to explicitly link libc?
10425#
10426case "x$archive_cmds_need_lc" in
10427x|xyes)
10428 # Assume -lc should be added
10429 archive_cmds_need_lc=yes
10430
10431 if test "$enable_shared" = yes && test "$GCC" = yes; then
10432 case $archive_cmds in
10433 *'~'*)
10434 # FIXME: we may have to deal with multi-command sequences.
10435 ;;
10436 '$CC '*)
10437 # Test whether the compiler implicitly links with -lc since on some
10438 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10439 # to ld, don't add -lc before -lgcc.
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10441$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10442 $RM conftest*
10443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10444
10445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10446 (eval $ac_compile) 2>&5
10447 ac_status=$?
10448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10449 test $ac_status = 0; } 2>conftest.err; then
10450 soname=conftest
10451 lib=conftest
10452 libobjs=conftest.$ac_objext
10453 deplibs=
10454 wl=$lt_prog_compiler_wl
10455 pic_flag=$lt_prog_compiler_pic
10456 compiler_flags=-v
10457 linker_flags=-v
10458 verstring=
10459 output_objdir=.
10460 libname=conftest
10461 lt_save_allow_undefined_flag=$allow_undefined_flag
10462 allow_undefined_flag=
10463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10464 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10465 ac_status=$?
10466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10467 test $ac_status = 0; }
10468 then
10469 archive_cmds_need_lc=no
10470 else
10471 archive_cmds_need_lc=yes
10472 fi
10473 allow_undefined_flag=$lt_save_allow_undefined_flag
10474 else
10475 cat conftest.err 1>&5
10476 fi
10477 $RM conftest*
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10479$as_echo "$archive_cmds_need_lc" >&6; }
10480 ;;
10481 esac
10482 fi
10483 ;;
10484esac
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10643$as_echo_n "checking dynamic linker characteristics... " >&6; }
10644
10645if test "$GCC" = yes; then
10646 case $host_os in
10647 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10648 *) lt_awk_arg="/^libraries:/" ;;
10649 esac
10650 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10651 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10652 # if the path contains ";" then we assume it to be the separator
10653 # otherwise default to the standard path separator (i.e. ":") - it is
10654 # assumed that no part of a normal pathname contains ";" but that should
10655 # okay in the real world where ";" in dirpaths is itself problematic.
10656 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10657 else
10658 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10659 fi
10660 # Ok, now we have the path, separated by spaces, we can step through it
10661 # and add multilib dir if necessary.
10662 lt_tmp_lt_search_path_spec=
10663 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10664 for lt_sys_path in $lt_search_path_spec; do
10665 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10666 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10667 else
10668 test -d "$lt_sys_path" && \
10669 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10670 fi
10671 done
10672 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10673BEGIN {RS=" "; FS="/|\n";} {
10674 lt_foo="";
10675 lt_count=0;
10676 for (lt_i = NF; lt_i > 0; lt_i--) {
10677 if ($lt_i != "" && $lt_i != ".") {
10678 if ($lt_i == "..") {
10679 lt_count++;
10680 } else {
10681 if (lt_count == 0) {
10682 lt_foo="/" $lt_i lt_foo;
10683 } else {
10684 lt_count--;
10685 }
10686 }
10687 }
10688 }
10689 if (lt_foo != "") { lt_freq[lt_foo]++; }
10690 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10691}'`
10692 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10693else
10694 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10695fi
10696library_names_spec=
10697libname_spec='lib$name'
10698soname_spec=
10699shrext_cmds=".so"
10700postinstall_cmds=
10701postuninstall_cmds=
10702finish_cmds=
10703finish_eval=
10704shlibpath_var=
10705shlibpath_overrides_runpath=unknown
10706version_type=none
10707dynamic_linker="$host_os ld.so"
10708sys_lib_dlsearch_path_spec="/lib /usr/lib"
10709need_lib_prefix=unknown
10710hardcode_into_libs=no
10711
10712# when you set need_version to no, make sure it does not cause -set_version
10713# flags to be left without arguments
10714need_version=unknown
10715
10716case $host_os in
10717aix3*)
10718 version_type=linux
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10720 shlibpath_var=LIBPATH
10721
10722 # AIX 3 has no versioning support, so we append a major version to the name.
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 ;;
10725
10726aix[4-9]*)
10727 version_type=linux
10728 need_lib_prefix=no
10729 need_version=no
10730 hardcode_into_libs=yes
10731 if test "$host_cpu" = ia64; then
10732 # AIX 5 supports IA64
10733 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 else
10736 # With GCC up to 2.95.x, collect2 would create an import file
10737 # for dependence libraries. The import file would start with
10738 # the line `#! .'. This would cause the generated library to
10739 # depend on `.', always an invalid library. This was fixed in
10740 # development snapshots of GCC prior to 3.0.
10741 case $host_os in
10742 aix4 | aix4.[01] | aix4.[01].*)
10743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10744 echo ' yes '
10745 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10746 :
10747 else
10748 can_build_shared=no
10749 fi
10750 ;;
10751 esac
10752 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10753 # soname into executable. Probably we can add versioning support to
10754 # collect2, so additional links can be useful in future.
10755 if test "$aix_use_runtimelinking" = yes; then
10756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10757 # instead of lib<name>.a to let people know that these are not
10758 # typical AIX shared libraries.
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 else
10761 # We preserve .a as extension for shared libraries through AIX4.2
10762 # and later when we are not doing run time linking.
10763 library_names_spec='${libname}${release}.a $libname.a'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 fi
10766 shlibpath_var=LIBPATH
10767 fi
10768 ;;
10769
10770amigaos*)
10771 case $host_cpu in
10772 powerpc)
10773 # Since July 2007 AmigaOS4 officially supports .so libraries.
10774 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 ;;
10777 m68k)
10778 library_names_spec='$libname.ixlibrary $libname.a'
10779 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10780 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10781 ;;
10782 esac
10783 ;;
10784
10785beos*)
10786 library_names_spec='${libname}${shared_ext}'
10787 dynamic_linker="$host_os ld.so"
10788 shlibpath_var=LIBRARY_PATH
10789 ;;
10790
10791bsdi[45]*)
10792 version_type=linux
10793 need_version=no
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10799 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10800 # the default ld.so.conf also contains /usr/contrib/lib and
10801 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10802 # libtool to hard-code these into programs
10803 ;;
10804
10805cygwin* | mingw* | pw32* | cegcc*)
10806 version_type=windows
10807 shrext_cmds=".dll"
10808 need_version=no
10809 need_lib_prefix=no
10810
10811 case $GCC,$host_os in
10812 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10813 library_names_spec='$libname.dll.a'
10814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10815 postinstall_cmds='base_file=`basename \${file}`~
10816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10817 dldir=$destdir/`dirname \$dlpath`~
10818 test -d \$dldir || mkdir -p \$dldir~
10819 $install_prog $dir/$dlname \$dldir/$dlname~
10820 chmod a+x \$dldir/$dlname~
10821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10823 fi'
10824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10825 dlpath=$dir/\$dldll~
10826 $RM \$dlpath'
10827 shlibpath_overrides_runpath=yes
10828
10829 case $host_os in
10830 cygwin*)
10831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10833 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10834 ;;
10835 mingw* | cegcc*)
10836 # MinGW DLLs use traditional 'lib' prefix
10837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10838 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10839 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10840 # It is most probably a Windows format PATH printed by
10841 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10842 # path with ; separators, and with drive letters. We can handle the
10843 # drive letters (cygwin fileutils understands them), so leave them,
10844 # especially as we might pass files found there to a mingw objdump,
10845 # which wouldn't understand a cygwinified path. Ahh.
10846 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10847 else
10848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10849 fi
10850 ;;
10851 pw32*)
10852 # pw32 DLLs use 'pw' prefix rather than 'lib'
10853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10854 ;;
10855 esac
10856 ;;
10857
10858 *)
10859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10860 ;;
10861 esac
10862 dynamic_linker='Win32 ld.exe'
10863 # FIXME: first we should search . and the directory the executable is in
10864 shlibpath_var=PATH
10865 ;;
10866
10867darwin* | rhapsody*)
10868 dynamic_linker="$host_os dyld"
10869 version_type=darwin
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10873 soname_spec='${libname}${release}${major}$shared_ext'
10874 shlibpath_overrides_runpath=yes
10875 shlibpath_var=DYLD_LIBRARY_PATH
10876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10877
10878 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10879 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10880 ;;
10881
10882dgux*)
10883 version_type=linux
10884 need_lib_prefix=no
10885 need_version=no
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 ;;
10890
10891freebsd1*)
10892 dynamic_linker=no
10893 ;;
10894
10895freebsd* | dragonfly*)
10896 # DragonFly does not have aout. When/if they implement a new
10897 # versioning mechanism, adjust this.
10898 if test -x /usr/bin/objformat; then
10899 objformat=`/usr/bin/objformat`
10900 else
10901 case $host_os in
10902 freebsd[123]*) objformat=aout ;;
10903 *) objformat=elf ;;
10904 esac
10905 fi
10906 version_type=freebsd-$objformat
10907 case $version_type in
10908 freebsd-elf*)
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10910 need_version=no
10911 need_lib_prefix=no
10912 ;;
10913 freebsd-*)
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10915 need_version=yes
10916 ;;
10917 esac
10918 shlibpath_var=LD_LIBRARY_PATH
10919 case $host_os in
10920 freebsd2*)
10921 shlibpath_overrides_runpath=yes
10922 ;;
10923 freebsd3.[01]* | freebsdelf3.[01]*)
10924 shlibpath_overrides_runpath=yes
10925 hardcode_into_libs=yes
10926 ;;
10927 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10928 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10929 shlibpath_overrides_runpath=no
10930 hardcode_into_libs=yes
10931 ;;
10932 *) # from 4.6 on, and DragonFly
10933 shlibpath_overrides_runpath=yes
10934 hardcode_into_libs=yes
10935 ;;
10936 esac
10937 ;;
10938
10939gnu*)
10940 version_type=linux
10941 need_lib_prefix=no
10942 need_version=no
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 hardcode_into_libs=yes
10947 ;;
10948
10949hpux9* | hpux10* | hpux11*)
10950 # Give a soname corresponding to the major version so that dld.sl refuses to
10951 # link against other versions.
10952 version_type=sunos
10953 need_lib_prefix=no
10954 need_version=no
10955 case $host_cpu in
10956 ia64*)
10957 shrext_cmds='.so'
10958 hardcode_into_libs=yes
10959 dynamic_linker="$host_os dld.so"
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 if test "X$HPUX_IA64_MODE" = X32; then
10965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10966 else
10967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10968 fi
10969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10970 ;;
10971 hppa*64*)
10972 shrext_cmds='.sl'
10973 hardcode_into_libs=yes
10974 dynamic_linker="$host_os dld.sl"
10975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10981 ;;
10982 *)
10983 shrext_cmds='.sl'
10984 dynamic_linker="$host_os dld.sl"
10985 shlibpath_var=SHLIB_PATH
10986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 ;;
10990 esac
10991 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10992 postinstall_cmds='chmod 555 $lib'
10993 ;;
10994
10995interix[3-9]*)
10996 version_type=linux
10997 need_lib_prefix=no
10998 need_version=no
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 shlibpath_overrides_runpath=no
11004 hardcode_into_libs=yes
11005 ;;
11006
11007irix5* | irix6* | nonstopux*)
11008 case $host_os in
11009 nonstopux*) version_type=nonstopux ;;
11010 *)
11011 if test "$lt_cv_prog_gnu_ld" = yes; then
11012 version_type=linux
11013 else
11014 version_type=irix
11015 fi ;;
11016 esac
11017 need_lib_prefix=no
11018 need_version=no
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11021 case $host_os in
11022 irix5* | nonstopux*)
11023 libsuff= shlibsuff=
11024 ;;
11025 *)
11026 case $LD in # libtool.m4 will add one of these switches to LD
11027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11028 libsuff= shlibsuff= libmagic=32-bit;;
11029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11030 libsuff=32 shlibsuff=N32 libmagic=N32;;
11031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11032 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11033 *) libsuff= shlibsuff= libmagic=never-match;;
11034 esac
11035 ;;
11036 esac
11037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11038 shlibpath_overrides_runpath=no
11039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11041 hardcode_into_libs=yes
11042 ;;
11043
11044# No shared lib support for Linux oldld, aout, or coff.
11045linux*oldld* | linux*aout* | linux*coff*)
11046 dynamic_linker=no
11047 ;;
11048
11049# This must be Linux ELF.
11050linux* | k*bsd*-gnu | kopensolaris*-gnu)
11051 version_type=linux
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=no
11059 # Some binutils ld are patched to set DT_RUNPATH
11060 save_LDFLAGS=$LDFLAGS
11061 save_libdir=$libdir
11062 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11063 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065/* end confdefs.h. */
11066
11067int
11068main ()
11069{
11070
11071 ;
11072 return 0;
11073}
11074_ACEOF
11075if ac_fn_c_try_link "$LINENO"; then :
11076 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11077 shlibpath_overrides_runpath=yes
11078fi
11079fi
11080rm -f core conftest.err conftest.$ac_objext \
11081 conftest$ac_exeext conftest.$ac_ext
11082 LDFLAGS=$save_LDFLAGS
11083 libdir=$save_libdir
11084
11085 # This implies no fast_install, which is unacceptable.
11086 # Some rework will be needed to allow for fast_install
11087 # before this can be enabled.
11088 hardcode_into_libs=yes
11089
11090 # Append ld.so.conf contents to the search path
11091 if test -f /etc/ld.so.conf; then
11092 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;/^$/d' | tr '\n' ' '`
11093 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11094 fi
11095
11096 # We used to test for /lib/ld.so.1 and disable shared libraries on
11097 # powerpc, because MkLinux only supported shared libraries with the
11098 # GNU dynamic linker. Since this was broken with cross compilers,
11099 # most powerpc-linux boxes support dynamic linking these days and
11100 # people can always --disable-shared, the test was removed, and we
11101 # assume the GNU/Linux dynamic linker is in use.
11102 dynamic_linker='GNU/Linux ld.so'
11103 ;;
11104
11105netbsdelf*-gnu)
11106 version_type=linux
11107 need_lib_prefix=no
11108 need_version=no
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=no
11113 hardcode_into_libs=yes
11114 dynamic_linker='NetBSD ld.elf_so'
11115 ;;
11116
11117netbsd*)
11118 version_type=sunos
11119 need_lib_prefix=no
11120 need_version=no
11121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11124 dynamic_linker='NetBSD (a.out) ld.so'
11125 else
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 dynamic_linker='NetBSD ld.elf_so'
11129 fi
11130 shlibpath_var=LD_LIBRARY_PATH
11131 shlibpath_overrides_runpath=yes
11132 hardcode_into_libs=yes
11133 ;;
11134
11135newsos6)
11136 version_type=linux
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 shlibpath_overrides_runpath=yes
11140 ;;
11141
11142*nto* | *qnx*)
11143 version_type=qnx
11144 need_lib_prefix=no
11145 need_version=no
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=no
11150 hardcode_into_libs=yes
11151 dynamic_linker='ldqnx.so'
11152 ;;
11153
11154openbsd*)
11155 version_type=sunos
11156 sys_lib_dlsearch_path_spec="/usr/lib"
11157 need_lib_prefix=no
11158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11159 case $host_os in
11160 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11161 *) need_version=no ;;
11162 esac
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11167 case $host_os in
11168 openbsd2.[89] | openbsd2.[89].*)
11169 shlibpath_overrides_runpath=no
11170 ;;
11171 *)
11172 shlibpath_overrides_runpath=yes
11173 ;;
11174 esac
11175 else
11176 shlibpath_overrides_runpath=yes
11177 fi
11178 ;;
11179
11180os2*)
11181 libname_spec='$name'
11182 shrext_cmds=".dll"
11183 need_lib_prefix=no
11184 library_names_spec='$libname${shared_ext} $libname.a'
11185 dynamic_linker='OS/2 ld.exe'
11186 shlibpath_var=LIBPATH
11187 ;;
11188
11189osf3* | osf4* | osf5*)
11190 version_type=osf
11191 need_lib_prefix=no
11192 need_version=no
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11198 ;;
11199
11200rdos*)
11201 dynamic_linker=no
11202 ;;
11203
11204solaris*)
11205 version_type=linux
11206 need_lib_prefix=no
11207 need_version=no
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 shlibpath_overrides_runpath=yes
11212 hardcode_into_libs=yes
11213 # ldd complains unless libraries are executable
11214 postinstall_cmds='chmod +x $lib'
11215 ;;
11216
11217sunos4*)
11218 version_type=sunos
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11220 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=yes
11223 if test "$with_gnu_ld" = yes; then
11224 need_lib_prefix=no
11225 fi
11226 need_version=yes
11227 ;;
11228
11229sysv4 | sysv4.3*)
11230 version_type=linux
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11232 soname_spec='${libname}${release}${shared_ext}$major'
11233 shlibpath_var=LD_LIBRARY_PATH
11234 case $host_vendor in
11235 sni)
11236 shlibpath_overrides_runpath=no
11237 need_lib_prefix=no
11238 runpath_var=LD_RUN_PATH
11239 ;;
11240 siemens)
11241 need_lib_prefix=no
11242 ;;
11243 motorola)
11244 need_lib_prefix=no
11245 need_version=no
11246 shlibpath_overrides_runpath=no
11247 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11248 ;;
11249 esac
11250 ;;
11251
11252sysv4*MP*)
11253 if test -d /usr/nec ;then
11254 version_type=linux
11255 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11256 soname_spec='$libname${shared_ext}.$major'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 fi
11259 ;;
11260
11261sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11262 version_type=freebsd-elf
11263 need_lib_prefix=no
11264 need_version=no
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=yes
11269 hardcode_into_libs=yes
11270 if test "$with_gnu_ld" = yes; then
11271 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11272 else
11273 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11274 case $host_os in
11275 sco3.2v5*)
11276 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11277 ;;
11278 esac
11279 fi
11280 sys_lib_dlsearch_path_spec='/usr/lib'
11281 ;;
11282
11283tpf*)
11284 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11285 version_type=linux
11286 need_lib_prefix=no
11287 need_version=no
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 shlibpath_var=LD_LIBRARY_PATH
11290 shlibpath_overrides_runpath=no
11291 hardcode_into_libs=yes
11292 ;;
11293
11294uts4*)
11295 version_type=linux
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297 soname_spec='${libname}${release}${shared_ext}$major'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 ;;
11300
11301*)
11302 dynamic_linker=no
11303 ;;
11304esac
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11306$as_echo "$dynamic_linker" >&6; }
11307test "$dynamic_linker" = no && can_build_shared=no
11308
11309variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11310if test "$GCC" = yes; then
11311 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11312fi
11313
11314if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11315 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11316fi
11317if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11318 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11319fi
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11408$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11409hardcode_action=
11410if test -n "$hardcode_libdir_flag_spec" ||
11411 test -n "$runpath_var" ||
11412 test "X$hardcode_automatic" = "Xyes" ; then
11413
11414 # We can hardcode non-existent directories.
11415 if test "$hardcode_direct" != no &&
11416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11417 # have to relink, otherwise we might link with an installed library
11418 # when we should be linking with a yet-to-be-installed one
11419 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11420 test "$hardcode_minus_L" != no; then
11421 # Linking always hardcodes the temporary library directory.
11422 hardcode_action=relink
11423 else
11424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11425 hardcode_action=immediate
11426 fi
11427else
11428 # We cannot hardcode anything, or else we can only hardcode existing
11429 # directories.
11430 hardcode_action=unsupported
11431fi
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11433$as_echo "$hardcode_action" >&6; }
11434
11435if test "$hardcode_action" = relink ||
11436 test "$inherit_rpath" = yes; then
11437 # Fast installation is not supported
11438 enable_fast_install=no
11439elif test "$shlibpath_overrides_runpath" = yes ||
11440 test "$enable_shared" = no; then
11441 # Fast installation is not necessary
11442 enable_fast_install=needless
11443fi
11444
11445
11446
11447
11448
11449
11450 if test "x$enable_dlopen" != xyes; then
11451 enable_dlopen=unknown
11452 enable_dlopen_self=unknown
11453 enable_dlopen_self_static=unknown
11454else
11455 lt_cv_dlopen=no
11456 lt_cv_dlopen_libs=
11457
11458 case $host_os in
11459 beos*)
11460 lt_cv_dlopen="load_add_on"
11461 lt_cv_dlopen_libs=
11462 lt_cv_dlopen_self=yes
11463 ;;
11464
11465 mingw* | pw32* | cegcc*)
11466 lt_cv_dlopen="LoadLibrary"
11467 lt_cv_dlopen_libs=
11468 ;;
11469
11470 cygwin*)
11471 lt_cv_dlopen="dlopen"
11472 lt_cv_dlopen_libs=
11473 ;;
11474
11475 darwin*)
11476 # if libdl is installed we need to link against it
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11478$as_echo_n "checking for dlopen in -ldl... " >&6; }
11479if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11480 $as_echo_n "(cached) " >&6
11481else
11482 ac_check_lib_save_LIBS=$LIBS
11483LIBS="-ldl $LIBS"
11484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485/* end confdefs.h. */
11486
11487/* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11490#ifdef __cplusplus
11491extern "C"
11492#endif
11493char dlopen ();
11494int
11495main ()
11496{
11497return dlopen ();
11498 ;
11499 return 0;
11500}
11501_ACEOF
11502if ac_fn_c_try_link "$LINENO"; then :
11503 ac_cv_lib_dl_dlopen=yes
11504else
11505 ac_cv_lib_dl_dlopen=no
11506fi
11507rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509LIBS=$ac_check_lib_save_LIBS
11510fi
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11512$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11513if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11515else
11516
11517 lt_cv_dlopen="dyld"
11518 lt_cv_dlopen_libs=
11519 lt_cv_dlopen_self=yes
11520
11521fi
11522
11523 ;;
11524
11525 *)
11526 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11527if test "x$ac_cv_func_shl_load" = x""yes; then :
11528 lt_cv_dlopen="shl_load"
11529else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11531$as_echo_n "checking for shl_load in -ldld... " >&6; }
11532if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11533 $as_echo_n "(cached) " >&6
11534else
11535 ac_check_lib_save_LIBS=$LIBS
11536LIBS="-ldld $LIBS"
11537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538/* end confdefs.h. */
11539
11540/* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11543#ifdef __cplusplus
11544extern "C"
11545#endif
11546char shl_load ();
11547int
11548main ()
11549{
11550return shl_load ();
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555if ac_fn_c_try_link "$LINENO"; then :
11556 ac_cv_lib_dld_shl_load=yes
11557else
11558 ac_cv_lib_dld_shl_load=no
11559fi
11560rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562LIBS=$ac_check_lib_save_LIBS
11563fi
11564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11565$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11566if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11567 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11568else
11569 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11570if test "x$ac_cv_func_dlopen" = x""yes; then :
11571 lt_cv_dlopen="dlopen"
11572else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11574$as_echo_n "checking for dlopen in -ldl... " >&6; }
11575if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11577else
11578 ac_check_lib_save_LIBS=$LIBS
11579LIBS="-ldl $LIBS"
11580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581/* end confdefs.h. */
11582
11583/* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586#ifdef __cplusplus
11587extern "C"
11588#endif
11589char dlopen ();
11590int
11591main ()
11592{
11593return dlopen ();
11594 ;
11595 return 0;
11596}
11597_ACEOF
11598if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_lib_dl_dlopen=yes
11600else
11601 ac_cv_lib_dl_dlopen=no
11602fi
11603rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605LIBS=$ac_check_lib_save_LIBS
11606fi
11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11608$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11609if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11611else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11613$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11614if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11615 $as_echo_n "(cached) " >&6
11616else
11617 ac_check_lib_save_LIBS=$LIBS
11618LIBS="-lsvld $LIBS"
11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620/* end confdefs.h. */
11621
11622/* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11625#ifdef __cplusplus
11626extern "C"
11627#endif
11628char dlopen ();
11629int
11630main ()
11631{
11632return dlopen ();
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637if ac_fn_c_try_link "$LINENO"; then :
11638 ac_cv_lib_svld_dlopen=yes
11639else
11640 ac_cv_lib_svld_dlopen=no
11641fi
11642rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644LIBS=$ac_check_lib_save_LIBS
11645fi
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11647$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11648if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11650else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11652$as_echo_n "checking for dld_link in -ldld... " >&6; }
11653if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11654 $as_echo_n "(cached) " >&6
11655else
11656 ac_check_lib_save_LIBS=$LIBS
11657LIBS="-ldld $LIBS"
11658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h. */
11660
11661/* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11664#ifdef __cplusplus
11665extern "C"
11666#endif
11667char dld_link ();
11668int
11669main ()
11670{
11671return dld_link ();
11672 ;
11673 return 0;
11674}
11675_ACEOF
11676if ac_fn_c_try_link "$LINENO"; then :
11677 ac_cv_lib_dld_dld_link=yes
11678else
11679 ac_cv_lib_dld_dld_link=no
11680fi
11681rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683LIBS=$ac_check_lib_save_LIBS
11684fi
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11686$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11687if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11688 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11689fi
11690
11691
11692fi
11693
11694
11695fi
11696
11697
11698fi
11699
11700
11701fi
11702
11703
11704fi
11705
11706 ;;
11707 esac
11708
11709 if test "x$lt_cv_dlopen" != xno; then
11710 enable_dlopen=yes
11711 else
11712 enable_dlopen=no
11713 fi
11714
11715 case $lt_cv_dlopen in
11716 dlopen)
11717 save_CPPFLAGS="$CPPFLAGS"
11718 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11719
11720 save_LDFLAGS="$LDFLAGS"
11721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11722
11723 save_LIBS="$LIBS"
11724 LIBS="$lt_cv_dlopen_libs $LIBS"
11725
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11727$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11728if test "${lt_cv_dlopen_self+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
11730else
11731 if test "$cross_compiling" = yes; then :
11732 lt_cv_dlopen_self=cross
11733else
11734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11735 lt_status=$lt_dlunknown
11736 cat > conftest.$ac_ext <<_LT_EOF
11737#line 11737 "configure"
11738#include "confdefs.h"
11739
11740#if HAVE_DLFCN_H
11741#include <dlfcn.h>
11742#endif
11743
11744#include <stdio.h>
11745
11746#ifdef RTLD_GLOBAL
11747# define LT_DLGLOBAL RTLD_GLOBAL
11748#else
11749# ifdef DL_GLOBAL
11750# define LT_DLGLOBAL DL_GLOBAL
11751# else
11752# define LT_DLGLOBAL 0
11753# endif
11754#endif
11755
11756/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11757 find out it does not work in some platform. */
11758#ifndef LT_DLLAZY_OR_NOW
11759# ifdef RTLD_LAZY
11760# define LT_DLLAZY_OR_NOW RTLD_LAZY
11761# else
11762# ifdef DL_LAZY
11763# define LT_DLLAZY_OR_NOW DL_LAZY
11764# else
11765# ifdef RTLD_NOW
11766# define LT_DLLAZY_OR_NOW RTLD_NOW
11767# else
11768# ifdef DL_NOW
11769# define LT_DLLAZY_OR_NOW DL_NOW
11770# else
11771# define LT_DLLAZY_OR_NOW 0
11772# endif
11773# endif
11774# endif
11775# endif
11776#endif
11777
11778void fnord() { int i=42;}
11779int main ()
11780{
11781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11782 int status = $lt_dlunknown;
11783
11784 if (self)
11785 {
11786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11788 /* dlclose (self); */
11789 }
11790 else
11791 puts (dlerror ());
11792
11793 return status;
11794}
11795_LT_EOF
11796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11797 (eval $ac_link) 2>&5
11798 ac_status=$?
11799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11801 (./conftest; exit; ) >&5 2>/dev/null
11802 lt_status=$?
11803 case x$lt_status in
11804 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11805 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11806 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11807 esac
11808 else :
11809 # compilation failed
11810 lt_cv_dlopen_self=no
11811 fi
11812fi
11813rm -fr conftest*
11814
11815
11816fi
11817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11818$as_echo "$lt_cv_dlopen_self" >&6; }
11819
11820 if test "x$lt_cv_dlopen_self" = xyes; then
11821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11823$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11824if test "${lt_cv_dlopen_self_static+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11826else
11827 if test "$cross_compiling" = yes; then :
11828 lt_cv_dlopen_self_static=cross
11829else
11830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11831 lt_status=$lt_dlunknown
11832 cat > conftest.$ac_ext <<_LT_EOF
11833#line 11833 "configure"
11834#include "confdefs.h"
11835
11836#if HAVE_DLFCN_H
11837#include <dlfcn.h>
11838#endif
11839
11840#include <stdio.h>
11841
11842#ifdef RTLD_GLOBAL
11843# define LT_DLGLOBAL RTLD_GLOBAL
11844#else
11845# ifdef DL_GLOBAL
11846# define LT_DLGLOBAL DL_GLOBAL
11847# else
11848# define LT_DLGLOBAL 0
11849# endif
11850#endif
11851
11852/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11853 find out it does not work in some platform. */
11854#ifndef LT_DLLAZY_OR_NOW
11855# ifdef RTLD_LAZY
11856# define LT_DLLAZY_OR_NOW RTLD_LAZY
11857# else
11858# ifdef DL_LAZY
11859# define LT_DLLAZY_OR_NOW DL_LAZY
11860# else
11861# ifdef RTLD_NOW
11862# define LT_DLLAZY_OR_NOW RTLD_NOW
11863# else
11864# ifdef DL_NOW
11865# define LT_DLLAZY_OR_NOW DL_NOW
11866# else
11867# define LT_DLLAZY_OR_NOW 0
11868# endif
11869# endif
11870# endif
11871# endif
11872#endif
11873
11874void fnord() { int i=42;}
11875int main ()
11876{
11877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11878 int status = $lt_dlunknown;
11879
11880 if (self)
11881 {
11882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11884 /* dlclose (self); */
11885 }
11886 else
11887 puts (dlerror ());
11888
11889 return status;
11890}
11891_LT_EOF
11892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11893 (eval $ac_link) 2>&5
11894 ac_status=$?
11895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11896 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11897 (./conftest; exit; ) >&5 2>/dev/null
11898 lt_status=$?
11899 case x$lt_status in
11900 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11901 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11902 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11903 esac
11904 else :
11905 # compilation failed
11906 lt_cv_dlopen_self_static=no
11907 fi
11908fi
11909rm -fr conftest*
11910
11911
11912fi
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11914$as_echo "$lt_cv_dlopen_self_static" >&6; }
11915 fi
11916
11917 CPPFLAGS="$save_CPPFLAGS"
11918 LDFLAGS="$save_LDFLAGS"
11919 LIBS="$save_LIBS"
11920 ;;
11921 esac
11922
11923 case $lt_cv_dlopen_self in
11924 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11925 *) enable_dlopen_self=unknown ;;
11926 esac
11927
11928 case $lt_cv_dlopen_self_static in
11929 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11930 *) enable_dlopen_self_static=unknown ;;
11931 esac
11932fi
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950striplib=
11951old_striplib=
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11953$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11954if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11955 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11956 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958$as_echo "yes" >&6; }
11959else
11960# FIXME - insert some real tests, host_os isn't really good enough
11961 case $host_os in
11962 darwin*)
11963 if test -n "$STRIP" ; then
11964 striplib="$STRIP -x"
11965 old_striplib="$STRIP -S"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967$as_echo "yes" >&6; }
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970$as_echo "no" >&6; }
11971 fi
11972 ;;
11973 *)
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975$as_echo "no" >&6; }
11976 ;;
11977 esac
11978fi
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991 # Report which library types will actually be built
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11993$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11995$as_echo "$can_build_shared" >&6; }
11996
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11998$as_echo_n "checking whether to build shared libraries... " >&6; }
11999 test "$can_build_shared" = "no" && enable_shared=no
12000
12001 # On AIX, shared libraries and static libraries use the same namespace, and
12002 # are all built from PIC.
12003 case $host_os in
12004 aix3*)
12005 test "$enable_shared" = yes && enable_static=no
12006 if test -n "$RANLIB"; then
12007 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12008 postinstall_cmds='$RANLIB $lib'
12009 fi
12010 ;;
12011
12012 aix[4-9]*)
12013 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12014 test "$enable_shared" = yes && enable_static=no
12015 fi
12016 ;;
12017 esac
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12019$as_echo "$enable_shared" >&6; }
12020
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12022$as_echo_n "checking whether to build static libraries... " >&6; }
12023 # Make sure either enable_shared or enable_static is yes.
12024 test "$enable_shared" = yes || enable_static=yes
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12026$as_echo "$enable_static" >&6; }
12027
12028
12029
12030
12031fi
12032ac_ext=c
12033ac_cpp='$CPP $CPPFLAGS'
12034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036ac_compiler_gnu=$ac_cv_c_compiler_gnu
12037
12038CC="$lt_save_CC"
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052 ac_config_commands="$ac_config_commands libtool"
12053
12054
12055
12056
12057# Only expand once:
12058
12059
12060
12061##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
12062##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
12063
12064
12065
12066cat >>confdefs.h <<_ACEOF
12067#define VMAJ 1
12068_ACEOF
12069
12070
12071cat >>confdefs.h <<_ACEOF
12072#define VMIN 1
12073_ACEOF
12074
12075
12076cat >>confdefs.h <<_ACEOF
12077#define VMIC 0
12078_ACEOF
12079
12080
12081cat >>confdefs.h <<_ACEOF
12082#define VREV 0
12083_ACEOF
12084
12085version_info="2:0:1"
12086release_info=""
12087
12088
12089##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
12090##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
12091VMAJ=1
12092
12093
12094### Needed information
12095
12096
12097
12098
12099case "$host_os" in
12100 mingw32ce*)
12101 MODULE_ARCH="$host_os-$host_cpu"
12102 ;;
12103 *)
12104 MODULE_ARCH="$host_os-$host_cpu-1.1.0"
12105 ;;
12106esac
12107
12108
12109cat >>confdefs.h <<_ACEOF
12110#define MODULE_ARCH "$MODULE_ARCH"
12111_ACEOF
12112
12113
12114want_fontconfig="auto"
12115want_fribidi="auto"
12116want_harfbuzz="auto"
12117want_pixman="no"
12118want_evas_cserve="yes"
12119
12120want_evas_engine_buffer="yes"
12121want_evas_engine_software_xlib="no"
12122want_evas_engine_software_xcb="no"
12123want_evas_engine_software_gdi="no"
12124want_evas_engine_software_ddraw="no"
12125want_evas_engine_software_sdl="no"
12126want_evas_engine_software_8_x11="no"
12127want_evas_engine_software_16_x11="no"
12128want_evas_engine_software_16_ddraw="no"
12129want_evas_engine_software_16_wince="no"
12130want_evas_engine_software_16_sdl="no"
12131want_evas_engine_gl_xlib="no"
12132want_evas_engine_gl_xcb="no"
12133want_evas_engine_gl_sdl="no"
12134want_evas_engine_gl_cocoa="no"
12135want_evas_engine_direct3d="no"
12136want_evas_engine_fb="no"
12137want_evas_engine_directfb="no"
12138want_evas_engine_psl1ght="no"
12139
12140want_evas_image_loader_edb="yes"
12141want_evas_image_loader_eet="yes"
12142want_evas_image_loader_gif="yes"
12143want_evas_image_loader_jpeg="yes"
12144want_evas_image_loader_pmaps="yes"
12145want_evas_image_loader_png="yes"
12146want_evas_image_loader_svg="yes"
12147want_evas_image_loader_tiff="yes"
12148want_evas_image_loader_xpm="yes"
12149want_evas_image_loader_bmp="yes"
12150want_evas_image_loader_tga="yes"
12151want_evas_image_loader_wbmp="yes"
12152want_evas_image_loader_ico="yes"
12153want_evas_image_loader_psd="yes"
12154want_evas_image_loader_generic="yes"
12155
12156want_evas_font_loader_eet="yes"
12157
12158case "$host_os" in
12159 mingw32ce*)
12160 want_fontconfig="no"
12161 want_evas_engine_software_16_wince="yes"
12162 want_evas_image_loader_edb="no"
12163 want_evas_image_loader_gif="no"
12164 want_evas_image_loader_svg="no"
12165 want_evas_image_loader_tiff="no"
12166 ;;
12167 mingw*)
12168 want_evas_engine_software_gdi="yes"
12169 want_evas_engine_software_ddraw="yes"
12170 want_evas_engine_direct3d="yes"
12171 want_evas_engine_software_16_ddraw="yes"
12172 want_evas_image_loader_edb="no"
12173 want_evas_image_loader_svg="no"
12174 ;;
12175 darwin*)
12176 want_evas_engine_software_xlib="auto"
12177 want_evas_engine_gl_cocoa="auto"
12178 ;;
12179 *)
12180 want_evas_engine_software_xlib="auto"
12181 want_evas_engine_gl_xlib="auto"
12182 want_evas_engine_software_xcb="no"
12183 want_evas_engine_gl_xcb="no"
12184 want_evas_engine_fb="auto"
12185### no - not ready/usable/complete
12186# want_evas_engine_software_8_x11="auto"
12187# want_evas_engine_software_16_x11="auto"
12188 ;;
12189esac
12190
12191case "$host_vendor" in
12192 ps3*)
12193 want_evas_engine_psl1ght="static"
12194 ;;
12195esac
12196
12197requirement_evas=""
12198
12199
12200### Additional options to configure
12201
12202# when used, that option makes configure script fails when
12203# a requirement is selected, but not met.
12204use_strict="no"
12205# Check whether --enable-strict was given.
12206if test "${enable_strict+set}" = set; then :
12207 enableval=$enable_strict; use_strict="yes"
12208else
12209 use_strict="no"
12210fi
12211
12212
12213# Simple X11 build/link
12214# Check whether --enable-simple-x11 was given.
12215if test "${enable_simple_x11+set}" = set; then :
12216 enableval=$enable_simple_x11;
12217 if test "x${enableval}" = "xyes" ; then
12218 want_evas_simple_x11="yes"
12219 else
12220 want_evas_simple_x11="no"
12221 fi
12222
12223fi
12224
12225
12226
12227### Checks for programs
12228
12229
12230 ac_ext=m
12231ac_cpp='$OBJCPP $CPPFLAGS'
12232ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12233ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12234ac_compiler_gnu=$ac_cv_objc_compiler_gnu
12235if test -n "$ac_tool_prefix"; then
12236 for ac_prog in gcc objcc objc cc CC
12237 do
12238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12239set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241$as_echo_n "checking for $ac_word... " >&6; }
12242if test "${ac_cv_prog_OBJC+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12244else
12245 if test -n "$OBJC"; then
12246 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
12247else
12248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $PATH
12250do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12255 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12258 fi
12259done
12260 done
12261IFS=$as_save_IFS
12262
12263fi
12264fi
12265OBJC=$ac_cv_prog_OBJC
12266if test -n "$OBJC"; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
12268$as_echo "$OBJC" >&6; }
12269else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271$as_echo "no" >&6; }
12272fi
12273
12274
12275 test -n "$OBJC" && break
12276 done
12277fi
12278if test -z "$OBJC"; then
12279 ac_ct_OBJC=$OBJC
12280 for ac_prog in gcc objcc objc cc CC
12281do
12282 # Extract the first word of "$ac_prog", so it can be a program name with args.
12283set dummy $ac_prog; ac_word=$2
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285$as_echo_n "checking for $ac_word... " >&6; }
12286if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12288else
12289 if test -n "$ac_ct_OBJC"; then
12290 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
12291else
12292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293for as_dir in $PATH
12294do
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
12297 for ac_exec_ext in '' $ac_executable_extensions; do
12298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12299 ac_cv_prog_ac_ct_OBJC="$ac_prog"
12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 break 2
12302 fi
12303done
12304 done
12305IFS=$as_save_IFS
12306
12307fi
12308fi
12309ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
12310if test -n "$ac_ct_OBJC"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
12312$as_echo "$ac_ct_OBJC" >&6; }
12313else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315$as_echo "no" >&6; }
12316fi
12317
12318
12319 test -n "$ac_ct_OBJC" && break
12320done
12321
12322 if test "x$ac_ct_OBJC" = x; then
12323 OBJC="gcc"
12324 else
12325 case $cross_compiling:$ac_tool_warned in
12326yes:)
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12329ac_tool_warned=yes ;;
12330esac
12331 OBJC=$ac_ct_OBJC
12332 fi
12333fi
12334
12335# Provide some information about the compiler.
12336$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
12337set X $ac_compile
12338ac_compiler=$2
12339for ac_option in --version -v -V -qversion; do
12340 { { ac_try="$ac_compiler $ac_option >&5"
12341case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344esac
12345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12346$as_echo "$ac_try_echo"; } >&5
12347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12348 ac_status=$?
12349 if test -s conftest.err; then
12350 sed '10a\
12351... rest of stderr output deleted ...
12352 10q' conftest.err >conftest.er1
12353 cat conftest.er1 >&5
12354 fi
12355 rm -f conftest.er1 conftest.err
12356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12357 test $ac_status = 0; }
12358done
12359
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
12361$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
12362if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364else
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366/* end confdefs.h. */
12367
12368int
12369main ()
12370{
12371#ifndef __GNUC__
12372 choke me
12373#endif
12374
12375 ;
12376 return 0;
12377}
12378_ACEOF
12379if ac_fn_objc_try_compile "$LINENO"; then :
12380 ac_compiler_gnu=yes
12381else
12382 ac_compiler_gnu=no
12383fi
12384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12385ac_cv_objc_compiler_gnu=$ac_compiler_gnu
12386
12387fi
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
12389$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
12390if test $ac_compiler_gnu = yes; then
12391 GOBJC=yes
12392else
12393 GOBJC=
12394fi
12395ac_test_OBJCFLAGS=${OBJCFLAGS+set}
12396ac_save_OBJCFLAGS=$OBJCFLAGS
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
12398$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
12399if test "${ac_cv_prog_objc_g+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12401else
12402 ac_save_objc_werror_flag=$ac_objc_werror_flag
12403 ac_objc_werror_flag=yes
12404 ac_cv_prog_objc_g=no
12405 OBJCFLAGS="-g"
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407/* end confdefs.h. */
12408
12409int
12410main ()
12411{
12412
12413 ;
12414 return 0;
12415}
12416_ACEOF
12417if ac_fn_objc_try_compile "$LINENO"; then :
12418 ac_cv_prog_objc_g=yes
12419else
12420 OBJCFLAGS=""
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422/* end confdefs.h. */
12423
12424int
12425main ()
12426{
12427
12428 ;
12429 return 0;
12430}
12431_ACEOF
12432if ac_fn_objc_try_compile "$LINENO"; then :
12433
12434else
12435 ac_objc_werror_flag=$ac_save_objc_werror_flag
12436 OBJCFLAGS="-g"
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h. */
12439
12440int
12441main ()
12442{
12443
12444 ;
12445 return 0;
12446}
12447_ACEOF
12448if ac_fn_objc_try_compile "$LINENO"; then :
12449 ac_cv_prog_objc_g=yes
12450fi
12451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452fi
12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454fi
12455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12456 ac_objc_werror_flag=$ac_save_objc_werror_flag
12457fi
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
12459$as_echo "$ac_cv_prog_objc_g" >&6; }
12460if test "$ac_test_OBJCFLAGS" = set; then
12461 OBJCFLAGS=$ac_save_OBJCFLAGS
12462elif test $ac_cv_prog_objc_g = yes; then
12463 if test "$GOBJC" = yes; then
12464 OBJCFLAGS="-g -O2"
12465 else
12466 OBJCFLAGS="-g"
12467 fi
12468else
12469 if test "$GOBJC" = yes; then
12470 OBJCFLAGS="-O2"
12471 else
12472 OBJCFLAGS=
12473 fi
12474fi
12475ac_ext=c
12476ac_cpp='$CPP $CPPFLAGS'
12477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12479ac_compiler_gnu=$ac_cv_c_compiler_gnu
12480
12481depcc="$OBJC" am_compiler_list='gcc3 gcc'
12482
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12484$as_echo_n "checking dependency style of $depcc... " >&6; }
12485if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then :
12486 $as_echo_n "(cached) " >&6
12487else
12488 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12489 # We make a subdir and do the tests there. Otherwise we can end up
12490 # making bogus files that we don't know about and never remove. For
12491 # instance it was reported that on HP-UX the gcc test will end up
12492 # making a dummy file named `D' -- because `-MD' means `put the output
12493 # in D'.
12494 mkdir conftest.dir
12495 # Copy depcomp to subdir because otherwise we won't find it if we're
12496 # using a relative directory.
12497 cp "$am_depcomp" conftest.dir
12498 cd conftest.dir
12499 # We will build objects and dependencies in a subdirectory because
12500 # it helps to detect inapplicable dependency modes. For instance
12501 # both Tru64's cc and ICC support -MD to output dependencies as a
12502 # side effect of compilation, but ICC will put the dependencies in
12503 # the current directory while Tru64 will put them in the object
12504 # directory.
12505 mkdir sub
12506
12507 am_cv_OBJC_dependencies_compiler_type=none
12508 if test "$am_compiler_list" = ""; then
12509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12510 fi
12511 am__universal=false
12512
12513
12514 for depmode in $am_compiler_list; do
12515 # Setup a source with many dependencies, because some compilers
12516 # like to wrap large dependency lists on column 80 (with \), and
12517 # we should not choose a depcomp mode which is confused by this.
12518 #
12519 # We need to recreate these files for each test, as the compiler may
12520 # overwrite some of them when testing with obscure command lines.
12521 # This happens at least with the AIX C compiler.
12522 : > sub/conftest.c
12523 for i in 1 2 3 4 5 6; do
12524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12525 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12526 # Solaris 8's {/usr,}/bin/sh.
12527 touch sub/conftst$i.h
12528 done
12529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12530
12531 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12532 # mode. It turns out that the SunPro C++ compiler does not properly
12533 # handle `-M -o', and we need to detect this. Also, some Intel
12534 # versions had trouble with output in subdirs
12535 am__obj=sub/conftest.${OBJEXT-o}
12536 am__minus_obj="-o $am__obj"
12537 case $depmode in
12538 gcc)
12539 # This depmode causes a compiler race in universal mode.
12540 test "$am__universal" = false || continue
12541 ;;
12542 nosideeffect)
12543 # after this tag, mechanisms are not by side-effect, so they'll
12544 # only be used when explicitly requested
12545 if test "x$enable_dependency_tracking" = xyes; then
12546 continue
12547 else
12548 break
12549 fi
12550 ;;
12551 msvisualcpp | msvcmsys)
12552 # This compiler won't grok `-c -o', but also, the minuso test has
12553 # not run yet. These depmodes are late enough in the game, and
12554 # so weak that their functioning should not be impacted.
12555 am__obj=conftest.${OBJEXT-o}
12556 am__minus_obj=
12557 ;;
12558 none) break ;;
12559 esac
12560 if depmode=$depmode \
12561 source=sub/conftest.c object=$am__obj \
12562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12563 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12564 >/dev/null 2>conftest.err &&
12565 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12566 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12567 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12568 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12569 # icc doesn't choke on unknown options, it will just issue warnings
12570 # or remarks (even with -Werror). So we grep stderr for any message
12571 # that says an option was ignored or not supported.
12572 # When given -MP, icc 7.0 and 7.1 complain thusly:
12573 # icc: Command line warning: ignoring option '-M'; no argument required
12574 # The diagnosis changed in icc 8.0:
12575 # icc: Command line remark: option '-MP' not supported
12576 if (grep 'ignoring option' conftest.err ||
12577 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12578 am_cv_OBJC_dependencies_compiler_type=$depmode
12579 break
12580 fi
12581 fi
12582 done
12583
12584 cd ..
12585 rm -rf conftest.dir
12586else
12587 am_cv_OBJC_dependencies_compiler_type=none
12588fi
12589
12590fi
12591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
12592$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
12593OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
12594
12595 if
12596 test "x$enable_dependency_tracking" != xno \
12597 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
12598 am__fastdepOBJC_TRUE=
12599 am__fastdepOBJC_FALSE='#'
12600else
12601 am__fastdepOBJC_TRUE='#'
12602 am__fastdepOBJC_FALSE=
12603fi
12604
12605
12606
12607depcc="$OBJC" am_compiler_list='gcc3 gcc'
12608
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12610$as_echo_n "checking dependency style of $depcc... " >&6; }
12611if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12613else
12614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12615 # We make a subdir and do the tests there. Otherwise we can end up
12616 # making bogus files that we don't know about and never remove. For
12617 # instance it was reported that on HP-UX the gcc test will end up
12618 # making a dummy file named `D' -- because `-MD' means `put the output
12619 # in D'.
12620 mkdir conftest.dir
12621 # Copy depcomp to subdir because otherwise we won't find it if we're
12622 # using a relative directory.
12623 cp "$am_depcomp" conftest.dir
12624 cd conftest.dir
12625 # We will build objects and dependencies in a subdirectory because
12626 # it helps to detect inapplicable dependency modes. For instance
12627 # both Tru64's cc and ICC support -MD to output dependencies as a
12628 # side effect of compilation, but ICC will put the dependencies in
12629 # the current directory while Tru64 will put them in the object
12630 # directory.
12631 mkdir sub
12632
12633 am_cv_OBJC_dependencies_compiler_type=none
12634 if test "$am_compiler_list" = ""; then
12635 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12636 fi
12637 am__universal=false
12638
12639
12640 for depmode in $am_compiler_list; do
12641 # Setup a source with many dependencies, because some compilers
12642 # like to wrap large dependency lists on column 80 (with \), and
12643 # we should not choose a depcomp mode which is confused by this.
12644 #
12645 # We need to recreate these files for each test, as the compiler may
12646 # overwrite some of them when testing with obscure command lines.
12647 # This happens at least with the AIX C compiler.
12648 : > sub/conftest.c
12649 for i in 1 2 3 4 5 6; do
12650 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12651 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12652 # Solaris 8's {/usr,}/bin/sh.
12653 touch sub/conftst$i.h
12654 done
12655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12656
12657 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12658 # mode. It turns out that the SunPro C++ compiler does not properly
12659 # handle `-M -o', and we need to detect this. Also, some Intel
12660 # versions had trouble with output in subdirs
12661 am__obj=sub/conftest.${OBJEXT-o}
12662 am__minus_obj="-o $am__obj"
12663 case $depmode in
12664 gcc)
12665 # This depmode causes a compiler race in universal mode.
12666 test "$am__universal" = false || continue
12667 ;;
12668 nosideeffect)
12669 # after this tag, mechanisms are not by side-effect, so they'll
12670 # only be used when explicitly requested
12671 if test "x$enable_dependency_tracking" = xyes; then
12672 continue
12673 else
12674 break
12675 fi
12676 ;;
12677 msvisualcpp | msvcmsys)
12678 # This compiler won't grok `-c -o', but also, the minuso test has
12679 # not run yet. These depmodes are late enough in the game, and
12680 # so weak that their functioning should not be impacted.
12681 am__obj=conftest.${OBJEXT-o}
12682 am__minus_obj=
12683 ;;
12684 none) break ;;
12685 esac
12686 if depmode=$depmode \
12687 source=sub/conftest.c object=$am__obj \
12688 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12689 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12690 >/dev/null 2>conftest.err &&
12691 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12693 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12695 # icc doesn't choke on unknown options, it will just issue warnings
12696 # or remarks (even with -Werror). So we grep stderr for any message
12697 # that says an option was ignored or not supported.
12698 # When given -MP, icc 7.0 and 7.1 complain thusly:
12699 # icc: Command line warning: ignoring option '-M'; no argument required
12700 # The diagnosis changed in icc 8.0:
12701 # icc: Command line remark: option '-MP' not supported
12702 if (grep 'ignoring option' conftest.err ||
12703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12704 am_cv_OBJC_dependencies_compiler_type=$depmode
12705 break
12706 fi
12707 fi
12708 done
12709
12710 cd ..
12711 rm -rf conftest.dir
12712else
12713 am_cv_OBJC_dependencies_compiler_type=none
12714fi
12715
12716fi
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
12718$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
12719OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
12720
12721 if
12722 test "x$enable_dependency_tracking" != xno \
12723 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
12724 am__fastdepOBJC_TRUE=
12725 am__fastdepOBJC_FALSE='#'
12726else
12727 am__fastdepOBJC_TRUE='#'
12728 am__fastdepOBJC_FALSE=
12729fi
12730
12731
12732
12733
12734
12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Objective C compiler works" >&5
12736$as_echo_n "checking whether the Objective C compiler works... " >&6; }
12737if test "${rw_cv_prog_objc_works+set}" = set; then :
12738 $as_echo_n "(cached) " >&6
12739else
12740 ac_ext=m
12741ac_cpp='$OBJCPP $CPPFLAGS'
12742ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744ac_compiler_gnu=$ac_cv_objc_compiler_gnu
12745
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747/* end confdefs.h. */
12748
12749int
12750main ()
12751{
12752
12753 ;
12754 return 0;
12755}
12756_ACEOF
12757if ac_fn_objc_try_link "$LINENO"; then :
12758 rw_cv_prog_objc_works=yes
12759else
12760 rw_cv_prog_objc_works=no
12761fi
12762rm -f core conftest.err conftest.$ac_objext \
12763 conftest$ac_exeext conftest.$ac_ext
12764 ac_ext=c
12765ac_cpp='$CPP $CPPFLAGS'
12766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12768ac_compiler_gnu=$ac_cv_c_compiler_gnu
12769
12770fi
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rw_cv_prog_objc_works" >&5
12772$as_echo "$rw_cv_prog_objc_works" >&6; }
12773
12774
12775ac_ext=cpp
12776ac_cpp='$CXXCPP $CPPFLAGS'
12777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12780if test -z "$CXX"; then
12781 if test -n "$CCC"; then
12782 CXX=$CCC
12783 else
12784 if test -n "$ac_tool_prefix"; then
12785 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12786 do
12787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790$as_echo_n "checking for $ac_word... " >&6; }
12791if test "${ac_cv_prog_CXX+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12793else
12794 if test -n "$CXX"; then
12795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12796else
12797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798for as_dir in $PATH
12799do
12800 IFS=$as_save_IFS
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12804 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12806 break 2
12807 fi
12808done
12809 done
12810IFS=$as_save_IFS
12811
12812fi
12813fi
12814CXX=$ac_cv_prog_CXX
12815if test -n "$CXX"; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12817$as_echo "$CXX" >&6; }
12818else
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820$as_echo "no" >&6; }
12821fi
12822
12823
12824 test -n "$CXX" && break
12825 done
12826fi
12827if test -z "$CXX"; then
12828 ac_ct_CXX=$CXX
12829 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12830do
12831 # Extract the first word of "$ac_prog", so it can be a program name with args.
12832set dummy $ac_prog; ac_word=$2
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834$as_echo_n "checking for $ac_word... " >&6; }
12835if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837else
12838 if test -n "$ac_ct_CXX"; then
12839 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12840else
12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_ac_ct_CXX="$ac_prog"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12851 fi
12852done
12853 done
12854IFS=$as_save_IFS
12855
12856fi
12857fi
12858ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12859if test -n "$ac_ct_CXX"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12861$as_echo "$ac_ct_CXX" >&6; }
12862else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864$as_echo "no" >&6; }
12865fi
12866
12867
12868 test -n "$ac_ct_CXX" && break
12869done
12870
12871 if test "x$ac_ct_CXX" = x; then
12872 CXX="g++"
12873 else
12874 case $cross_compiling:$ac_tool_warned in
12875yes:)
12876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12878ac_tool_warned=yes ;;
12879esac
12880 CXX=$ac_ct_CXX
12881 fi
12882fi
12883
12884 fi
12885fi
12886# Provide some information about the compiler.
12887$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12888set X $ac_compile
12889ac_compiler=$2
12890for ac_option in --version -v -V -qversion; do
12891 { { ac_try="$ac_compiler $ac_option >&5"
12892case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895esac
12896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12897$as_echo "$ac_try_echo"; } >&5
12898 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12899 ac_status=$?
12900 if test -s conftest.err; then
12901 sed '10a\
12902... rest of stderr output deleted ...
12903 10q' conftest.err >conftest.er1
12904 cat conftest.er1 >&5
12905 fi
12906 rm -f conftest.er1 conftest.err
12907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12908 test $ac_status = 0; }
12909done
12910
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12912$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12913if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12915else
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h. */
12918
12919int
12920main ()
12921{
12922#ifndef __GNUC__
12923 choke me
12924#endif
12925
12926 ;
12927 return 0;
12928}
12929_ACEOF
12930if ac_fn_cxx_try_compile "$LINENO"; then :
12931 ac_compiler_gnu=yes
12932else
12933 ac_compiler_gnu=no
12934fi
12935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12936ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12937
12938fi
12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12940$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12941if test $ac_compiler_gnu = yes; then
12942 GXX=yes
12943else
12944 GXX=
12945fi
12946ac_test_CXXFLAGS=${CXXFLAGS+set}
12947ac_save_CXXFLAGS=$CXXFLAGS
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12949$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12950if test "${ac_cv_prog_cxx_g+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12952else
12953 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12954 ac_cxx_werror_flag=yes
12955 ac_cv_prog_cxx_g=no
12956 CXXFLAGS="-g"
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958/* end confdefs.h. */
12959
12960int
12961main ()
12962{
12963
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968if ac_fn_cxx_try_compile "$LINENO"; then :
12969 ac_cv_prog_cxx_g=yes
12970else
12971 CXXFLAGS=""
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973/* end confdefs.h. */
12974
12975int
12976main ()
12977{
12978
12979 ;
12980 return 0;
12981}
12982_ACEOF
12983if ac_fn_cxx_try_compile "$LINENO"; then :
12984
12985else
12986 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12987 CXXFLAGS="-g"
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989/* end confdefs.h. */
12990
12991int
12992main ()
12993{
12994
12995 ;
12996 return 0;
12997}
12998_ACEOF
12999if ac_fn_cxx_try_compile "$LINENO"; then :
13000 ac_cv_prog_cxx_g=yes
13001fi
13002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003fi
13004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005fi
13006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13008fi
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13010$as_echo "$ac_cv_prog_cxx_g" >&6; }
13011if test "$ac_test_CXXFLAGS" = set; then
13012 CXXFLAGS=$ac_save_CXXFLAGS
13013elif test $ac_cv_prog_cxx_g = yes; then
13014 if test "$GXX" = yes; then
13015 CXXFLAGS="-g -O2"
13016 else
13017 CXXFLAGS="-g"
13018 fi
13019else
13020 if test "$GXX" = yes; then
13021 CXXFLAGS="-O2"
13022 else
13023 CXXFLAGS=
13024 fi
13025fi
13026ac_ext=c
13027ac_cpp='$CPP $CPPFLAGS'
13028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13030ac_compiler_gnu=$ac_cv_c_compiler_gnu
13031
13032depcc="$CXX" am_compiler_list=
13033
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13035$as_echo_n "checking dependency style of $depcc... " >&6; }
13036if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038else
13039 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13040 # We make a subdir and do the tests there. Otherwise we can end up
13041 # making bogus files that we don't know about and never remove. For
13042 # instance it was reported that on HP-UX the gcc test will end up
13043 # making a dummy file named `D' -- because `-MD' means `put the output
13044 # in D'.
13045 mkdir conftest.dir
13046 # Copy depcomp to subdir because otherwise we won't find it if we're
13047 # using a relative directory.
13048 cp "$am_depcomp" conftest.dir
13049 cd conftest.dir
13050 # We will build objects and dependencies in a subdirectory because
13051 # it helps to detect inapplicable dependency modes. For instance
13052 # both Tru64's cc and ICC support -MD to output dependencies as a
13053 # side effect of compilation, but ICC will put the dependencies in
13054 # the current directory while Tru64 will put them in the object
13055 # directory.
13056 mkdir sub
13057
13058 am_cv_CXX_dependencies_compiler_type=none
13059 if test "$am_compiler_list" = ""; then
13060 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13061 fi
13062 am__universal=false
13063 case " $depcc " in #(
13064 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13065 esac
13066
13067 for depmode in $am_compiler_list; do
13068 # Setup a source with many dependencies, because some compilers
13069 # like to wrap large dependency lists on column 80 (with \), and
13070 # we should not choose a depcomp mode which is confused by this.
13071 #
13072 # We need to recreate these files for each test, as the compiler may
13073 # overwrite some of them when testing with obscure command lines.
13074 # This happens at least with the AIX C compiler.
13075 : > sub/conftest.c
13076 for i in 1 2 3 4 5 6; do
13077 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13078 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13079 # Solaris 8's {/usr,}/bin/sh.
13080 touch sub/conftst$i.h
13081 done
13082 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13083
13084 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13085 # mode. It turns out that the SunPro C++ compiler does not properly
13086 # handle `-M -o', and we need to detect this. Also, some Intel
13087 # versions had trouble with output in subdirs
13088 am__obj=sub/conftest.${OBJEXT-o}
13089 am__minus_obj="-o $am__obj"
13090 case $depmode in
13091 gcc)
13092 # This depmode causes a compiler race in universal mode.
13093 test "$am__universal" = false || continue
13094 ;;
13095 nosideeffect)
13096 # after this tag, mechanisms are not by side-effect, so they'll
13097 # only be used when explicitly requested
13098 if test "x$enable_dependency_tracking" = xyes; then
13099 continue
13100 else
13101 break
13102 fi
13103 ;;
13104 msvisualcpp | msvcmsys)
13105 # This compiler won't grok `-c -o', but also, the minuso test has
13106 # not run yet. These depmodes are late enough in the game, and
13107 # so weak that their functioning should not be impacted.
13108 am__obj=conftest.${OBJEXT-o}
13109 am__minus_obj=
13110 ;;
13111 none) break ;;
13112 esac
13113 if depmode=$depmode \
13114 source=sub/conftest.c object=$am__obj \
13115 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13116 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13117 >/dev/null 2>conftest.err &&
13118 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13119 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13120 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13121 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13122 # icc doesn't choke on unknown options, it will just issue warnings
13123 # or remarks (even with -Werror). So we grep stderr for any message
13124 # that says an option was ignored or not supported.
13125 # When given -MP, icc 7.0 and 7.1 complain thusly:
13126 # icc: Command line warning: ignoring option '-M'; no argument required
13127 # The diagnosis changed in icc 8.0:
13128 # icc: Command line remark: option '-MP' not supported
13129 if (grep 'ignoring option' conftest.err ||
13130 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13131 am_cv_CXX_dependencies_compiler_type=$depmode
13132 break
13133 fi
13134 fi
13135 done
13136
13137 cd ..
13138 rm -rf conftest.dir
13139else
13140 am_cv_CXX_dependencies_compiler_type=none
13141fi
13142
13143fi
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13145$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13146CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13147
13148 if
13149 test "x$enable_dependency_tracking" != xno \
13150 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13151 am__fastdepCXX_TRUE=
13152 am__fastdepCXX_FALSE='#'
13153else
13154 am__fastdepCXX_TRUE='#'
13155 am__fastdepCXX_FALSE=
13156fi
13157
13158
13159
13160ac_ext=cpp
13161ac_cpp='$CXXCPP $CPPFLAGS'
13162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13165if test -z "$CXX"; then
13166 if test -n "$CCC"; then
13167 CXX=$CCC
13168 else
13169 if test -n "$ac_tool_prefix"; then
13170 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13171 do
13172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13173set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175$as_echo_n "checking for $ac_word... " >&6; }
13176if test "${ac_cv_prog_CXX+set}" = set; then :
13177 $as_echo_n "(cached) " >&6
13178else
13179 if test -n "$CXX"; then
13180 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13181else
13182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13189 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191 break 2
13192 fi
13193done
13194 done
13195IFS=$as_save_IFS
13196
13197fi
13198fi
13199CXX=$ac_cv_prog_CXX
13200if test -n "$CXX"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13202$as_echo "$CXX" >&6; }
13203else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205$as_echo "no" >&6; }
13206fi
13207
13208
13209 test -n "$CXX" && break
13210 done
13211fi
13212if test -z "$CXX"; then
13213 ac_ct_CXX=$CXX
13214 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13215do
13216 # Extract the first word of "$ac_prog", so it can be a program name with args.
13217set dummy $ac_prog; ac_word=$2
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219$as_echo_n "checking for $ac_word... " >&6; }
13220if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13222else
13223 if test -n "$ac_ct_CXX"; then
13224 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13225else
13226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227for as_dir in $PATH
13228do
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233 ac_cv_prog_ac_ct_CXX="$ac_prog"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235 break 2
13236 fi
13237done
13238 done
13239IFS=$as_save_IFS
13240
13241fi
13242fi
13243ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13244if test -n "$ac_ct_CXX"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13246$as_echo "$ac_ct_CXX" >&6; }
13247else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249$as_echo "no" >&6; }
13250fi
13251
13252
13253 test -n "$ac_ct_CXX" && break
13254done
13255
13256 if test "x$ac_ct_CXX" = x; then
13257 CXX="g++"
13258 else
13259 case $cross_compiling:$ac_tool_warned in
13260yes:)
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13263ac_tool_warned=yes ;;
13264esac
13265 CXX=$ac_ct_CXX
13266 fi
13267fi
13268
13269 fi
13270fi
13271# Provide some information about the compiler.
13272$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13273set X $ac_compile
13274ac_compiler=$2
13275for ac_option in --version -v -V -qversion; do
13276 { { ac_try="$ac_compiler $ac_option >&5"
13277case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13282$as_echo "$ac_try_echo"; } >&5
13283 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13284 ac_status=$?
13285 if test -s conftest.err; then
13286 sed '10a\
13287... rest of stderr output deleted ...
13288 10q' conftest.err >conftest.er1
13289 cat conftest.er1 >&5
13290 fi
13291 rm -f conftest.er1 conftest.err
13292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13293 test $ac_status = 0; }
13294done
13295
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13297$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13298if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
13300else
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302/* end confdefs.h. */
13303
13304int
13305main ()
13306{
13307#ifndef __GNUC__
13308 choke me
13309#endif
13310
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315if ac_fn_cxx_try_compile "$LINENO"; then :
13316 ac_compiler_gnu=yes
13317else
13318 ac_compiler_gnu=no
13319fi
13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13322
13323fi
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13325$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13326if test $ac_compiler_gnu = yes; then
13327 GXX=yes
13328else
13329 GXX=
13330fi
13331ac_test_CXXFLAGS=${CXXFLAGS+set}
13332ac_save_CXXFLAGS=$CXXFLAGS
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13334$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13335if test "${ac_cv_prog_cxx_g+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
13337else
13338 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13339 ac_cxx_werror_flag=yes
13340 ac_cv_prog_cxx_g=no
13341 CXXFLAGS="-g"
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343/* end confdefs.h. */
13344
13345int
13346main ()
13347{
13348
13349 ;
13350 return 0;
13351}
13352_ACEOF
13353if ac_fn_cxx_try_compile "$LINENO"; then :
13354 ac_cv_prog_cxx_g=yes
13355else
13356 CXXFLAGS=""
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358/* end confdefs.h. */
13359
13360int
13361main ()
13362{
13363
13364 ;
13365 return 0;
13366}
13367_ACEOF
13368if ac_fn_cxx_try_compile "$LINENO"; then :
13369
13370else
13371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13372 CXXFLAGS="-g"
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374/* end confdefs.h. */
13375
13376int
13377main ()
13378{
13379
13380 ;
13381 return 0;
13382}
13383_ACEOF
13384if ac_fn_cxx_try_compile "$LINENO"; then :
13385 ac_cv_prog_cxx_g=yes
13386fi
13387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388fi
13389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390fi
13391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13393fi
13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13395$as_echo "$ac_cv_prog_cxx_g" >&6; }
13396if test "$ac_test_CXXFLAGS" = set; then
13397 CXXFLAGS=$ac_save_CXXFLAGS
13398elif test $ac_cv_prog_cxx_g = yes; then
13399 if test "$GXX" = yes; then
13400 CXXFLAGS="-g -O2"
13401 else
13402 CXXFLAGS="-g"
13403 fi
13404else
13405 if test "$GXX" = yes; then
13406 CXXFLAGS="-O2"
13407 else
13408 CXXFLAGS=
13409 fi
13410fi
13411ac_ext=c
13412ac_cpp='$CPP $CPPFLAGS'
13413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13415ac_compiler_gnu=$ac_cv_c_compiler_gnu
13416
13417depcc="$CXX" am_compiler_list=
13418
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13420$as_echo_n "checking dependency style of $depcc... " >&6; }
13421if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423else
13424 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13425 # We make a subdir and do the tests there. Otherwise we can end up
13426 # making bogus files that we don't know about and never remove. For
13427 # instance it was reported that on HP-UX the gcc test will end up
13428 # making a dummy file named `D' -- because `-MD' means `put the output
13429 # in D'.
13430 mkdir conftest.dir
13431 # Copy depcomp to subdir because otherwise we won't find it if we're
13432 # using a relative directory.
13433 cp "$am_depcomp" conftest.dir
13434 cd conftest.dir
13435 # We will build objects and dependencies in a subdirectory because
13436 # it helps to detect inapplicable dependency modes. For instance
13437 # both Tru64's cc and ICC support -MD to output dependencies as a
13438 # side effect of compilation, but ICC will put the dependencies in
13439 # the current directory while Tru64 will put them in the object
13440 # directory.
13441 mkdir sub
13442
13443 am_cv_CXX_dependencies_compiler_type=none
13444 if test "$am_compiler_list" = ""; then
13445 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13446 fi
13447 am__universal=false
13448 case " $depcc " in #(
13449 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13450 esac
13451
13452 for depmode in $am_compiler_list; do
13453 # Setup a source with many dependencies, because some compilers
13454 # like to wrap large dependency lists on column 80 (with \), and
13455 # we should not choose a depcomp mode which is confused by this.
13456 #
13457 # We need to recreate these files for each test, as the compiler may
13458 # overwrite some of them when testing with obscure command lines.
13459 # This happens at least with the AIX C compiler.
13460 : > sub/conftest.c
13461 for i in 1 2 3 4 5 6; do
13462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13463 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13464 # Solaris 8's {/usr,}/bin/sh.
13465 touch sub/conftst$i.h
13466 done
13467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13468
13469 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13470 # mode. It turns out that the SunPro C++ compiler does not properly
13471 # handle `-M -o', and we need to detect this. Also, some Intel
13472 # versions had trouble with output in subdirs
13473 am__obj=sub/conftest.${OBJEXT-o}
13474 am__minus_obj="-o $am__obj"
13475 case $depmode in
13476 gcc)
13477 # This depmode causes a compiler race in universal mode.
13478 test "$am__universal" = false || continue
13479 ;;
13480 nosideeffect)
13481 # after this tag, mechanisms are not by side-effect, so they'll
13482 # only be used when explicitly requested
13483 if test "x$enable_dependency_tracking" = xyes; then
13484 continue
13485 else
13486 break
13487 fi
13488 ;;
13489 msvisualcpp | msvcmsys)
13490 # This compiler won't grok `-c -o', but also, the minuso test has
13491 # not run yet. These depmodes are late enough in the game, and
13492 # so weak that their functioning should not be impacted.
13493 am__obj=conftest.${OBJEXT-o}
13494 am__minus_obj=
13495 ;;
13496 none) break ;;
13497 esac
13498 if depmode=$depmode \
13499 source=sub/conftest.c object=$am__obj \
13500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13501 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13502 >/dev/null 2>conftest.err &&
13503 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13504 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13505 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13506 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13507 # icc doesn't choke on unknown options, it will just issue warnings
13508 # or remarks (even with -Werror). So we grep stderr for any message
13509 # that says an option was ignored or not supported.
13510 # When given -MP, icc 7.0 and 7.1 complain thusly:
13511 # icc: Command line warning: ignoring option '-M'; no argument required
13512 # The diagnosis changed in icc 8.0:
13513 # icc: Command line remark: option '-MP' not supported
13514 if (grep 'ignoring option' conftest.err ||
13515 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13516 am_cv_CXX_dependencies_compiler_type=$depmode
13517 break
13518 fi
13519 fi
13520 done
13521
13522 cd ..
13523 rm -rf conftest.dir
13524else
13525 am_cv_CXX_dependencies_compiler_type=none
13526fi
13527
13528fi
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13530$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13531CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13532
13533 if
13534 test "x$enable_dependency_tracking" != xno \
13535 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13536 am__fastdepCXX_TRUE=
13537 am__fastdepCXX_FALSE='#'
13538else
13539 am__fastdepCXX_TRUE='#'
13540 am__fastdepCXX_FALSE=
13541fi
13542
13543
13544if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13545 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13546 (test "X$CXX" != "Xg++"))) ; then
13547 ac_ext=cpp
13548ac_cpp='$CXXCPP $CPPFLAGS'
13549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13553$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13554if test -z "$CXXCPP"; then
13555 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13556 $as_echo_n "(cached) " >&6
13557else
13558 # Double quotes because CXXCPP needs to be expanded
13559 for CXXCPP in "$CXX -E" "/lib/cpp"
13560 do
13561 ac_preproc_ok=false
13562for ac_cxx_preproc_warn_flag in '' yes
13563do
13564 # Use a header file that comes with gcc, so configuring glibc
13565 # with a fresh cross-compiler works.
13566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13567 # <limits.h> exists even on freestanding compilers.
13568 # On the NeXT, cc -E runs the code through the compiler's parser,
13569 # not just through cpp. "Syntax error" is here to catch this case.
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571/* end confdefs.h. */
13572#ifdef __STDC__
13573# include <limits.h>
13574#else
13575# include <assert.h>
13576#endif
13577 Syntax error
13578_ACEOF
13579if ac_fn_cxx_try_cpp "$LINENO"; then :
13580
13581else
13582 # Broken: fails on valid input.
13583continue
13584fi
13585rm -f conftest.err conftest.i conftest.$ac_ext
13586
13587 # OK, works on sane cases. Now check whether nonexistent headers
13588 # can be detected and how.
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h. */
13591#include <ac_nonexistent.h>
13592_ACEOF
13593if ac_fn_cxx_try_cpp "$LINENO"; then :
13594 # Broken: success on invalid input.
13595continue
13596else
13597 # Passes both tests.
13598ac_preproc_ok=:
13599break
13600fi
13601rm -f conftest.err conftest.i conftest.$ac_ext
13602
13603done
13604# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13605rm -f conftest.i conftest.err conftest.$ac_ext
13606if $ac_preproc_ok; then :
13607 break
13608fi
13609
13610 done
13611 ac_cv_prog_CXXCPP=$CXXCPP
13612
13613fi
13614 CXXCPP=$ac_cv_prog_CXXCPP
13615else
13616 ac_cv_prog_CXXCPP=$CXXCPP
13617fi
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13619$as_echo "$CXXCPP" >&6; }
13620ac_preproc_ok=false
13621for ac_cxx_preproc_warn_flag in '' yes
13622do
13623 # Use a header file that comes with gcc, so configuring glibc
13624 # with a fresh cross-compiler works.
13625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13626 # <limits.h> exists even on freestanding compilers.
13627 # On the NeXT, cc -E runs the code through the compiler's parser,
13628 # not just through cpp. "Syntax error" is here to catch this case.
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630/* end confdefs.h. */
13631#ifdef __STDC__
13632# include <limits.h>
13633#else
13634# include <assert.h>
13635#endif
13636 Syntax error
13637_ACEOF
13638if ac_fn_cxx_try_cpp "$LINENO"; then :
13639
13640else
13641 # Broken: fails on valid input.
13642continue
13643fi
13644rm -f conftest.err conftest.i conftest.$ac_ext
13645
13646 # OK, works on sane cases. Now check whether nonexistent headers
13647 # can be detected and how.
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649/* end confdefs.h. */
13650#include <ac_nonexistent.h>
13651_ACEOF
13652if ac_fn_cxx_try_cpp "$LINENO"; then :
13653 # Broken: success on invalid input.
13654continue
13655else
13656 # Passes both tests.
13657ac_preproc_ok=:
13658break
13659fi
13660rm -f conftest.err conftest.i conftest.$ac_ext
13661
13662done
13663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13664rm -f conftest.i conftest.err conftest.$ac_ext
13665if $ac_preproc_ok; then :
13666
13667else
13668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13670_lt_caught_CXX_error=yes; }
13671fi
13672
13673ac_ext=c
13674ac_cpp='$CPP $CPPFLAGS'
13675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678
13679else
13680 _lt_caught_CXX_error=yes
13681fi
13682
13683
13684
13685
13686ac_ext=cpp
13687ac_cpp='$CXXCPP $CPPFLAGS'
13688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13691
13692archive_cmds_need_lc_CXX=no
13693allow_undefined_flag_CXX=
13694always_export_symbols_CXX=no
13695archive_expsym_cmds_CXX=
13696compiler_needs_object_CXX=no
13697export_dynamic_flag_spec_CXX=
13698hardcode_direct_CXX=no
13699hardcode_direct_absolute_CXX=no
13700hardcode_libdir_flag_spec_CXX=
13701hardcode_libdir_flag_spec_ld_CXX=
13702hardcode_libdir_separator_CXX=
13703hardcode_minus_L_CXX=no
13704hardcode_shlibpath_var_CXX=unsupported
13705hardcode_automatic_CXX=no
13706inherit_rpath_CXX=no
13707module_cmds_CXX=
13708module_expsym_cmds_CXX=
13709link_all_deplibs_CXX=unknown
13710old_archive_cmds_CXX=$old_archive_cmds
13711no_undefined_flag_CXX=
13712whole_archive_flag_spec_CXX=
13713enable_shared_with_static_runtimes_CXX=no
13714
13715# Source file extension for C++ test sources.
13716ac_ext=cpp
13717
13718# Object file extension for compiled C++ test sources.
13719objext=o
13720objext_CXX=$objext
13721
13722# No sense in running all these tests if we already determined that
13723# the CXX compiler isn't working. Some variables (like enable_shared)
13724# are currently assumed to apply to all compilers on this platform,
13725# and will be corrupted by setting them based on a non-working compiler.
13726if test "$_lt_caught_CXX_error" != yes; then
13727 # Code to be used in simple compile tests
13728 lt_simple_compile_test_code="int some_variable = 0;"
13729
13730 # Code to be used in simple link tests
13731 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13732
13733 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13734
13735
13736
13737
13738
13739
13740# If no C compiler was specified, use CC.
13741LTCC=${LTCC-"$CC"}
13742
13743# If no C compiler flags were specified, use CFLAGS.
13744LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13745
13746# Allow CC to be a program name with arguments.
13747compiler=$CC
13748
13749
13750 # save warnings/boilerplate of simple test code
13751 ac_outfile=conftest.$ac_objext
13752echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13753eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13754_lt_compiler_boilerplate=`cat conftest.err`
13755$RM conftest*
13756
13757 ac_outfile=conftest.$ac_objext
13758echo "$lt_simple_link_test_code" >conftest.$ac_ext
13759eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13760_lt_linker_boilerplate=`cat conftest.err`
13761$RM -r conftest*
13762
13763
13764 # Allow CC to be a program name with arguments.
13765 lt_save_CC=$CC
13766 lt_save_LD=$LD
13767 lt_save_GCC=$GCC
13768 GCC=$GXX
13769 lt_save_with_gnu_ld=$with_gnu_ld
13770 lt_save_path_LD=$lt_cv_path_LD
13771 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13772 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13773 else
13774 $as_unset lt_cv_prog_gnu_ld
13775 fi
13776 if test -n "${lt_cv_path_LDCXX+set}"; then
13777 lt_cv_path_LD=$lt_cv_path_LDCXX
13778 else
13779 $as_unset lt_cv_path_LD
13780 fi
13781 test -z "${LDCXX+set}" || LD=$LDCXX
13782 CC=${CXX-"c++"}
13783 compiler=$CC
13784 compiler_CXX=$CC
13785 for cc_temp in $compiler""; do
13786 case $cc_temp in
13787 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13788 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13789 \-*) ;;
13790 *) break;;
13791 esac
13792done
13793cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13794
13795
13796 if test -n "$compiler"; then
13797 # We don't want -fno-exception when compiling C++ code, so set the
13798 # no_builtin_flag separately
13799 if test "$GXX" = yes; then
13800 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13801 else
13802 lt_prog_compiler_no_builtin_flag_CXX=
13803 fi
13804
13805 if test "$GXX" = yes; then
13806 # Set up default GNU C++ configuration
13807
13808
13809
13810# Check whether --with-gnu-ld was given.
13811if test "${with_gnu_ld+set}" = set; then :
13812 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13813else
13814 with_gnu_ld=no
13815fi
13816
13817ac_prog=ld
13818if test "$GCC" = yes; then
13819 # Check if gcc -print-prog-name=ld gives a path.
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13821$as_echo_n "checking for ld used by $CC... " >&6; }
13822 case $host in
13823 *-*-mingw*)
13824 # gcc leaves a trailing carriage return which upsets mingw
13825 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13826 *)
13827 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13828 esac
13829 case $ac_prog in
13830 # Accept absolute paths.
13831 [\\/]* | ?:[\\/]*)
13832 re_direlt='/[^/][^/]*/\.\./'
13833 # Canonicalize the pathname of ld
13834 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13835 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13836 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13837 done
13838 test -z "$LD" && LD="$ac_prog"
13839 ;;
13840 "")
13841 # If it fails, then pretend we aren't using GCC.
13842 ac_prog=ld
13843 ;;
13844 *)
13845 # If it is relative, then search for the first ld in PATH.
13846 with_gnu_ld=unknown
13847 ;;
13848 esac
13849elif test "$with_gnu_ld" = yes; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13851$as_echo_n "checking for GNU ld... " >&6; }
13852else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13854$as_echo_n "checking for non-GNU ld... " >&6; }
13855fi
13856if test "${lt_cv_path_LD+set}" = set; then :
13857 $as_echo_n "(cached) " >&6
13858else
13859 if test -z "$LD"; then
13860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13861 for ac_dir in $PATH; do
13862 IFS="$lt_save_ifs"
13863 test -z "$ac_dir" && ac_dir=.
13864 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13865 lt_cv_path_LD="$ac_dir/$ac_prog"
13866 # Check to see if the program is GNU ld. I'd rather use --version,
13867 # but apparently some variants of GNU ld only accept -v.
13868 # Break only if it was the GNU/non-GNU ld that we prefer.
13869 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13870 *GNU* | *'with BFD'*)
13871 test "$with_gnu_ld" != no && break
13872 ;;
13873 *)
13874 test "$with_gnu_ld" != yes && break
13875 ;;
13876 esac
13877 fi
13878 done
13879 IFS="$lt_save_ifs"
13880else
13881 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13882fi
13883fi
13884
13885LD="$lt_cv_path_LD"
13886if test -n "$LD"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13888$as_echo "$LD" >&6; }
13889else
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891$as_echo "no" >&6; }
13892fi
13893test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13895$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13896if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13897 $as_echo_n "(cached) " >&6
13898else
13899 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13900case `$LD -v 2>&1 </dev/null` in
13901*GNU* | *'with BFD'*)
13902 lt_cv_prog_gnu_ld=yes
13903 ;;
13904*)
13905 lt_cv_prog_gnu_ld=no
13906 ;;
13907esac
13908fi
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13910$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13911with_gnu_ld=$lt_cv_prog_gnu_ld
13912
13913
13914
13915
13916
13917
13918
13919 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13920 # archiving commands below assume that GNU ld is being used.
13921 if test "$with_gnu_ld" = yes; then
13922 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13923 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13924
13925 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13927
13928 # If archive_cmds runs LD, not CC, wlarc should be empty
13929 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13930 # investigate it a little bit more. (MM)
13931 wlarc='${wl}'
13932
13933 # ancient GNU ld didn't support --whole-archive et. al.
13934 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13935 $GREP 'no-whole-archive' > /dev/null; then
13936 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13937 else
13938 whole_archive_flag_spec_CXX=
13939 fi
13940 else
13941 with_gnu_ld=no
13942 wlarc=
13943
13944 # A generic and very simple default shared library creation
13945 # command for GNU C++ for the case where it uses the native
13946 # linker, instead of GNU ld. If possible, this setting should
13947 # overridden to take advantage of the native linker features on
13948 # the platform it is being used on.
13949 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13950 fi
13951
13952 # Commands to make compiler produce verbose output that lists
13953 # what "hidden" libraries, object files and flags are used when
13954 # linking a shared library.
13955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13956
13957 else
13958 GXX=no
13959 with_gnu_ld=no
13960 wlarc=
13961 fi
13962
13963 # PORTME: fill in a description of your system's C++ link characteristics
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13965$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13966 ld_shlibs_CXX=yes
13967 case $host_os in
13968 aix3*)
13969 # FIXME: insert proper C++ library support
13970 ld_shlibs_CXX=no
13971 ;;
13972 aix[4-9]*)
13973 if test "$host_cpu" = ia64; then
13974 # On IA64, the linker does run time linking by default, so we don't
13975 # have to do anything special.
13976 aix_use_runtimelinking=no
13977 exp_sym_flag='-Bexport'
13978 no_entry_flag=""
13979 else
13980 aix_use_runtimelinking=no
13981
13982 # Test if we are trying to use run time linking or normal
13983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13984 # need to do runtime linking.
13985 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13986 for ld_flag in $LDFLAGS; do
13987 case $ld_flag in
13988 *-brtl*)
13989 aix_use_runtimelinking=yes
13990 break
13991 ;;
13992 esac
13993 done
13994 ;;
13995 esac
13996
13997 exp_sym_flag='-bexport'
13998 no_entry_flag='-bnoentry'
13999 fi
14000
14001 # When large executables or shared objects are built, AIX ld can
14002 # have problems creating the table of contents. If linking a library
14003 # or program results in "error TOC overflow" add -mminimal-toc to
14004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14006
14007 archive_cmds_CXX=''
14008 hardcode_direct_CXX=yes
14009 hardcode_direct_absolute_CXX=yes
14010 hardcode_libdir_separator_CXX=':'
14011 link_all_deplibs_CXX=yes
14012 file_list_spec_CXX='${wl}-f,'
14013
14014 if test "$GXX" = yes; then
14015 case $host_os in aix4.[012]|aix4.[012].*)
14016 # We only want to do this on AIX 4.2 and lower, the check
14017 # below for broken collect2 doesn't work under 4.3+
14018 collect2name=`${CC} -print-prog-name=collect2`
14019 if test -f "$collect2name" &&
14020 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14021 then
14022 # We have reworked collect2
14023 :
14024 else
14025 # We have old collect2
14026 hardcode_direct_CXX=unsupported
14027 # It fails to find uninstalled libraries when the uninstalled
14028 # path is not listed in the libpath. Setting hardcode_minus_L
14029 # to unsupported forces relinking
14030 hardcode_minus_L_CXX=yes
14031 hardcode_libdir_flag_spec_CXX='-L$libdir'
14032 hardcode_libdir_separator_CXX=
14033 fi
14034 esac
14035 shared_flag='-shared'
14036 if test "$aix_use_runtimelinking" = yes; then
14037 shared_flag="$shared_flag "'${wl}-G'
14038 fi
14039 else
14040 # not using gcc
14041 if test "$host_cpu" = ia64; then
14042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14043 # chokes on -Wl,-G. The following line is correct:
14044 shared_flag='-G'
14045 else
14046 if test "$aix_use_runtimelinking" = yes; then
14047 shared_flag='${wl}-G'
14048 else
14049 shared_flag='${wl}-bM:SRE'
14050 fi
14051 fi
14052 fi
14053
14054 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14055 # It seems that -bexpall does not export symbols beginning with
14056 # underscore (_), so it is better to generate a list of symbols to
14057 # export.
14058 always_export_symbols_CXX=yes
14059 if test "$aix_use_runtimelinking" = yes; then
14060 # Warning - without using the other runtime loading flags (-brtl),
14061 # -berok will link without error, but may produce a broken library.
14062 allow_undefined_flag_CXX='-berok'
14063 # Determine the default libpath from the value encoded in an empty
14064 # executable.
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066/* end confdefs.h. */
14067
14068int
14069main ()
14070{
14071
14072 ;
14073 return 0;
14074}
14075_ACEOF
14076if ac_fn_cxx_try_link "$LINENO"; then :
14077
14078lt_aix_libpath_sed='
14079 /Import File Strings/,/^$/ {
14080 /^0/ {
14081 s/^0 *\(.*\)$/\1/
14082 p
14083 }
14084 }'
14085aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14086# Check for a 64-bit object if we didn't find anything.
14087if test -z "$aix_libpath"; then
14088 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14089fi
14090fi
14091rm -f core conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
14093if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14094
14095 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14096
14097 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14098 else
14099 if test "$host_cpu" = ia64; then
14100 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14101 allow_undefined_flag_CXX="-z nodefs"
14102 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"
14103 else
14104 # Determine the default libpath from the value encoded in an
14105 # empty executable.
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107/* end confdefs.h. */
14108
14109int
14110main ()
14111{
14112
14113 ;
14114 return 0;
14115}
14116_ACEOF
14117if ac_fn_cxx_try_link "$LINENO"; then :
14118
14119lt_aix_libpath_sed='
14120 /Import File Strings/,/^$/ {
14121 /^0/ {
14122 s/^0 *\(.*\)$/\1/
14123 p
14124 }
14125 }'
14126aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14127# Check for a 64-bit object if we didn't find anything.
14128if test -z "$aix_libpath"; then
14129 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14130fi
14131fi
14132rm -f core conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14134if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14135
14136 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14137 # Warning - without using the other run time loading flags,
14138 # -berok will link without error, but may produce a broken library.
14139 no_undefined_flag_CXX=' ${wl}-bernotok'
14140 allow_undefined_flag_CXX=' ${wl}-berok'
14141 # Exported symbols can be pulled into shared objects from archives
14142 whole_archive_flag_spec_CXX='$convenience'
14143 archive_cmds_need_lc_CXX=yes
14144 # This is similar to how AIX traditionally builds its shared
14145 # libraries.
14146 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'
14147 fi
14148 fi
14149 ;;
14150
14151 beos*)
14152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14153 allow_undefined_flag_CXX=unsupported
14154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14155 # support --undefined. This deserves some investigation. FIXME
14156 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157 else
14158 ld_shlibs_CXX=no
14159 fi
14160 ;;
14161
14162 chorus*)
14163 case $cc_basename in
14164 *)
14165 # FIXME: insert proper C++ library support
14166 ld_shlibs_CXX=no
14167 ;;
14168 esac
14169 ;;
14170
14171 cygwin* | mingw* | pw32* | cegcc*)
14172 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14173 # as there is no search path for DLLs.
14174 hardcode_libdir_flag_spec_CXX='-L$libdir'
14175 allow_undefined_flag_CXX=unsupported
14176 always_export_symbols_CXX=no
14177 enable_shared_with_static_runtimes_CXX=yes
14178
14179 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14180 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'
14181 # If the export-symbols file already is a .def file (1st line
14182 # is EXPORTS), use it as is; otherwise, prepend...
14183 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14184 cp $export_symbols $output_objdir/$soname.def;
14185 else
14186 echo EXPORTS > $output_objdir/$soname.def;
14187 cat $export_symbols >> $output_objdir/$soname.def;
14188 fi~
14189 $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'
14190 else
14191 ld_shlibs_CXX=no
14192 fi
14193 ;;
14194 darwin* | rhapsody*)
14195
14196
14197 archive_cmds_need_lc_CXX=no
14198 hardcode_direct_CXX=no
14199 hardcode_automatic_CXX=yes
14200 hardcode_shlibpath_var_CXX=unsupported
14201 whole_archive_flag_spec_CXX=''
14202 link_all_deplibs_CXX=yes
14203 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14204 case $cc_basename in
14205 ifort*) _lt_dar_can_shared=yes ;;
14206 *) _lt_dar_can_shared=$GCC ;;
14207 esac
14208 if test "$_lt_dar_can_shared" = "yes"; then
14209 output_verbose_link_cmd=echo
14210 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}"
14211 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14212 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}"
14213 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}"
14214 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14215 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}"
14216 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}"
14217 fi
14218
14219 else
14220 ld_shlibs_CXX=no
14221 fi
14222
14223 ;;
14224
14225 dgux*)
14226 case $cc_basename in
14227 ec++*)
14228 # FIXME: insert proper C++ library support
14229 ld_shlibs_CXX=no
14230 ;;
14231 ghcx*)
14232 # Green Hills C++ Compiler
14233 # FIXME: insert proper C++ library support
14234 ld_shlibs_CXX=no
14235 ;;
14236 *)
14237 # FIXME: insert proper C++ library support
14238 ld_shlibs_CXX=no
14239 ;;
14240 esac
14241 ;;
14242
14243 freebsd[12]*)
14244 # C++ shared libraries reported to be fairly broken before
14245 # switch to ELF
14246 ld_shlibs_CXX=no
14247 ;;
14248
14249 freebsd-elf*)
14250 archive_cmds_need_lc_CXX=no
14251 ;;
14252
14253 freebsd* | dragonfly*)
14254 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14255 # conventions
14256 ld_shlibs_CXX=yes
14257 ;;
14258
14259 gnu*)
14260 ;;
14261
14262 hpux9*)
14263 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14264 hardcode_libdir_separator_CXX=:
14265 export_dynamic_flag_spec_CXX='${wl}-E'
14266 hardcode_direct_CXX=yes
14267 hardcode_minus_L_CXX=yes # Not in the search PATH,
14268 # but as the default
14269 # location of the library.
14270
14271 case $cc_basename in
14272 CC*)
14273 # FIXME: insert proper C++ library support
14274 ld_shlibs_CXX=no
14275 ;;
14276 aCC*)
14277 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'
14278 # Commands to make compiler produce verbose output that lists
14279 # what "hidden" libraries, object files and flags are used when
14280 # linking a shared library.
14281 #
14282 # There doesn't appear to be a way to prevent this compiler from
14283 # explicitly linking system object files so we need to strip them
14284 # from the output so that they don't get included in the library
14285 # dependencies.
14286 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; $ECHO "X$list" | $Xsed'
14287 ;;
14288 *)
14289 if test "$GXX" = yes; then
14290 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
14291 else
14292 # FIXME: insert proper C++ library support
14293 ld_shlibs_CXX=no
14294 fi
14295 ;;
14296 esac
14297 ;;
14298
14299 hpux10*|hpux11*)
14300 if test $with_gnu_ld = no; then
14301 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14302 hardcode_libdir_separator_CXX=:
14303
14304 case $host_cpu in
14305 hppa*64*|ia64*)
14306 ;;
14307 *)
14308 export_dynamic_flag_spec_CXX='${wl}-E'
14309 ;;
14310 esac
14311 fi
14312 case $host_cpu in
14313 hppa*64*|ia64*)
14314 hardcode_direct_CXX=no
14315 hardcode_shlibpath_var_CXX=no
14316 ;;
14317 *)
14318 hardcode_direct_CXX=yes
14319 hardcode_direct_absolute_CXX=yes
14320 hardcode_minus_L_CXX=yes # Not in the search PATH,
14321 # but as the default
14322 # location of the library.
14323 ;;
14324 esac
14325
14326 case $cc_basename in
14327 CC*)
14328 # FIXME: insert proper C++ library support
14329 ld_shlibs_CXX=no
14330 ;;
14331 aCC*)
14332 case $host_cpu in
14333 hppa*64*)
14334 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14335 ;;
14336 ia64*)
14337 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14338 ;;
14339 *)
14340 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14341 ;;
14342 esac
14343 # Commands to make compiler produce verbose output that lists
14344 # what "hidden" libraries, object files and flags are used when
14345 # linking a shared library.
14346 #
14347 # There doesn't appear to be a way to prevent this compiler from
14348 # explicitly linking system object files so we need to strip them
14349 # from the output so that they don't get included in the library
14350 # dependencies.
14351 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; $ECHO "X$list" | $Xsed'
14352 ;;
14353 *)
14354 if test "$GXX" = yes; then
14355 if test $with_gnu_ld = no; then
14356 case $host_cpu in
14357 hppa*64*)
14358 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14359 ;;
14360 ia64*)
14361 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14362 ;;
14363 *)
14364 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14365 ;;
14366 esac
14367 fi
14368 else
14369 # FIXME: insert proper C++ library support
14370 ld_shlibs_CXX=no
14371 fi
14372 ;;
14373 esac
14374 ;;
14375
14376 interix[3-9]*)
14377 hardcode_direct_CXX=no
14378 hardcode_shlibpath_var_CXX=no
14379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14380 export_dynamic_flag_spec_CXX='${wl}-E'
14381 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14382 # Instead, shared libraries are loaded at an image base (0x10000000 by
14383 # default) and relocated if they conflict, which is a slow very memory
14384 # consuming and fragmenting process. To avoid this, we pick a random,
14385 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14386 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14387 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'
14388 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'
14389 ;;
14390 irix5* | irix6*)
14391 case $cc_basename in
14392 CC*)
14393 # SGI C++
14394 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14395
14396 # Archives containing C++ object files must be created using
14397 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14398 # necessary to make sure instantiated templates are included
14399 # in the archive.
14400 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14401 ;;
14402 *)
14403 if test "$GXX" = yes; then
14404 if test "$with_gnu_ld" = no; then
14405 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14406 else
14407 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14408 fi
14409 fi
14410 link_all_deplibs_CXX=yes
14411 ;;
14412 esac
14413 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14414 hardcode_libdir_separator_CXX=:
14415 inherit_rpath_CXX=yes
14416 ;;
14417
14418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14419 case $cc_basename in
14420 KCC*)
14421 # Kuck and Associates, Inc. (KAI) C++ Compiler
14422
14423 # KCC will only create a shared library if the output file
14424 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14425 # to its proper name (with version) after linking.
14426 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'
14427 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'
14428 # Commands to make compiler produce verbose output that lists
14429 # what "hidden" libraries, object files and flags are used when
14430 # linking a shared library.
14431 #
14432 # There doesn't appear to be a way to prevent this compiler from
14433 # explicitly linking system object files so we need to strip them
14434 # from the output so that they don't get included in the library
14435 # dependencies.
14436 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; $ECHO "X$list" | $Xsed'
14437
14438 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14440
14441 # Archives containing C++ object files must be created using
14442 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14443 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14444 ;;
14445 icpc* | ecpc* )
14446 # Intel C++
14447 with_gnu_ld=yes
14448 # version 8.0 and above of icpc choke on multiply defined symbols
14449 # if we add $predep_objects and $postdep_objects, however 7.1 and
14450 # earlier do not add the objects themselves.
14451 case `$CC -V 2>&1` in
14452 *"Version 7."*)
14453 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14454 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'
14455 ;;
14456 *) # Version 8.0 or newer
14457 tmp_idyn=
14458 case $host_cpu in
14459 ia64*) tmp_idyn=' -i_dynamic';;
14460 esac
14461 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462 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'
14463 ;;
14464 esac
14465 archive_cmds_need_lc_CXX=no
14466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14467 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14468 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14469 ;;
14470 pgCC* | pgcpp*)
14471 # Portland Group C++ compiler
14472 case `$CC -V` in
14473 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14474 prelink_cmds_CXX='tpldir=Template.dir~
14475 rm -rf $tpldir~
14476 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14477 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14478 old_archive_cmds_CXX='tpldir=Template.dir~
14479 rm -rf $tpldir~
14480 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14481 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14482 $RANLIB $oldlib'
14483 archive_cmds_CXX='tpldir=Template.dir~
14484 rm -rf $tpldir~
14485 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14486 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14487 archive_expsym_cmds_CXX='tpldir=Template.dir~
14488 rm -rf $tpldir~
14489 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14490 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14491 ;;
14492 *) # Version 6 will use weak symbols
14493 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14494 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'
14495 ;;
14496 esac
14497
14498 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14499 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14500 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14501 ;;
14502 cxx*)
14503 # Compaq C++
14504 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14505 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'
14506
14507 runpath_var=LD_RUN_PATH
14508 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14509 hardcode_libdir_separator_CXX=:
14510
14511 # Commands to make compiler produce verbose output that lists
14512 # what "hidden" libraries, object files and flags are used when
14513 # linking a shared library.
14514 #
14515 # There doesn't appear to be a way to prevent this compiler from
14516 # explicitly linking system object files so we need to strip them
14517 # from the output so that they don't get included in the library
14518 # dependencies.
14519 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14520 ;;
14521 xl*)
14522 # IBM XL 8.0 on PPC, with GNU ld
14523 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14524 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14525 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14526 if test "x$supports_anon_versioning" = xyes; then
14527 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14529 echo "local: *; };" >> $output_objdir/$libname.ver~
14530 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14531 fi
14532 ;;
14533 *)
14534 case `$CC -V 2>&1 | sed 5q` in
14535 *Sun\ C*)
14536 # Sun C++ 5.9
14537 no_undefined_flag_CXX=' -zdefs'
14538 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14539 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'
14540 hardcode_libdir_flag_spec_CXX='-R$libdir'
14541 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14542 compiler_needs_object_CXX=yes
14543
14544 # Not sure whether something based on
14545 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14546 # would be better.
14547 output_verbose_link_cmd='echo'
14548
14549 # Archives containing C++ object files must be created using
14550 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14551 # necessary to make sure instantiated templates are included
14552 # in the archive.
14553 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14554 ;;
14555 esac
14556 ;;
14557 esac
14558 ;;
14559
14560 lynxos*)
14561 # FIXME: insert proper C++ library support
14562 ld_shlibs_CXX=no
14563 ;;
14564
14565 m88k*)
14566 # FIXME: insert proper C++ library support
14567 ld_shlibs_CXX=no
14568 ;;
14569
14570 mvs*)
14571 case $cc_basename in
14572 cxx*)
14573 # FIXME: insert proper C++ library support
14574 ld_shlibs_CXX=no
14575 ;;
14576 *)
14577 # FIXME: insert proper C++ library support
14578 ld_shlibs_CXX=no
14579 ;;
14580 esac
14581 ;;
14582
14583 netbsd*)
14584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14585 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14586 wlarc=
14587 hardcode_libdir_flag_spec_CXX='-R$libdir'
14588 hardcode_direct_CXX=yes
14589 hardcode_shlibpath_var_CXX=no
14590 fi
14591 # Workaround some broken pre-1.5 toolchains
14592 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14593 ;;
14594
14595 *nto* | *qnx*)
14596 ld_shlibs_CXX=yes
14597 ;;
14598
14599 openbsd2*)
14600 # C++ shared libraries are fairly broken
14601 ld_shlibs_CXX=no
14602 ;;
14603
14604 openbsd*)
14605 if test -f /usr/libexec/ld.so; then
14606 hardcode_direct_CXX=yes
14607 hardcode_shlibpath_var_CXX=no
14608 hardcode_direct_absolute_CXX=yes
14609 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14610 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14612 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14613 export_dynamic_flag_spec_CXX='${wl}-E'
14614 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14615 fi
14616 output_verbose_link_cmd=echo
14617 else
14618 ld_shlibs_CXX=no
14619 fi
14620 ;;
14621
14622 osf3* | osf4* | osf5*)
14623 case $cc_basename in
14624 KCC*)
14625 # Kuck and Associates, Inc. (KAI) C++ Compiler
14626
14627 # KCC will only create a shared library if the output file
14628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14629 # to its proper name (with version) after linking.
14630 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'
14631
14632 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14633 hardcode_libdir_separator_CXX=:
14634
14635 # Archives containing C++ object files must be created using
14636 # the KAI C++ compiler.
14637 case $host in
14638 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14639 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14640 esac
14641 ;;
14642 RCC*)
14643 # Rational C++ 2.4.1
14644 # FIXME: insert proper C++ library support
14645 ld_shlibs_CXX=no
14646 ;;
14647 cxx*)
14648 case $host in
14649 osf3*)
14650 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14651 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14653 ;;
14654 *)
14655 allow_undefined_flag_CXX=' -expect_unresolved \*'
14656 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14657 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14658 echo "-hidden">> $lib.exp~
14659 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14660 $RM $lib.exp'
14661 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14662 ;;
14663 esac
14664
14665 hardcode_libdir_separator_CXX=:
14666
14667 # Commands to make compiler produce verbose output that lists
14668 # what "hidden" libraries, object files and flags are used when
14669 # linking a shared library.
14670 #
14671 # There doesn't appear to be a way to prevent this compiler from
14672 # explicitly linking system object files so we need to strip them
14673 # from the output so that they don't get included in the library
14674 # dependencies.
14675 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14676 ;;
14677 *)
14678 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14679 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14680 case $host in
14681 osf3*)
14682 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14683 ;;
14684 *)
14685 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14686 ;;
14687 esac
14688
14689 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14690 hardcode_libdir_separator_CXX=:
14691
14692 # Commands to make compiler produce verbose output that lists
14693 # what "hidden" libraries, object files and flags are used when
14694 # linking a shared library.
14695 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14696
14697 else
14698 # FIXME: insert proper C++ library support
14699 ld_shlibs_CXX=no
14700 fi
14701 ;;
14702 esac
14703 ;;
14704
14705 psos*)
14706 # FIXME: insert proper C++ library support
14707 ld_shlibs_CXX=no
14708 ;;
14709
14710 sunos4*)
14711 case $cc_basename in
14712 CC*)
14713 # Sun C++ 4.x
14714 # FIXME: insert proper C++ library support
14715 ld_shlibs_CXX=no
14716 ;;
14717 lcc*)
14718 # Lucid
14719 # FIXME: insert proper C++ library support
14720 ld_shlibs_CXX=no
14721 ;;
14722 *)
14723 # FIXME: insert proper C++ library support
14724 ld_shlibs_CXX=no
14725 ;;
14726 esac
14727 ;;
14728
14729 solaris*)
14730 case $cc_basename in
14731 CC*)
14732 # Sun C++ 4.2, 5.x and Centerline C++
14733 archive_cmds_need_lc_CXX=yes
14734 no_undefined_flag_CXX=' -zdefs'
14735 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14736 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14737 $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'
14738
14739 hardcode_libdir_flag_spec_CXX='-R$libdir'
14740 hardcode_shlibpath_var_CXX=no
14741 case $host_os in
14742 solaris2.[0-5] | solaris2.[0-5].*) ;;
14743 *)
14744 # The compiler driver will combine and reorder linker options,
14745 # but understands `-z linker_flag'.
14746 # Supported since Solaris 2.6 (maybe 2.5.1?)
14747 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14748 ;;
14749 esac
14750 link_all_deplibs_CXX=yes
14751
14752 output_verbose_link_cmd='echo'
14753
14754 # Archives containing C++ object files must be created using
14755 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14756 # necessary to make sure instantiated templates are included
14757 # in the archive.
14758 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14759 ;;
14760 gcx*)
14761 # Green Hills C++ Compiler
14762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14763
14764 # The C++ compiler must be used to create the archive.
14765 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14766 ;;
14767 *)
14768 # GNU C++ compiler with Solaris linker
14769 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14770 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14771 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14772 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14773 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14774 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14775
14776 # Commands to make compiler produce verbose output that lists
14777 # what "hidden" libraries, object files and flags are used when
14778 # linking a shared library.
14779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14780 else
14781 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14782 # platform.
14783 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14784 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14785 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14786
14787 # Commands to make compiler produce verbose output that lists
14788 # what "hidden" libraries, object files and flags are used when
14789 # linking a shared library.
14790 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14791 fi
14792
14793 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14794 case $host_os in
14795 solaris2.[0-5] | solaris2.[0-5].*) ;;
14796 *)
14797 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14798 ;;
14799 esac
14800 fi
14801 ;;
14802 esac
14803 ;;
14804
14805 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14806 no_undefined_flag_CXX='${wl}-z,text'
14807 archive_cmds_need_lc_CXX=no
14808 hardcode_shlibpath_var_CXX=no
14809 runpath_var='LD_RUN_PATH'
14810
14811 case $cc_basename in
14812 CC*)
14813 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14814 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14815 ;;
14816 *)
14817 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 ;;
14820 esac
14821 ;;
14822
14823 sysv5* | sco3.2v5* | sco5v6*)
14824 # Note: We can NOT use -z defs as we might desire, because we do not
14825 # link with -lc, and that would cause any symbols used from libc to
14826 # always be unresolved, which means just about no library would
14827 # ever link correctly. If we're not using GNU ld we use -z text
14828 # though, which does catch some bad symbols but isn't as heavy-handed
14829 # as -z defs.
14830 no_undefined_flag_CXX='${wl}-z,text'
14831 allow_undefined_flag_CXX='${wl}-z,nodefs'
14832 archive_cmds_need_lc_CXX=no
14833 hardcode_shlibpath_var_CXX=no
14834 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14835 hardcode_libdir_separator_CXX=':'
14836 link_all_deplibs_CXX=yes
14837 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14838 runpath_var='LD_RUN_PATH'
14839
14840 case $cc_basename in
14841 CC*)
14842 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14844 ;;
14845 *)
14846 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 ;;
14849 esac
14850 ;;
14851
14852 tandem*)
14853 case $cc_basename in
14854 NCC*)
14855 # NonStop-UX NCC 3.20
14856 # FIXME: insert proper C++ library support
14857 ld_shlibs_CXX=no
14858 ;;
14859 *)
14860 # FIXME: insert proper C++ library support
14861 ld_shlibs_CXX=no
14862 ;;
14863 esac
14864 ;;
14865
14866 vxworks*)
14867 # FIXME: insert proper C++ library support
14868 ld_shlibs_CXX=no
14869 ;;
14870
14871 *)
14872 # FIXME: insert proper C++ library support
14873 ld_shlibs_CXX=no
14874 ;;
14875 esac
14876
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14878$as_echo "$ld_shlibs_CXX" >&6; }
14879 test "$ld_shlibs_CXX" = no && can_build_shared=no
14880
14881 GCC_CXX="$GXX"
14882 LD_CXX="$LD"
14883
14884 ## CAVEAT EMPTOR:
14885 ## There is no encapsulation within the following macros, do not change
14886 ## the running order or otherwise move them around unless you know exactly
14887 ## what you are doing...
14888 # Dependencies to place before and after the object being linked:
14889predep_objects_CXX=
14890postdep_objects_CXX=
14891predeps_CXX=
14892postdeps_CXX=
14893compiler_lib_search_path_CXX=
14894
14895cat > conftest.$ac_ext <<_LT_EOF
14896class Foo
14897{
14898public:
14899 Foo (void) { a = 0; }
14900private:
14901 int a;
14902};
14903_LT_EOF
14904
14905if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14906 (eval $ac_compile) 2>&5
14907 ac_status=$?
14908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14909 test $ac_status = 0; }; then
14910 # Parse the compiler output and extract the necessary
14911 # objects, libraries and library flags.
14912
14913 # Sentinel used to keep track of whether or not we are before
14914 # the conftest object file.
14915 pre_test_object_deps_done=no
14916
14917 for p in `eval "$output_verbose_link_cmd"`; do
14918 case $p in
14919
14920 -L* | -R* | -l*)
14921 # Some compilers place space between "-{L,R}" and the path.
14922 # Remove the space.
14923 if test $p = "-L" ||
14924 test $p = "-R"; then
14925 prev=$p
14926 continue
14927 else
14928 prev=
14929 fi
14930
14931 if test "$pre_test_object_deps_done" = no; then
14932 case $p in
14933 -L* | -R*)
14934 # Internal compiler library paths should come after those
14935 # provided the user. The postdeps already come after the
14936 # user supplied libs so there is no need to process them.
14937 if test -z "$compiler_lib_search_path_CXX"; then
14938 compiler_lib_search_path_CXX="${prev}${p}"
14939 else
14940 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14941 fi
14942 ;;
14943 # The "-l" case would never come before the object being
14944 # linked, so don't bother handling this case.
14945 esac
14946 else
14947 if test -z "$postdeps_CXX"; then
14948 postdeps_CXX="${prev}${p}"
14949 else
14950 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14951 fi
14952 fi
14953 ;;
14954
14955 *.$objext)
14956 # This assumes that the test object file only shows up
14957 # once in the compiler output.
14958 if test "$p" = "conftest.$objext"; then
14959 pre_test_object_deps_done=yes
14960 continue
14961 fi
14962
14963 if test "$pre_test_object_deps_done" = no; then
14964 if test -z "$predep_objects_CXX"; then
14965 predep_objects_CXX="$p"
14966 else
14967 predep_objects_CXX="$predep_objects_CXX $p"
14968 fi
14969 else
14970 if test -z "$postdep_objects_CXX"; then
14971 postdep_objects_CXX="$p"
14972 else
14973 postdep_objects_CXX="$postdep_objects_CXX $p"
14974 fi
14975 fi
14976 ;;
14977
14978 *) ;; # Ignore the rest.
14979
14980 esac
14981 done
14982
14983 # Clean up.
14984 rm -f a.out a.exe
14985else
14986 echo "libtool.m4: error: problem compiling CXX test program"
14987fi
14988
14989$RM -f confest.$objext
14990
14991# PORTME: override above test on systems where it is broken
14992case $host_os in
14993interix[3-9]*)
14994 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14995 # hack all around it, let's just trust "g++" to DTRT.
14996 predep_objects_CXX=
14997 postdep_objects_CXX=
14998 postdeps_CXX=
14999 ;;
15000
15001linux*)
15002 case `$CC -V 2>&1 | sed 5q` in
15003 *Sun\ C*)
15004 # Sun C++ 5.9
15005
15006 # The more standards-conforming stlport4 library is
15007 # incompatible with the Cstd library. Avoid specifying
15008 # it if it's in CXXFLAGS. Ignore libCrun as
15009 # -library=stlport4 depends on it.
15010 case " $CXX $CXXFLAGS " in
15011 *" -library=stlport4 "*)
15012 solaris_use_stlport4=yes
15013 ;;
15014 esac
15015
15016 if test "$solaris_use_stlport4" != yes; then
15017 postdeps_CXX='-library=Cstd -library=Crun'
15018 fi
15019 ;;
15020 esac
15021 ;;
15022
15023solaris*)
15024 case $cc_basename in
15025 CC*)
15026 # The more standards-conforming stlport4 library is
15027 # incompatible with the Cstd library. Avoid specifying
15028 # it if it's in CXXFLAGS. Ignore libCrun as
15029 # -library=stlport4 depends on it.
15030 case " $CXX $CXXFLAGS " in
15031 *" -library=stlport4 "*)
15032 solaris_use_stlport4=yes
15033 ;;
15034 esac
15035
15036 # Adding this requires a known-good setup of shared libraries for
15037 # Sun compiler versions before 5.6, else PIC objects from an old
15038 # archive will be linked into the output, leading to subtle bugs.
15039 if test "$solaris_use_stlport4" != yes; then
15040 postdeps_CXX='-library=Cstd -library=Crun'
15041 fi
15042 ;;
15043 esac
15044 ;;
15045esac
15046
15047
15048case " $postdeps_CXX " in
15049*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15050esac
15051 compiler_lib_search_dirs_CXX=
15052if test -n "${compiler_lib_search_path_CXX}"; then
15053 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15054fi
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086 lt_prog_compiler_wl_CXX=
15087lt_prog_compiler_pic_CXX=
15088lt_prog_compiler_static_CXX=
15089
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15091$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15092
15093 # C++ specific cases for pic, static, wl, etc.
15094 if test "$GXX" = yes; then
15095 lt_prog_compiler_wl_CXX='-Wl,'
15096 lt_prog_compiler_static_CXX='-static'
15097
15098 case $host_os in
15099 aix*)
15100 # All AIX code is PIC.
15101 if test "$host_cpu" = ia64; then
15102 # AIX 5 now supports IA64 processor
15103 lt_prog_compiler_static_CXX='-Bstatic'
15104 fi
15105 ;;
15106
15107 amigaos*)
15108 case $host_cpu in
15109 powerpc)
15110 # see comment about AmigaOS4 .so support
15111 lt_prog_compiler_pic_CXX='-fPIC'
15112 ;;
15113 m68k)
15114 # FIXME: we need at least 68020 code to build shared libraries, but
15115 # adding the `-m68020' flag to GCC prevents building anything better,
15116 # like `-m68040'.
15117 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15118 ;;
15119 esac
15120 ;;
15121
15122 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15123 # PIC is the default for these OSes.
15124 ;;
15125 mingw* | cygwin* | os2* | pw32* | cegcc*)
15126 # This hack is so that the source file can tell whether it is being
15127 # built for inclusion in a dll (and should export symbols for example).
15128 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15129 # (--disable-auto-import) libraries
15130 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15131 ;;
15132 darwin* | rhapsody*)
15133 # PIC is the default on this platform
15134 # Common symbols not allowed in MH_DYLIB files
15135 lt_prog_compiler_pic_CXX='-fno-common'
15136 ;;
15137 *djgpp*)
15138 # DJGPP does not support shared libraries at all
15139 lt_prog_compiler_pic_CXX=
15140 ;;
15141 interix[3-9]*)
15142 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15143 # Instead, we relocate shared libraries at runtime.
15144 ;;
15145 sysv4*MP*)
15146 if test -d /usr/nec; then
15147 lt_prog_compiler_pic_CXX=-Kconform_pic
15148 fi
15149 ;;
15150 hpux*)
15151 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15152 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15153 # sets the default TLS model and affects inlining.
15154 case $host_cpu in
15155 hppa*64*)
15156 ;;
15157 *)
15158 lt_prog_compiler_pic_CXX='-fPIC'
15159 ;;
15160 esac
15161 ;;
15162 *qnx* | *nto*)
15163 # QNX uses GNU C++, but need to define -shared option too, otherwise
15164 # it will coredump.
15165 lt_prog_compiler_pic_CXX='-fPIC -shared'
15166 ;;
15167 *)
15168 lt_prog_compiler_pic_CXX='-fPIC'
15169 ;;
15170 esac
15171 else
15172 case $host_os in
15173 aix[4-9]*)
15174 # All AIX code is PIC.
15175 if test "$host_cpu" = ia64; then
15176 # AIX 5 now supports IA64 processor
15177 lt_prog_compiler_static_CXX='-Bstatic'
15178 else
15179 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15180 fi
15181 ;;
15182 chorus*)
15183 case $cc_basename in
15184 cxch68*)
15185 # Green Hills C++ Compiler
15186 # _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"
15187 ;;
15188 esac
15189 ;;
15190 dgux*)
15191 case $cc_basename in
15192 ec++*)
15193 lt_prog_compiler_pic_CXX='-KPIC'
15194 ;;
15195 ghcx*)
15196 # Green Hills C++ Compiler
15197 lt_prog_compiler_pic_CXX='-pic'
15198 ;;
15199 *)
15200 ;;
15201 esac
15202 ;;
15203 freebsd* | dragonfly*)
15204 # FreeBSD uses GNU C++
15205 ;;
15206 hpux9* | hpux10* | hpux11*)
15207 case $cc_basename in
15208 CC*)
15209 lt_prog_compiler_wl_CXX='-Wl,'
15210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15211 if test "$host_cpu" != ia64; then
15212 lt_prog_compiler_pic_CXX='+Z'
15213 fi
15214 ;;
15215 aCC*)
15216 lt_prog_compiler_wl_CXX='-Wl,'
15217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15218 case $host_cpu in
15219 hppa*64*|ia64*)
15220 # +Z the default
15221 ;;
15222 *)
15223 lt_prog_compiler_pic_CXX='+Z'
15224 ;;
15225 esac
15226 ;;
15227 *)
15228 ;;
15229 esac
15230 ;;
15231 interix*)
15232 # This is c89, which is MS Visual C++ (no shared libs)
15233 # Anyone wants to do a port?
15234 ;;
15235 irix5* | irix6* | nonstopux*)
15236 case $cc_basename in
15237 CC*)
15238 lt_prog_compiler_wl_CXX='-Wl,'
15239 lt_prog_compiler_static_CXX='-non_shared'
15240 # CC pic flag -KPIC is the default.
15241 ;;
15242 *)
15243 ;;
15244 esac
15245 ;;
15246 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15247 case $cc_basename in
15248 KCC*)
15249 # KAI C++ Compiler
15250 lt_prog_compiler_wl_CXX='--backend -Wl,'
15251 lt_prog_compiler_pic_CXX='-fPIC'
15252 ;;
15253 ecpc* )
15254 # old Intel C++ for x86_64 which still supported -KPIC.
15255 lt_prog_compiler_wl_CXX='-Wl,'
15256 lt_prog_compiler_pic_CXX='-KPIC'
15257 lt_prog_compiler_static_CXX='-static'
15258 ;;
15259 icpc* )
15260 # Intel C++, used to be incompatible with GCC.
15261 # ICC 10 doesn't accept -KPIC any more.
15262 lt_prog_compiler_wl_CXX='-Wl,'
15263 lt_prog_compiler_pic_CXX='-fPIC'
15264 lt_prog_compiler_static_CXX='-static'
15265 ;;
15266 pgCC* | pgcpp*)
15267 # Portland Group C++ compiler
15268 lt_prog_compiler_wl_CXX='-Wl,'
15269 lt_prog_compiler_pic_CXX='-fpic'
15270 lt_prog_compiler_static_CXX='-Bstatic'
15271 ;;
15272 cxx*)
15273 # Compaq C++
15274 # Make sure the PIC flag is empty. It appears that all Alpha
15275 # Linux and Compaq Tru64 Unix objects are PIC.
15276 lt_prog_compiler_pic_CXX=
15277 lt_prog_compiler_static_CXX='-non_shared'
15278 ;;
15279 xlc* | xlC*)
15280 # IBM XL 8.0 on PPC
15281 lt_prog_compiler_wl_CXX='-Wl,'
15282 lt_prog_compiler_pic_CXX='-qpic'
15283 lt_prog_compiler_static_CXX='-qstaticlink'
15284 ;;
15285 *)
15286 case `$CC -V 2>&1 | sed 5q` in
15287 *Sun\ C*)
15288 # Sun C++ 5.9
15289 lt_prog_compiler_pic_CXX='-KPIC'
15290 lt_prog_compiler_static_CXX='-Bstatic'
15291 lt_prog_compiler_wl_CXX='-Qoption ld '
15292 ;;
15293 esac
15294 ;;
15295 esac
15296 ;;
15297 lynxos*)
15298 ;;
15299 m88k*)
15300 ;;
15301 mvs*)
15302 case $cc_basename in
15303 cxx*)
15304 lt_prog_compiler_pic_CXX='-W c,exportall'
15305 ;;
15306 *)
15307 ;;
15308 esac
15309 ;;
15310 netbsd* | netbsdelf*-gnu)
15311 ;;
15312 *qnx* | *nto*)
15313 # QNX uses GNU C++, but need to define -shared option too, otherwise
15314 # it will coredump.
15315 lt_prog_compiler_pic_CXX='-fPIC -shared'
15316 ;;
15317 osf3* | osf4* | osf5*)
15318 case $cc_basename in
15319 KCC*)
15320 lt_prog_compiler_wl_CXX='--backend -Wl,'
15321 ;;
15322 RCC*)
15323 # Rational C++ 2.4.1
15324 lt_prog_compiler_pic_CXX='-pic'
15325 ;;
15326 cxx*)
15327 # Digital/Compaq C++
15328 lt_prog_compiler_wl_CXX='-Wl,'
15329 # Make sure the PIC flag is empty. It appears that all Alpha
15330 # Linux and Compaq Tru64 Unix objects are PIC.
15331 lt_prog_compiler_pic_CXX=
15332 lt_prog_compiler_static_CXX='-non_shared'
15333 ;;
15334 *)
15335 ;;
15336 esac
15337 ;;
15338 psos*)
15339 ;;
15340 solaris*)
15341 case $cc_basename in
15342 CC*)
15343 # Sun C++ 4.2, 5.x and Centerline C++
15344 lt_prog_compiler_pic_CXX='-KPIC'
15345 lt_prog_compiler_static_CXX='-Bstatic'
15346 lt_prog_compiler_wl_CXX='-Qoption ld '
15347 ;;
15348 gcx*)
15349 # Green Hills C++ Compiler
15350 lt_prog_compiler_pic_CXX='-PIC'
15351 ;;
15352 *)
15353 ;;
15354 esac
15355 ;;
15356 sunos4*)
15357 case $cc_basename in
15358 CC*)
15359 # Sun C++ 4.x
15360 lt_prog_compiler_pic_CXX='-pic'
15361 lt_prog_compiler_static_CXX='-Bstatic'
15362 ;;
15363 lcc*)
15364 # Lucid
15365 lt_prog_compiler_pic_CXX='-pic'
15366 ;;
15367 *)
15368 ;;
15369 esac
15370 ;;
15371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15372 case $cc_basename in
15373 CC*)
15374 lt_prog_compiler_wl_CXX='-Wl,'
15375 lt_prog_compiler_pic_CXX='-KPIC'
15376 lt_prog_compiler_static_CXX='-Bstatic'
15377 ;;
15378 esac
15379 ;;
15380 tandem*)
15381 case $cc_basename in
15382 NCC*)
15383 # NonStop-UX NCC 3.20
15384 lt_prog_compiler_pic_CXX='-KPIC'
15385 ;;
15386 *)
15387 ;;
15388 esac
15389 ;;
15390 vxworks*)
15391 ;;
15392 *)
15393 lt_prog_compiler_can_build_shared_CXX=no
15394 ;;
15395 esac
15396 fi
15397
15398case $host_os in
15399 # For platforms which do not support PIC, -DPIC is meaningless:
15400 *djgpp*)
15401 lt_prog_compiler_pic_CXX=
15402 ;;
15403 *)
15404 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15405 ;;
15406esac
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15408$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15409
15410
15411
15412#
15413# Check to make sure the PIC flag actually works.
15414#
15415if test -n "$lt_prog_compiler_pic_CXX"; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15417$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15418if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15419 $as_echo_n "(cached) " >&6
15420else
15421 lt_cv_prog_compiler_pic_works_CXX=no
15422 ac_outfile=conftest.$ac_objext
15423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15424 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15425 # Insert the option either (1) after the last *FLAGS variable, or
15426 # (2) before a word containing "conftest.", or (3) at the end.
15427 # Note that $ac_compile itself does not contain backslashes and begins
15428 # with a dollar sign (not a hyphen), so the echo should work correctly.
15429 # The option is referenced via a variable to avoid confusing sed.
15430 lt_compile=`echo "$ac_compile" | $SED \
15431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15433 -e 's:$: $lt_compiler_flag:'`
15434 (eval echo "\"\$as_me:15434: $lt_compile\"" >&5)
15435 (eval "$lt_compile" 2>conftest.err)
15436 ac_status=$?
15437 cat conftest.err >&5
15438 echo "$as_me:15438: \$? = $ac_status" >&5
15439 if (exit $ac_status) && test -s "$ac_outfile"; then
15440 # The compiler can only warn and ignore the option if not recognized
15441 # So say no if there are warnings other than the usual output.
15442 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15445 lt_cv_prog_compiler_pic_works_CXX=yes
15446 fi
15447 fi
15448 $RM conftest*
15449
15450fi
15451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15452$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15453
15454if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15455 case $lt_prog_compiler_pic_CXX in
15456 "" | " "*) ;;
15457 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15458 esac
15459else
15460 lt_prog_compiler_pic_CXX=
15461 lt_prog_compiler_can_build_shared_CXX=no
15462fi
15463
15464fi
15465
15466
15467
15468#
15469# Check to make sure the static flag actually works.
15470#
15471wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15473$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15474if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15475 $as_echo_n "(cached) " >&6
15476else
15477 lt_cv_prog_compiler_static_works_CXX=no
15478 save_LDFLAGS="$LDFLAGS"
15479 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15480 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15482 # The linker can only warn and ignore the option if not recognized
15483 # So say no if there are warnings
15484 if test -s conftest.err; then
15485 # Append any errors to the config.log.
15486 cat conftest.err 1>&5
15487 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15489 if diff conftest.exp conftest.er2 >/dev/null; then
15490 lt_cv_prog_compiler_static_works_CXX=yes
15491 fi
15492 else
15493 lt_cv_prog_compiler_static_works_CXX=yes
15494 fi
15495 fi
15496 $RM -r conftest*
15497 LDFLAGS="$save_LDFLAGS"
15498
15499fi
15500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15501$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15502
15503if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15504 :
15505else
15506 lt_prog_compiler_static_CXX=
15507fi
15508
15509
15510
15511
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15513$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15514if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15515 $as_echo_n "(cached) " >&6
15516else
15517 lt_cv_prog_compiler_c_o_CXX=no
15518 $RM -r conftest 2>/dev/null
15519 mkdir conftest
15520 cd conftest
15521 mkdir out
15522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15523
15524 lt_compiler_flag="-o out/conftest2.$ac_objext"
15525 # Insert the option either (1) after the last *FLAGS variable, or
15526 # (2) before a word containing "conftest.", or (3) at the end.
15527 # Note that $ac_compile itself does not contain backslashes and begins
15528 # with a dollar sign (not a hyphen), so the echo should work correctly.
15529 lt_compile=`echo "$ac_compile" | $SED \
15530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15532 -e 's:$: $lt_compiler_flag:'`
15533 (eval echo "\"\$as_me:15533: $lt_compile\"" >&5)
15534 (eval "$lt_compile" 2>out/conftest.err)
15535 ac_status=$?
15536 cat out/conftest.err >&5
15537 echo "$as_me:15537: \$? = $ac_status" >&5
15538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15539 then
15540 # The compiler can only warn and ignore the option if not recognized
15541 # So say no if there are warnings
15542 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15545 lt_cv_prog_compiler_c_o_CXX=yes
15546 fi
15547 fi
15548 chmod u+w . 2>&5
15549 $RM conftest*
15550 # SGI C++ compiler will create directory out/ii_files/ for
15551 # template instantiation
15552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15553 $RM out/* && rmdir out
15554 cd ..
15555 $RM -r conftest
15556 $RM conftest*
15557
15558fi
15559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15560$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15561
15562
15563
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15565$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15566if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15567 $as_echo_n "(cached) " >&6
15568else
15569 lt_cv_prog_compiler_c_o_CXX=no
15570 $RM -r conftest 2>/dev/null
15571 mkdir conftest
15572 cd conftest
15573 mkdir out
15574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15575
15576 lt_compiler_flag="-o out/conftest2.$ac_objext"
15577 # Insert the option either (1) after the last *FLAGS variable, or
15578 # (2) before a word containing "conftest.", or (3) at the end.
15579 # Note that $ac_compile itself does not contain backslashes and begins
15580 # with a dollar sign (not a hyphen), so the echo should work correctly.
15581 lt_compile=`echo "$ac_compile" | $SED \
15582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15584 -e 's:$: $lt_compiler_flag:'`
15585 (eval echo "\"\$as_me:15585: $lt_compile\"" >&5)
15586 (eval "$lt_compile" 2>out/conftest.err)
15587 ac_status=$?
15588 cat out/conftest.err >&5
15589 echo "$as_me:15589: \$? = $ac_status" >&5
15590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15591 then
15592 # The compiler can only warn and ignore the option if not recognized
15593 # So say no if there are warnings
15594 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15597 lt_cv_prog_compiler_c_o_CXX=yes
15598 fi
15599 fi
15600 chmod u+w . 2>&5
15601 $RM conftest*
15602 # SGI C++ compiler will create directory out/ii_files/ for
15603 # template instantiation
15604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15605 $RM out/* && rmdir out
15606 cd ..
15607 $RM -r conftest
15608 $RM conftest*
15609
15610fi
15611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15612$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15613
15614
15615
15616
15617hard_links="nottested"
15618if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15619 # do not overwrite the value of need_locks provided by the user
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15621$as_echo_n "checking if we can lock with hard links... " >&6; }
15622 hard_links=yes
15623 $RM conftest*
15624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15625 touch conftest.a
15626 ln conftest.a conftest.b 2>&5 || hard_links=no
15627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15629$as_echo "$hard_links" >&6; }
15630 if test "$hard_links" = no; then
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15632$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15633 need_locks=warn
15634 fi
15635else
15636 need_locks=no
15637fi
15638
15639
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15642$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15643
15644 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15645 case $host_os in
15646 aix[4-9]*)
15647 # If we're using GNU nm, then we don't want the "-C" option.
15648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15649 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15650 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15651 else
15652 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'
15653 fi
15654 ;;
15655 pw32*)
15656 export_symbols_cmds_CXX="$ltdll_cmds"
15657 ;;
15658 cygwin* | mingw* | cegcc*)
15659 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15660 ;;
15661 linux* | k*bsd*-gnu)
15662 link_all_deplibs_CXX=no
15663 ;;
15664 *)
15665 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15666 ;;
15667 esac
15668 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15669
15670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15671$as_echo "$ld_shlibs_CXX" >&6; }
15672test "$ld_shlibs_CXX" = no && can_build_shared=no
15673
15674with_gnu_ld_CXX=$with_gnu_ld
15675
15676
15677
15678
15679
15680
15681#
15682# Do we need to explicitly link libc?
15683#
15684case "x$archive_cmds_need_lc_CXX" in
15685x|xyes)
15686 # Assume -lc should be added
15687 archive_cmds_need_lc_CXX=yes
15688
15689 if test "$enable_shared" = yes && test "$GCC" = yes; then
15690 case $archive_cmds_CXX in
15691 *'~'*)
15692 # FIXME: we may have to deal with multi-command sequences.
15693 ;;
15694 '$CC '*)
15695 # Test whether the compiler implicitly links with -lc since on some
15696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15697 # to ld, don't add -lc before -lgcc.
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15699$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15700 $RM conftest*
15701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15702
15703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15704 (eval $ac_compile) 2>&5
15705 ac_status=$?
15706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15707 test $ac_status = 0; } 2>conftest.err; then
15708 soname=conftest
15709 lib=conftest
15710 libobjs=conftest.$ac_objext
15711 deplibs=
15712 wl=$lt_prog_compiler_wl_CXX
15713 pic_flag=$lt_prog_compiler_pic_CXX
15714 compiler_flags=-v
15715 linker_flags=-v
15716 verstring=
15717 output_objdir=.
15718 libname=conftest
15719 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15720 allow_undefined_flag_CXX=
15721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15722 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15723 ac_status=$?
15724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15725 test $ac_status = 0; }
15726 then
15727 archive_cmds_need_lc_CXX=no
15728 else
15729 archive_cmds_need_lc_CXX=yes
15730 fi
15731 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15732 else
15733 cat conftest.err 1>&5
15734 fi
15735 $RM conftest*
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15737$as_echo "$archive_cmds_need_lc_CXX" >&6; }
15738 ;;
15739 esac
15740 fi
15741 ;;
15742esac
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15808$as_echo_n "checking dynamic linker characteristics... " >&6; }
15809
15810library_names_spec=
15811libname_spec='lib$name'
15812soname_spec=
15813shrext_cmds=".so"
15814postinstall_cmds=
15815postuninstall_cmds=
15816finish_cmds=
15817finish_eval=
15818shlibpath_var=
15819shlibpath_overrides_runpath=unknown
15820version_type=none
15821dynamic_linker="$host_os ld.so"
15822sys_lib_dlsearch_path_spec="/lib /usr/lib"
15823need_lib_prefix=unknown
15824hardcode_into_libs=no
15825
15826# when you set need_version to no, make sure it does not cause -set_version
15827# flags to be left without arguments
15828need_version=unknown
15829
15830case $host_os in
15831aix3*)
15832 version_type=linux
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15834 shlibpath_var=LIBPATH
15835
15836 # AIX 3 has no versioning support, so we append a major version to the name.
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 ;;
15839
15840aix[4-9]*)
15841 version_type=linux
15842 need_lib_prefix=no
15843 need_version=no
15844 hardcode_into_libs=yes
15845 if test "$host_cpu" = ia64; then
15846 # AIX 5 supports IA64
15847 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15848 shlibpath_var=LD_LIBRARY_PATH
15849 else
15850 # With GCC up to 2.95.x, collect2 would create an import file
15851 # for dependence libraries. The import file would start with
15852 # the line `#! .'. This would cause the generated library to
15853 # depend on `.', always an invalid library. This was fixed in
15854 # development snapshots of GCC prior to 3.0.
15855 case $host_os in
15856 aix4 | aix4.[01] | aix4.[01].*)
15857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15858 echo ' yes '
15859 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15860 :
15861 else
15862 can_build_shared=no
15863 fi
15864 ;;
15865 esac
15866 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15867 # soname into executable. Probably we can add versioning support to
15868 # collect2, so additional links can be useful in future.
15869 if test "$aix_use_runtimelinking" = yes; then
15870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15871 # instead of lib<name>.a to let people know that these are not
15872 # typical AIX shared libraries.
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15874 else
15875 # We preserve .a as extension for shared libraries through AIX4.2
15876 # and later when we are not doing run time linking.
15877 library_names_spec='${libname}${release}.a $libname.a'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 fi
15880 shlibpath_var=LIBPATH
15881 fi
15882 ;;
15883
15884amigaos*)
15885 case $host_cpu in
15886 powerpc)
15887 # Since July 2007 AmigaOS4 officially supports .so libraries.
15888 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 ;;
15891 m68k)
15892 library_names_spec='$libname.ixlibrary $libname.a'
15893 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15894 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
15895 ;;
15896 esac
15897 ;;
15898
15899beos*)
15900 library_names_spec='${libname}${shared_ext}'
15901 dynamic_linker="$host_os ld.so"
15902 shlibpath_var=LIBRARY_PATH
15903 ;;
15904
15905bsdi[45]*)
15906 version_type=linux
15907 need_version=no
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15911 shlibpath_var=LD_LIBRARY_PATH
15912 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15913 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15914 # the default ld.so.conf also contains /usr/contrib/lib and
15915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15916 # libtool to hard-code these into programs
15917 ;;
15918
15919cygwin* | mingw* | pw32* | cegcc*)
15920 version_type=windows
15921 shrext_cmds=".dll"
15922 need_version=no
15923 need_lib_prefix=no
15924
15925 case $GCC,$host_os in
15926 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15927 library_names_spec='$libname.dll.a'
15928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15929 postinstall_cmds='base_file=`basename \${file}`~
15930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15931 dldir=$destdir/`dirname \$dlpath`~
15932 test -d \$dldir || mkdir -p \$dldir~
15933 $install_prog $dir/$dlname \$dldir/$dlname~
15934 chmod a+x \$dldir/$dlname~
15935 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15936 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15937 fi'
15938 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15939 dlpath=$dir/\$dldll~
15940 $RM \$dlpath'
15941 shlibpath_overrides_runpath=yes
15942
15943 case $host_os in
15944 cygwin*)
15945 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15946 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15947 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15948 ;;
15949 mingw* | cegcc*)
15950 # MinGW DLLs use traditional 'lib' prefix
15951 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15952 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15953 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15954 # It is most probably a Windows format PATH printed by
15955 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15956 # path with ; separators, and with drive letters. We can handle the
15957 # drive letters (cygwin fileutils understands them), so leave them,
15958 # especially as we might pass files found there to a mingw objdump,
15959 # which wouldn't understand a cygwinified path. Ahh.
15960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15961 else
15962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15963 fi
15964 ;;
15965 pw32*)
15966 # pw32 DLLs use 'pw' prefix rather than 'lib'
15967 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15968 ;;
15969 esac
15970 ;;
15971
15972 *)
15973 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15974 ;;
15975 esac
15976 dynamic_linker='Win32 ld.exe'
15977 # FIXME: first we should search . and the directory the executable is in
15978 shlibpath_var=PATH
15979 ;;
15980
15981darwin* | rhapsody*)
15982 dynamic_linker="$host_os dyld"
15983 version_type=darwin
15984 need_lib_prefix=no
15985 need_version=no
15986 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15987 soname_spec='${libname}${release}${major}$shared_ext'
15988 shlibpath_overrides_runpath=yes
15989 shlibpath_var=DYLD_LIBRARY_PATH
15990 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15991
15992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15993 ;;
15994
15995dgux*)
15996 version_type=linux
15997 need_lib_prefix=no
15998 need_version=no
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16000 soname_spec='${libname}${release}${shared_ext}$major'
16001 shlibpath_var=LD_LIBRARY_PATH
16002 ;;
16003
16004freebsd1*)
16005 dynamic_linker=no
16006 ;;
16007
16008freebsd* | dragonfly*)
16009 # DragonFly does not have aout. When/if they implement a new
16010 # versioning mechanism, adjust this.
16011 if test -x /usr/bin/objformat; then
16012 objformat=`/usr/bin/objformat`
16013 else
16014 case $host_os in
16015 freebsd[123]*) objformat=aout ;;
16016 *) objformat=elf ;;
16017 esac
16018 fi
16019 version_type=freebsd-$objformat
16020 case $version_type in
16021 freebsd-elf*)
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16023 need_version=no
16024 need_lib_prefix=no
16025 ;;
16026 freebsd-*)
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16028 need_version=yes
16029 ;;
16030 esac
16031 shlibpath_var=LD_LIBRARY_PATH
16032 case $host_os in
16033 freebsd2*)
16034 shlibpath_overrides_runpath=yes
16035 ;;
16036 freebsd3.[01]* | freebsdelf3.[01]*)
16037 shlibpath_overrides_runpath=yes
16038 hardcode_into_libs=yes
16039 ;;
16040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16042 shlibpath_overrides_runpath=no
16043 hardcode_into_libs=yes
16044 ;;
16045 *) # from 4.6 on, and DragonFly
16046 shlibpath_overrides_runpath=yes
16047 hardcode_into_libs=yes
16048 ;;
16049 esac
16050 ;;
16051
16052gnu*)
16053 version_type=linux
16054 need_lib_prefix=no
16055 need_version=no
16056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16057 soname_spec='${libname}${release}${shared_ext}$major'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 hardcode_into_libs=yes
16060 ;;
16061
16062hpux9* | hpux10* | hpux11*)
16063 # Give a soname corresponding to the major version so that dld.sl refuses to
16064 # link against other versions.
16065 version_type=sunos
16066 need_lib_prefix=no
16067 need_version=no
16068 case $host_cpu in
16069 ia64*)
16070 shrext_cmds='.so'
16071 hardcode_into_libs=yes
16072 dynamic_linker="$host_os dld.so"
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
16077 if test "X$HPUX_IA64_MODE" = X32; then
16078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16079 else
16080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16081 fi
16082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16083 ;;
16084 hppa*64*)
16085 shrext_cmds='.sl'
16086 hardcode_into_libs=yes
16087 dynamic_linker="$host_os dld.sl"
16088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091 soname_spec='${libname}${release}${shared_ext}$major'
16092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16094 ;;
16095 *)
16096 shrext_cmds='.sl'
16097 dynamic_linker="$host_os dld.sl"
16098 shlibpath_var=SHLIB_PATH
16099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16101 soname_spec='${libname}${release}${shared_ext}$major'
16102 ;;
16103 esac
16104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16105 postinstall_cmds='chmod 555 $lib'
16106 ;;
16107
16108interix[3-9]*)
16109 version_type=linux
16110 need_lib_prefix=no
16111 need_version=no
16112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=no
16117 hardcode_into_libs=yes
16118 ;;
16119
16120irix5* | irix6* | nonstopux*)
16121 case $host_os in
16122 nonstopux*) version_type=nonstopux ;;
16123 *)
16124 if test "$lt_cv_prog_gnu_ld" = yes; then
16125 version_type=linux
16126 else
16127 version_type=irix
16128 fi ;;
16129 esac
16130 need_lib_prefix=no
16131 need_version=no
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16134 case $host_os in
16135 irix5* | nonstopux*)
16136 libsuff= shlibsuff=
16137 ;;
16138 *)
16139 case $LD in # libtool.m4 will add one of these switches to LD
16140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16141 libsuff= shlibsuff= libmagic=32-bit;;
16142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16143 libsuff=32 shlibsuff=N32 libmagic=N32;;
16144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16146 *) libsuff= shlibsuff= libmagic=never-match;;
16147 esac
16148 ;;
16149 esac
16150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16151 shlibpath_overrides_runpath=no
16152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16154 hardcode_into_libs=yes
16155 ;;
16156
16157# No shared lib support for Linux oldld, aout, or coff.
16158linux*oldld* | linux*aout* | linux*coff*)
16159 dynamic_linker=no
16160 ;;
16161
16162# This must be Linux ELF.
16163linux* | k*bsd*-gnu | kopensolaris*-gnu)
16164 version_type=linux
16165 need_lib_prefix=no
16166 need_version=no
16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16168 soname_spec='${libname}${release}${shared_ext}$major'
16169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=no
16172 # Some binutils ld are patched to set DT_RUNPATH
16173 save_LDFLAGS=$LDFLAGS
16174 save_libdir=$libdir
16175 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16176 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h. */
16179
16180int
16181main ()
16182{
16183
16184 ;
16185 return 0;
16186}
16187_ACEOF
16188if ac_fn_cxx_try_link "$LINENO"; then :
16189 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16190 shlibpath_overrides_runpath=yes
16191fi
16192fi
16193rm -f core conftest.err conftest.$ac_objext \
16194 conftest$ac_exeext conftest.$ac_ext
16195 LDFLAGS=$save_LDFLAGS
16196 libdir=$save_libdir
16197
16198 # This implies no fast_install, which is unacceptable.
16199 # Some rework will be needed to allow for fast_install
16200 # before this can be enabled.
16201 hardcode_into_libs=yes
16202
16203 # Append ld.so.conf contents to the search path
16204 if test -f /etc/ld.so.conf; then
16205 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;/^$/d' | tr '\n' ' '`
16206 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16207 fi
16208
16209 # We used to test for /lib/ld.so.1 and disable shared libraries on
16210 # powerpc, because MkLinux only supported shared libraries with the
16211 # GNU dynamic linker. Since this was broken with cross compilers,
16212 # most powerpc-linux boxes support dynamic linking these days and
16213 # people can always --disable-shared, the test was removed, and we
16214 # assume the GNU/Linux dynamic linker is in use.
16215 dynamic_linker='GNU/Linux ld.so'
16216 ;;
16217
16218netbsdelf*-gnu)
16219 version_type=linux
16220 need_lib_prefix=no
16221 need_version=no
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 shlibpath_var=LD_LIBRARY_PATH
16225 shlibpath_overrides_runpath=no
16226 hardcode_into_libs=yes
16227 dynamic_linker='NetBSD ld.elf_so'
16228 ;;
16229
16230netbsd*)
16231 version_type=sunos
16232 need_lib_prefix=no
16233 need_version=no
16234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16237 dynamic_linker='NetBSD (a.out) ld.so'
16238 else
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 dynamic_linker='NetBSD ld.elf_so'
16242 fi
16243 shlibpath_var=LD_LIBRARY_PATH
16244 shlibpath_overrides_runpath=yes
16245 hardcode_into_libs=yes
16246 ;;
16247
16248newsos6)
16249 version_type=linux
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=yes
16253 ;;
16254
16255*nto* | *qnx*)
16256 version_type=qnx
16257 need_lib_prefix=no
16258 need_version=no
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16260 soname_spec='${libname}${release}${shared_ext}$major'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=no
16263 hardcode_into_libs=yes
16264 dynamic_linker='ldqnx.so'
16265 ;;
16266
16267openbsd*)
16268 version_type=sunos
16269 sys_lib_dlsearch_path_spec="/usr/lib"
16270 need_lib_prefix=no
16271 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16272 case $host_os in
16273 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16274 *) need_version=no ;;
16275 esac
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16280 case $host_os in
16281 openbsd2.[89] | openbsd2.[89].*)
16282 shlibpath_overrides_runpath=no
16283 ;;
16284 *)
16285 shlibpath_overrides_runpath=yes
16286 ;;
16287 esac
16288 else
16289 shlibpath_overrides_runpath=yes
16290 fi
16291 ;;
16292
16293os2*)
16294 libname_spec='$name'
16295 shrext_cmds=".dll"
16296 need_lib_prefix=no
16297 library_names_spec='$libname${shared_ext} $libname.a'
16298 dynamic_linker='OS/2 ld.exe'
16299 shlibpath_var=LIBPATH
16300 ;;
16301
16302osf3* | osf4* | osf5*)
16303 version_type=osf
16304 need_lib_prefix=no
16305 need_version=no
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308 shlibpath_var=LD_LIBRARY_PATH
16309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16310 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16311 ;;
16312
16313rdos*)
16314 dynamic_linker=no
16315 ;;
16316
16317solaris*)
16318 version_type=linux
16319 need_lib_prefix=no
16320 need_version=no
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes
16325 hardcode_into_libs=yes
16326 # ldd complains unless libraries are executable
16327 postinstall_cmds='chmod +x $lib'
16328 ;;
16329
16330sunos4*)
16331 version_type=sunos
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16334 shlibpath_var=LD_LIBRARY_PATH
16335 shlibpath_overrides_runpath=yes
16336 if test "$with_gnu_ld" = yes; then
16337 need_lib_prefix=no
16338 fi
16339 need_version=yes
16340 ;;
16341
16342sysv4 | sysv4.3*)
16343 version_type=linux
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 shlibpath_var=LD_LIBRARY_PATH
16347 case $host_vendor in
16348 sni)
16349 shlibpath_overrides_runpath=no
16350 need_lib_prefix=no
16351 runpath_var=LD_RUN_PATH
16352 ;;
16353 siemens)
16354 need_lib_prefix=no
16355 ;;
16356 motorola)
16357 need_lib_prefix=no
16358 need_version=no
16359 shlibpath_overrides_runpath=no
16360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16361 ;;
16362 esac
16363 ;;
16364
16365sysv4*MP*)
16366 if test -d /usr/nec ;then
16367 version_type=linux
16368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16369 soname_spec='$libname${shared_ext}.$major'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 fi
16372 ;;
16373
16374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16375 version_type=freebsd-elf
16376 need_lib_prefix=no
16377 need_version=no
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=yes
16382 hardcode_into_libs=yes
16383 if test "$with_gnu_ld" = yes; then
16384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16385 else
16386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16387 case $host_os in
16388 sco3.2v5*)
16389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16390 ;;
16391 esac
16392 fi
16393 sys_lib_dlsearch_path_spec='/usr/lib'
16394 ;;
16395
16396tpf*)
16397 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16398 version_type=linux
16399 need_lib_prefix=no
16400 need_version=no
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16402 shlibpath_var=LD_LIBRARY_PATH
16403 shlibpath_overrides_runpath=no
16404 hardcode_into_libs=yes
16405 ;;
16406
16407uts4*)
16408 version_type=linux
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 ;;
16413
16414*)
16415 dynamic_linker=no
16416 ;;
16417esac
16418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16419$as_echo "$dynamic_linker" >&6; }
16420test "$dynamic_linker" = no && can_build_shared=no
16421
16422variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16423if test "$GCC" = yes; then
16424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16425fi
16426
16427if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16428 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16429fi
16430if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16431 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16432fi
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16470$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16471hardcode_action_CXX=
16472if test -n "$hardcode_libdir_flag_spec_CXX" ||
16473 test -n "$runpath_var_CXX" ||
16474 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16475
16476 # We can hardcode non-existent directories.
16477 if test "$hardcode_direct_CXX" != no &&
16478 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16479 # have to relink, otherwise we might link with an installed library
16480 # when we should be linking with a yet-to-be-installed one
16481 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16482 test "$hardcode_minus_L_CXX" != no; then
16483 # Linking always hardcodes the temporary library directory.
16484 hardcode_action_CXX=relink
16485 else
16486 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16487 hardcode_action_CXX=immediate
16488 fi
16489else
16490 # We cannot hardcode anything, or else we can only hardcode existing
16491 # directories.
16492 hardcode_action_CXX=unsupported
16493fi
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16495$as_echo "$hardcode_action_CXX" >&6; }
16496
16497if test "$hardcode_action_CXX" = relink ||
16498 test "$inherit_rpath_CXX" = yes; then
16499 # Fast installation is not supported
16500 enable_fast_install=no
16501elif test "$shlibpath_overrides_runpath" = yes ||
16502 test "$enable_shared" = no; then
16503 # Fast installation is not necessary
16504 enable_fast_install=needless
16505fi
16506
16507
16508
16509
16510
16511
16512
16513 fi # test -n "$compiler"
16514
16515 CC=$lt_save_CC
16516 LDCXX=$LD
16517 LD=$lt_save_LD
16518 GCC=$lt_save_GCC
16519 with_gnu_ld=$lt_save_with_gnu_ld
16520 lt_cv_path_LDCXX=$lt_cv_path_LD
16521 lt_cv_path_LD=$lt_save_path_LD
16522 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16523 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16524fi # test "$_lt_caught_CXX_error" != yes
16525
16526ac_ext=c
16527ac_cpp='$CPP $CPPFLAGS'
16528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16530ac_compiler_gnu=$ac_cv_c_compiler_gnu
16531
16532
16533ac_ext=c
16534ac_cpp='$CPP $CPPFLAGS'
16535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16537ac_compiler_gnu=$ac_cv_c_compiler_gnu
16538if test -n "$ac_tool_prefix"; then
16539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16540set dummy ${ac_tool_prefix}gcc; ac_word=$2
16541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16542$as_echo_n "checking for $ac_word... " >&6; }
16543if test "${ac_cv_prog_CC+set}" = set; then :
16544 $as_echo_n "(cached) " >&6
16545else
16546 if test -n "$CC"; then
16547 ac_cv_prog_CC="$CC" # Let the user override the test.
16548else
16549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550for as_dir in $PATH
16551do
16552 IFS=$as_save_IFS
16553 test -z "$as_dir" && as_dir=.
16554 for ac_exec_ext in '' $ac_executable_extensions; do
16555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16558 break 2
16559 fi
16560done
16561 done
16562IFS=$as_save_IFS
16563
16564fi
16565fi
16566CC=$ac_cv_prog_CC
16567if test -n "$CC"; then
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16569$as_echo "$CC" >&6; }
16570else
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572$as_echo "no" >&6; }
16573fi
16574
16575
16576fi
16577if test -z "$ac_cv_prog_CC"; then
16578 ac_ct_CC=$CC
16579 # Extract the first word of "gcc", so it can be a program name with args.
16580set dummy gcc; ac_word=$2
16581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582$as_echo_n "checking for $ac_word... " >&6; }
16583if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
16584 $as_echo_n "(cached) " >&6
16585else
16586 if test -n "$ac_ct_CC"; then
16587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16588else
16589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590for as_dir in $PATH
16591do
16592 IFS=$as_save_IFS
16593 test -z "$as_dir" && as_dir=.
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16596 ac_cv_prog_ac_ct_CC="gcc"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16598 break 2
16599 fi
16600done
16601 done
16602IFS=$as_save_IFS
16603
16604fi
16605fi
16606ac_ct_CC=$ac_cv_prog_ac_ct_CC
16607if test -n "$ac_ct_CC"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16609$as_echo "$ac_ct_CC" >&6; }
16610else
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612$as_echo "no" >&6; }
16613fi
16614
16615 if test "x$ac_ct_CC" = x; then
16616 CC=""
16617 else
16618 case $cross_compiling:$ac_tool_warned in
16619yes:)
16620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16622ac_tool_warned=yes ;;
16623esac
16624 CC=$ac_ct_CC
16625 fi
16626else
16627 CC="$ac_cv_prog_CC"
16628fi
16629
16630if test -z "$CC"; then
16631 if test -n "$ac_tool_prefix"; then
16632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16633set dummy ${ac_tool_prefix}cc; ac_word=$2
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16635$as_echo_n "checking for $ac_word... " >&6; }
16636if test "${ac_cv_prog_CC+set}" = set; then :
16637 $as_echo_n "(cached) " >&6
16638else
16639 if test -n "$CC"; then
16640 ac_cv_prog_CC="$CC" # Let the user override the test.
16641else
16642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16643for as_dir in $PATH
16644do
16645 IFS=$as_save_IFS
16646 test -z "$as_dir" && as_dir=.
16647 for ac_exec_ext in '' $ac_executable_extensions; do
16648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16649 ac_cv_prog_CC="${ac_tool_prefix}cc"
16650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16651 break 2
16652 fi
16653done
16654 done
16655IFS=$as_save_IFS
16656
16657fi
16658fi
16659CC=$ac_cv_prog_CC
16660if test -n "$CC"; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16662$as_echo "$CC" >&6; }
16663else
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665$as_echo "no" >&6; }
16666fi
16667
16668
16669 fi
16670fi
16671if test -z "$CC"; then
16672 # Extract the first word of "cc", so it can be a program name with args.
16673set dummy cc; ac_word=$2
16674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16675$as_echo_n "checking for $ac_word... " >&6; }
16676if test "${ac_cv_prog_CC+set}" = set; then :
16677 $as_echo_n "(cached) " >&6
16678else
16679 if test -n "$CC"; then
16680 ac_cv_prog_CC="$CC" # Let the user override the test.
16681else
16682 ac_prog_rejected=no
16683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16684for as_dir in $PATH
16685do
16686 IFS=$as_save_IFS
16687 test -z "$as_dir" && as_dir=.
16688 for ac_exec_ext in '' $ac_executable_extensions; do
16689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16691 ac_prog_rejected=yes
16692 continue
16693 fi
16694 ac_cv_prog_CC="cc"
16695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16696 break 2
16697 fi
16698done
16699 done
16700IFS=$as_save_IFS
16701
16702if test $ac_prog_rejected = yes; then
16703 # We found a bogon in the path, so make sure we never use it.
16704 set dummy $ac_cv_prog_CC
16705 shift
16706 if test $# != 0; then
16707 # We chose a different compiler from the bogus one.
16708 # However, it has the same basename, so the bogon will be chosen
16709 # first if we set CC to just the basename; use the full file name.
16710 shift
16711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16712 fi
16713fi
16714fi
16715fi
16716CC=$ac_cv_prog_CC
16717if test -n "$CC"; then
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16719$as_echo "$CC" >&6; }
16720else
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16722$as_echo "no" >&6; }
16723fi
16724
16725
16726fi
16727if test -z "$CC"; then
16728 if test -n "$ac_tool_prefix"; then
16729 for ac_prog in cl.exe
16730 do
16731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16732set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734$as_echo_n "checking for $ac_word... " >&6; }
16735if test "${ac_cv_prog_CC+set}" = set; then :
16736 $as_echo_n "(cached) " >&6
16737else
16738 if test -n "$CC"; then
16739 ac_cv_prog_CC="$CC" # Let the user override the test.
16740else
16741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742for as_dir in $PATH
16743do
16744 IFS=$as_save_IFS
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16750 break 2
16751 fi
16752done
16753 done
16754IFS=$as_save_IFS
16755
16756fi
16757fi
16758CC=$ac_cv_prog_CC
16759if test -n "$CC"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16761$as_echo "$CC" >&6; }
16762else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764$as_echo "no" >&6; }
16765fi
16766
16767
16768 test -n "$CC" && break
16769 done
16770fi
16771if test -z "$CC"; then
16772 ac_ct_CC=$CC
16773 for ac_prog in cl.exe
16774do
16775 # Extract the first word of "$ac_prog", so it can be a program name with args.
16776set dummy $ac_prog; ac_word=$2
16777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16778$as_echo_n "checking for $ac_word... " >&6; }
16779if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
16780 $as_echo_n "(cached) " >&6
16781else
16782 if test -n "$ac_ct_CC"; then
16783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16784else
16785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16786for as_dir in $PATH
16787do
16788 IFS=$as_save_IFS
16789 test -z "$as_dir" && as_dir=.
16790 for ac_exec_ext in '' $ac_executable_extensions; do
16791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16792 ac_cv_prog_ac_ct_CC="$ac_prog"
16793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16794 break 2
16795 fi
16796done
16797 done
16798IFS=$as_save_IFS
16799
16800fi
16801fi
16802ac_ct_CC=$ac_cv_prog_ac_ct_CC
16803if test -n "$ac_ct_CC"; then
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16805$as_echo "$ac_ct_CC" >&6; }
16806else
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16808$as_echo "no" >&6; }
16809fi
16810
16811
16812 test -n "$ac_ct_CC" && break
16813done
16814
16815 if test "x$ac_ct_CC" = x; then
16816 CC=""
16817 else
16818 case $cross_compiling:$ac_tool_warned in
16819yes:)
16820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16822ac_tool_warned=yes ;;
16823esac
16824 CC=$ac_ct_CC
16825 fi
16826fi
16827
16828fi
16829
16830
16831test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16833as_fn_error $? "no acceptable C compiler found in \$PATH
16834See \`config.log' for more details" "$LINENO" 5 ; }
16835
16836# Provide some information about the compiler.
16837$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16838set X $ac_compile
16839ac_compiler=$2
16840for ac_option in --version -v -V -qversion; do
16841 { { ac_try="$ac_compiler $ac_option >&5"
16842case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16845esac
16846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16847$as_echo "$ac_try_echo"; } >&5
16848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16849 ac_status=$?
16850 if test -s conftest.err; then
16851 sed '10a\
16852... rest of stderr output deleted ...
16853 10q' conftest.err >conftest.er1
16854 cat conftest.er1 >&5
16855 fi
16856 rm -f conftest.er1 conftest.err
16857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16858 test $ac_status = 0; }
16859done
16860
16861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16862$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16863if test "${ac_cv_c_compiler_gnu+set}" = set; then :
16864 $as_echo_n "(cached) " >&6
16865else
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867/* end confdefs.h. */
16868
16869int
16870main ()
16871{
16872#ifndef __GNUC__
16873 choke me
16874#endif
16875
16876 ;
16877 return 0;
16878}
16879_ACEOF
16880if ac_fn_c_try_compile "$LINENO"; then :
16881 ac_compiler_gnu=yes
16882else
16883 ac_compiler_gnu=no
16884fi
16885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16886ac_cv_c_compiler_gnu=$ac_compiler_gnu
16887
16888fi
16889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16890$as_echo "$ac_cv_c_compiler_gnu" >&6; }
16891if test $ac_compiler_gnu = yes; then
16892 GCC=yes
16893else
16894 GCC=
16895fi
16896ac_test_CFLAGS=${CFLAGS+set}
16897ac_save_CFLAGS=$CFLAGS
16898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16899$as_echo_n "checking whether $CC accepts -g... " >&6; }
16900if test "${ac_cv_prog_cc_g+set}" = set; then :
16901 $as_echo_n "(cached) " >&6
16902else
16903 ac_save_c_werror_flag=$ac_c_werror_flag
16904 ac_c_werror_flag=yes
16905 ac_cv_prog_cc_g=no
16906 CFLAGS="-g"
16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908/* end confdefs.h. */
16909
16910int
16911main ()
16912{
16913
16914 ;
16915 return 0;
16916}
16917_ACEOF
16918if ac_fn_c_try_compile "$LINENO"; then :
16919 ac_cv_prog_cc_g=yes
16920else
16921 CFLAGS=""
16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923/* end confdefs.h. */
16924
16925int
16926main ()
16927{
16928
16929 ;
16930 return 0;
16931}
16932_ACEOF
16933if ac_fn_c_try_compile "$LINENO"; then :
16934
16935else
16936 ac_c_werror_flag=$ac_save_c_werror_flag
16937 CFLAGS="-g"
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939/* end confdefs.h. */
16940
16941int
16942main ()
16943{
16944
16945 ;
16946 return 0;
16947}
16948_ACEOF
16949if ac_fn_c_try_compile "$LINENO"; then :
16950 ac_cv_prog_cc_g=yes
16951fi
16952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953fi
16954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16955fi
16956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16957 ac_c_werror_flag=$ac_save_c_werror_flag
16958fi
16959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16960$as_echo "$ac_cv_prog_cc_g" >&6; }
16961if test "$ac_test_CFLAGS" = set; then
16962 CFLAGS=$ac_save_CFLAGS
16963elif test $ac_cv_prog_cc_g = yes; then
16964 if test "$GCC" = yes; then
16965 CFLAGS="-g -O2"
16966 else
16967 CFLAGS="-g"
16968 fi
16969else
16970 if test "$GCC" = yes; then
16971 CFLAGS="-O2"
16972 else
16973 CFLAGS=
16974 fi
16975fi
16976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16977$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16978if test "${ac_cv_prog_cc_c89+set}" = set; then :
16979 $as_echo_n "(cached) " >&6
16980else
16981 ac_cv_prog_cc_c89=no
16982ac_save_CC=$CC
16983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h. */
16985#include <stdarg.h>
16986#include <stdio.h>
16987#include <sys/types.h>
16988#include <sys/stat.h>
16989/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16990struct buf { int x; };
16991FILE * (*rcsopen) (struct buf *, struct stat *, int);
16992static char *e (p, i)
16993 char **p;
16994 int i;
16995{
16996 return p[i];
16997}
16998static char *f (char * (*g) (char **, int), char **p, ...)
16999{
17000 char *s;
17001 va_list v;
17002 va_start (v,p);
17003 s = g (p, va_arg (v,int));
17004 va_end (v);
17005 return s;
17006}
17007
17008/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
17009 function prototypes and stuff, but not '\xHH' hex character constants.
17010 These don't provoke an error unfortunately, instead are silently treated
17011 as 'x'. The following induces an error, until -std is added to get
17012 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
17013 array size at least. It's necessary to write '\x00'==0 to get something
17014 that's true only with -std. */
17015int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17016
17017/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17018 inside strings and character constants. */
17019#define FOO(x) 'x'
17020int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17021
17022int test (int i, double x);
17023struct s1 {int (*f) (int a);};
17024struct s2 {int (*f) (double a);};
17025int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17026int argc;
17027char **argv;
17028int
17029main ()
17030{
17031return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
17032 ;
17033 return 0;
17034}
17035_ACEOF
17036for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17037 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17038do
17039 CC="$ac_save_CC $ac_arg"
17040 if ac_fn_c_try_compile "$LINENO"; then :
17041 ac_cv_prog_cc_c89=$ac_arg
17042fi
17043rm -f core conftest.err conftest.$ac_objext
17044 test "x$ac_cv_prog_cc_c89" != "xno" && break
17045done
17046rm -f conftest.$ac_ext
17047CC=$ac_save_CC
17048
17049fi
17050# AC_CACHE_VAL
17051case "x$ac_cv_prog_cc_c89" in
17052 x)
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17054$as_echo "none needed" >&6; } ;;
17055 xno)
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17057$as_echo "unsupported" >&6; } ;;
17058 *)
17059 CC="$CC $ac_cv_prog_cc_c89"
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17061$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
17062esac
17063if test "x$ac_cv_prog_cc_c89" != xno; then :
17064
17065fi
17066
17067ac_ext=c
17068ac_cpp='$CPP $CPPFLAGS'
17069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17071ac_compiler_gnu=$ac_cv_c_compiler_gnu
17072
17073depcc="$CC" am_compiler_list=
17074
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17076$as_echo_n "checking dependency style of $depcc... " >&6; }
17077if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
17078 $as_echo_n "(cached) " >&6
17079else
17080 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17081 # We make a subdir and do the tests there. Otherwise we can end up
17082 # making bogus files that we don't know about and never remove. For
17083 # instance it was reported that on HP-UX the gcc test will end up
17084 # making a dummy file named `D' -- because `-MD' means `put the output
17085 # in D'.
17086 mkdir conftest.dir
17087 # Copy depcomp to subdir because otherwise we won't find it if we're
17088 # using a relative directory.
17089 cp "$am_depcomp" conftest.dir
17090 cd conftest.dir
17091 # We will build objects and dependencies in a subdirectory because
17092 # it helps to detect inapplicable dependency modes. For instance
17093 # both Tru64's cc and ICC support -MD to output dependencies as a
17094 # side effect of compilation, but ICC will put the dependencies in
17095 # the current directory while Tru64 will put them in the object
17096 # directory.
17097 mkdir sub
17098
17099 am_cv_CC_dependencies_compiler_type=none
17100 if test "$am_compiler_list" = ""; then
17101 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17102 fi
17103 am__universal=false
17104 case " $depcc " in #(
17105 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17106 esac
17107
17108 for depmode in $am_compiler_list; do
17109 # Setup a source with many dependencies, because some compilers
17110 # like to wrap large dependency lists on column 80 (with \), and
17111 # we should not choose a depcomp mode which is confused by this.
17112 #
17113 # We need to recreate these files for each test, as the compiler may
17114 # overwrite some of them when testing with obscure command lines.
17115 # This happens at least with the AIX C compiler.
17116 : > sub/conftest.c
17117 for i in 1 2 3 4 5 6; do
17118 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17119 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17120 # Solaris 8's {/usr,}/bin/sh.
17121 touch sub/conftst$i.h
17122 done
17123 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17124
17125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17126 # mode. It turns out that the SunPro C++ compiler does not properly
17127 # handle `-M -o', and we need to detect this. Also, some Intel
17128 # versions had trouble with output in subdirs
17129 am__obj=sub/conftest.${OBJEXT-o}
17130 am__minus_obj="-o $am__obj"
17131 case $depmode in
17132 gcc)
17133 # This depmode causes a compiler race in universal mode.
17134 test "$am__universal" = false || continue
17135 ;;
17136 nosideeffect)
17137 # after this tag, mechanisms are not by side-effect, so they'll
17138 # only be used when explicitly requested
17139 if test "x$enable_dependency_tracking" = xyes; then
17140 continue
17141 else
17142 break
17143 fi
17144 ;;
17145 msvisualcpp | msvcmsys)
17146 # This compiler won't grok `-c -o', but also, the minuso test has
17147 # not run yet. These depmodes are late enough in the game, and
17148 # so weak that their functioning should not be impacted.
17149 am__obj=conftest.${OBJEXT-o}
17150 am__minus_obj=
17151 ;;
17152 none) break ;;
17153 esac
17154 if depmode=$depmode \
17155 source=sub/conftest.c object=$am__obj \
17156 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17157 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17158 >/dev/null 2>conftest.err &&
17159 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17160 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17161 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17162 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17163 # icc doesn't choke on unknown options, it will just issue warnings
17164 # or remarks (even with -Werror). So we grep stderr for any message
17165 # that says an option was ignored or not supported.
17166 # When given -MP, icc 7.0 and 7.1 complain thusly:
17167 # icc: Command line warning: ignoring option '-M'; no argument required
17168 # The diagnosis changed in icc 8.0:
17169 # icc: Command line remark: option '-MP' not supported
17170 if (grep 'ignoring option' conftest.err ||
17171 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17172 am_cv_CC_dependencies_compiler_type=$depmode
17173 break
17174 fi
17175 fi
17176 done
17177
17178 cd ..
17179 rm -rf conftest.dir
17180else
17181 am_cv_CC_dependencies_compiler_type=none
17182fi
17183
17184fi
17185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17186$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17187CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17188
17189 if
17190 test "x$enable_dependency_tracking" != xno \
17191 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17192 am__fastdepCC_TRUE=
17193 am__fastdepCC_FALSE='#'
17194else
17195 am__fastdepCC_TRUE='#'
17196 am__fastdepCC_FALSE=
17197fi
17198
17199
17200
17201# pkg-config
17202
17203
17204
17205
17206
17207
17208if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17209 if test -n "$ac_tool_prefix"; then
17210 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17211set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17213$as_echo_n "checking for $ac_word... " >&6; }
17214if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17215 $as_echo_n "(cached) " >&6
17216else
17217 case $PKG_CONFIG in
17218 [\\/]* | ?:[\\/]*)
17219 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17220 ;;
17221 *)
17222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17223for as_dir in $PATH
17224do
17225 IFS=$as_save_IFS
17226 test -z "$as_dir" && as_dir=.
17227 for ac_exec_ext in '' $ac_executable_extensions; do
17228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17229 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17231 break 2
17232 fi
17233done
17234 done
17235IFS=$as_save_IFS
17236
17237 ;;
17238esac
17239fi
17240PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17241if test -n "$PKG_CONFIG"; then
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17243$as_echo "$PKG_CONFIG" >&6; }
17244else
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17246$as_echo "no" >&6; }
17247fi
17248
17249
17250fi
17251if test -z "$ac_cv_path_PKG_CONFIG"; then
17252 ac_pt_PKG_CONFIG=$PKG_CONFIG
17253 # Extract the first word of "pkg-config", so it can be a program name with args.
17254set dummy pkg-config; ac_word=$2
17255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17256$as_echo_n "checking for $ac_word... " >&6; }
17257if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17258 $as_echo_n "(cached) " >&6
17259else
17260 case $ac_pt_PKG_CONFIG in
17261 [\\/]* | ?:[\\/]*)
17262 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17263 ;;
17264 *)
17265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17266for as_dir in $PATH
17267do
17268 IFS=$as_save_IFS
17269 test -z "$as_dir" && as_dir=.
17270 for ac_exec_ext in '' $ac_executable_extensions; do
17271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17272 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17274 break 2
17275 fi
17276done
17277 done
17278IFS=$as_save_IFS
17279
17280 ;;
17281esac
17282fi
17283ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17284if test -n "$ac_pt_PKG_CONFIG"; then
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17286$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17287else
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17289$as_echo "no" >&6; }
17290fi
17291
17292 if test "x$ac_pt_PKG_CONFIG" = x; then
17293 PKG_CONFIG=""
17294 else
17295 case $cross_compiling:$ac_tool_warned in
17296yes:)
17297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17299ac_tool_warned=yes ;;
17300esac
17301 PKG_CONFIG=$ac_pt_PKG_CONFIG
17302 fi
17303else
17304 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17305fi
17306
17307fi
17308if test -n "$PKG_CONFIG"; then
17309 _pkg_min_version=0.9.0
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17311$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17312 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17314$as_echo "yes" >&6; }
17315 else
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17317$as_echo "no" >&6; }
17318 PKG_CONFIG=""
17319 fi
17320fi
17321
17322# Check whether pkg-config supports Requires.private
17323if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
17324 pkgconfig_requires_private="Requires.private"
17325else
17326 pkgconfig_requires_private="Requires"
17327fi
17328
17329
17330# doxygen program for documentation building
17331
17332
17333# Check whether --enable-doc was given.
17334if test "${enable_doc+set}" = set; then :
17335 enableval=$enable_doc;
17336 if test "x${enableval}" = "xyes" ; then
17337 efl_enable_doc="yes"
17338 else
17339 efl_enable_doc="no"
17340 fi
17341
17342else
17343 efl_enable_doc="yes"
17344fi
17345
17346
17347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
17348$as_echo_n "checking whether to build documentation... " >&6; }
17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${efl_enable_doc}" >&5
17350$as_echo "${efl_enable_doc}" >&6; }
17351
17352if test "x${efl_enable_doc}" = "xyes" ; then
17353
17354
17355 efl_doxygen="doxygen"
17356
17357
17358# Check whether --with-doxygen was given.
17359if test "${with_doxygen+set}" = set; then :
17360 withval=$with_doxygen;
17361 efl_doxygen=${withval}
17362 # Extract the first word of "${efl_doxygen}", so it can be a program name with args.
17363set dummy ${efl_doxygen}; ac_word=$2
17364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17365$as_echo_n "checking for $ac_word... " >&6; }
17366if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then :
17367 $as_echo_n "(cached) " >&6
17368else
17369 if test -n "$efl_have_doxygen"; then
17370 ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test.
17371else
17372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17373for as_dir in $PATH
17374do
17375 IFS=$as_save_IFS
17376 test -z "$as_dir" && as_dir=.
17377 for ac_exec_ext in '' $ac_executable_extensions; do
17378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17379 ac_cv_prog_efl_have_doxygen="yes"
17380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17381 break 2
17382 fi
17383done
17384 done
17385IFS=$as_save_IFS
17386
17387 test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no"
17388fi
17389fi
17390efl_have_doxygen=$ac_cv_prog_efl_have_doxygen
17391if test -n "$efl_have_doxygen"; then
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5
17393$as_echo "$efl_have_doxygen" >&6; }
17394else
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17396$as_echo "no" >&6; }
17397fi
17398
17399
17400 if test "x${efl_have_doxygen}" = "xno" ; then
17401 echo "WARNING:"
17402 echo "The doxygen program you specified:"
17403 echo "${efl_doxygen}"
17404 echo "was not found. Please check the path and make sure "
17405 echo "the program exists and is executable."
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
17407$as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
17408 fi
17409
17410else
17411 # Extract the first word of "${efl_doxygen}", so it can be a program name with args.
17412set dummy ${efl_doxygen}; ac_word=$2
17413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17414$as_echo_n "checking for $ac_word... " >&6; }
17415if test "${ac_cv_prog_efl_have_doxygen+set}" = set; then :
17416 $as_echo_n "(cached) " >&6
17417else
17418 if test -n "$efl_have_doxygen"; then
17419 ac_cv_prog_efl_have_doxygen="$efl_have_doxygen" # Let the user override the test.
17420else
17421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17422for as_dir in $PATH
17423do
17424 IFS=$as_save_IFS
17425 test -z "$as_dir" && as_dir=.
17426 for ac_exec_ext in '' $ac_executable_extensions; do
17427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17428 ac_cv_prog_efl_have_doxygen="yes"
17429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17430 break 2
17431 fi
17432done
17433 done
17434IFS=$as_save_IFS
17435
17436 test -z "$ac_cv_prog_efl_have_doxygen" && ac_cv_prog_efl_have_doxygen="no"
17437fi
17438fi
17439efl_have_doxygen=$ac_cv_prog_efl_have_doxygen
17440if test -n "$efl_have_doxygen"; then
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $efl_have_doxygen" >&5
17442$as_echo "$efl_have_doxygen" >&6; }
17443else
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17445$as_echo "no" >&6; }
17446fi
17447
17448
17449 if test "x${efl_have_doxygen}" = "xno" ; then
17450 echo "WARNING:"
17451 echo "The doxygen program was not found in your execute path."
17452 echo "You may have doxygen installed somewhere not covered by your path."
17453 echo ""
17454 echo "If this is the case make sure you have the packages installed, AND"
17455 echo "that the doxygen program is in your execute path (see your"
17456 echo "shell manual page on setting the \$PATH environment variable), OR"
17457 echo "alternatively, specify the program to use with --with-doxygen."
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
17459$as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
17460 fi
17461
17462fi
17463
17464fi
17465
17466
17467
17468if ! test "x${efl_have_doxygen}" = "xyes" ; then
17469 efl_enable_doc="no"
17470fi
17471
17472 if test "x${efl_enable_doc}" = "xyes"; then
17473 EFL_BUILD_DOC_TRUE=
17474 EFL_BUILD_DOC_FALSE='#'
17475else
17476 EFL_BUILD_DOC_TRUE='#'
17477 EFL_BUILD_DOC_FALSE=
17478fi
17479
17480
17481if test "x${efl_enable_doc}" = "xyes" ; then
17482 build_doc="yes"
17483else
17484 build_doc="no"
17485fi
17486
17487
17488
17489
17490### Checks for libraries
17491
17492# Evil library for compilation on Windows CE
17493
17494case "$host_os" in
17495 mingw*)
17496
17497pkg_failed=no
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVIL" >&5
17499$as_echo_n "checking for EVIL... " >&6; }
17500
17501if test -n "$EVIL_CFLAGS"; then
17502 pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS"
17503 elif test -n "$PKG_CONFIG"; then
17504 if test -n "$PKG_CONFIG" && \
17505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5
17506 ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5
17507 ac_status=$?
17508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17509 test $ac_status = 0; }; then
17510 pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.0.0" 2>/dev/null`
17511else
17512 pkg_failed=yes
17513fi
17514 else
17515 pkg_failed=untried
17516fi
17517if test -n "$EVIL_LIBS"; then
17518 pkg_cv_EVIL_LIBS="$EVIL_LIBS"
17519 elif test -n "$PKG_CONFIG"; then
17520 if test -n "$PKG_CONFIG" && \
17521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.0.0\""; } >&5
17522 ($PKG_CONFIG --exists --print-errors "evil >= 1.0.0") 2>&5
17523 ac_status=$?
17524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17525 test $ac_status = 0; }; then
17526 pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.0.0" 2>/dev/null`
17527else
17528 pkg_failed=yes
17529fi
17530 else
17531 pkg_failed=untried
17532fi
17533
17534
17535
17536if test $pkg_failed = yes; then
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538$as_echo "no" >&6; }
17539
17540if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17541 _pkg_short_errors_supported=yes
17542else
17543 _pkg_short_errors_supported=no
17544fi
17545 if test $_pkg_short_errors_supported = yes; then
17546 EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.0.0" 2>&1`
17547 else
17548 EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.0.0" 2>&1`
17549 fi
17550 # Put the nasty error message in config.log where it belongs
17551 echo "$EVIL_PKG_ERRORS" >&5
17552
17553 as_fn_error $? "Package requirements (evil >= 1.0.0) were not met:
17554
17555$EVIL_PKG_ERRORS
17556
17557Consider adjusting the PKG_CONFIG_PATH environment variable if you
17558installed software in a non-standard prefix.
17559
17560Alternatively, you may set the environment variables EVIL_CFLAGS
17561and EVIL_LIBS to avoid the need to call pkg-config.
17562See the pkg-config man page for more details." "$LINENO" 5
17563elif test $pkg_failed = untried; then
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565$as_echo "no" >&6; }
17566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17568as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17569is in your PATH or set the PKG_CONFIG environment variable to the full
17570path to pkg-config.
17571
17572Alternatively, you may set the environment variables EVIL_CFLAGS
17573and EVIL_LIBS to avoid the need to call pkg-config.
17574See the pkg-config man page for more details.
17575
17576To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17577See \`config.log' for more details" "$LINENO" 5 ; }
17578else
17579 EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS
17580 EVIL_LIBS=$pkg_cv_EVIL_LIBS
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17582$as_echo "yes" >&6; }
17583
17584fi
17585
17586$as_echo "#define HAVE_EVIL 1" >>confdefs.h
17587
17588 requirement_evas="evil ${requirement_evas}"
17589 ;;
17590esac
17591
17592## strong dependencies
17593
17594# Eina
17595
17596pkg_failed=no
17597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EINA" >&5
17598$as_echo_n "checking for EINA... " >&6; }
17599
17600if test -n "$EINA_CFLAGS"; then
17601 pkg_cv_EINA_CFLAGS="$EINA_CFLAGS"
17602 elif test -n "$PKG_CONFIG"; then
17603 if test -n "$PKG_CONFIG" && \
17604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.1.0\""; } >&5
17605 ($PKG_CONFIG --exists --print-errors "eina >= 1.1.0") 2>&5
17606 ac_status=$?
17607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17608 test $ac_status = 0; }; then
17609 pkg_cv_EINA_CFLAGS=`$PKG_CONFIG --cflags "eina >= 1.1.0" 2>/dev/null`
17610else
17611 pkg_failed=yes
17612fi
17613 else
17614 pkg_failed=untried
17615fi
17616if test -n "$EINA_LIBS"; then
17617 pkg_cv_EINA_LIBS="$EINA_LIBS"
17618 elif test -n "$PKG_CONFIG"; then
17619 if test -n "$PKG_CONFIG" && \
17620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eina >= 1.1.0\""; } >&5
17621 ($PKG_CONFIG --exists --print-errors "eina >= 1.1.0") 2>&5
17622 ac_status=$?
17623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17624 test $ac_status = 0; }; then
17625 pkg_cv_EINA_LIBS=`$PKG_CONFIG --libs "eina >= 1.1.0" 2>/dev/null`
17626else
17627 pkg_failed=yes
17628fi
17629 else
17630 pkg_failed=untried
17631fi
17632
17633
17634
17635if test $pkg_failed = yes; then
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637$as_echo "no" >&6; }
17638
17639if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17640 _pkg_short_errors_supported=yes
17641else
17642 _pkg_short_errors_supported=no
17643fi
17644 if test $_pkg_short_errors_supported = yes; then
17645 EINA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eina >= 1.1.0" 2>&1`
17646 else
17647 EINA_PKG_ERRORS=`$PKG_CONFIG --print-errors "eina >= 1.1.0" 2>&1`
17648 fi
17649 # Put the nasty error message in config.log where it belongs
17650 echo "$EINA_PKG_ERRORS" >&5
17651
17652 as_fn_error $? "Package requirements (eina >= 1.1.0) were not met:
17653
17654$EINA_PKG_ERRORS
17655
17656Consider adjusting the PKG_CONFIG_PATH environment variable if you
17657installed software in a non-standard prefix.
17658
17659Alternatively, you may set the environment variables EINA_CFLAGS
17660and EINA_LIBS to avoid the need to call pkg-config.
17661See the pkg-config man page for more details." "$LINENO" 5
17662elif test $pkg_failed = untried; then
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17664$as_echo "no" >&6; }
17665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17667as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17668is in your PATH or set the PKG_CONFIG environment variable to the full
17669path to pkg-config.
17670
17671Alternatively, you may set the environment variables EINA_CFLAGS
17672and EINA_LIBS to avoid the need to call pkg-config.
17673See the pkg-config man page for more details.
17674
17675To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17676See \`config.log' for more details" "$LINENO" 5 ; }
17677else
17678 EINA_CFLAGS=$pkg_cv_EINA_CFLAGS
17679 EINA_LIBS=$pkg_cv_EINA_LIBS
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17681$as_echo "yes" >&6; }
17682
17683fi
17684CPPFLAGS_SAVE="$CPPFLAGS"
17685CPPFLAGS="$CPPFLAGS $EINA_CFLAGS"
17686# The cast to long int works around a bug in the HP C Compiler
17687# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17688# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17689# This bug is HP SR number 8606223364.
17690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Eina_Unicode" >&5
17691$as_echo_n "checking size of Eina_Unicode... " >&6; }
17692if test "${ac_cv_sizeof_Eina_Unicode+set}" = set; then :
17693 $as_echo_n "(cached) " >&6
17694else
17695 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (Eina_Unicode))" "ac_cv_sizeof_Eina_Unicode" "#include <Eina.h>
17696"; then :
17697
17698else
17699 if test "$ac_cv_type_Eina_Unicode" = yes; then
17700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17702as_fn_error 77 "cannot compute sizeof (Eina_Unicode)
17703See \`config.log' for more details" "$LINENO" 5 ; }
17704 else
17705 ac_cv_sizeof_Eina_Unicode=0
17706 fi
17707fi
17708
17709fi
17710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_Eina_Unicode" >&5
17711$as_echo "$ac_cv_sizeof_Eina_Unicode" >&6; }
17712
17713
17714
17715cat >>confdefs.h <<_ACEOF
17716#define SIZEOF_EINA_UNICODE $ac_cv_sizeof_Eina_Unicode
17717_ACEOF
17718
17719
17720CPPFLAGS="$CPPFLAGS_SAVE"
17721
17722# Freetype
17723
17724pkg_failed=no
17725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
17726$as_echo_n "checking for FREETYPE... " >&6; }
17727
17728if test -n "$FREETYPE_CFLAGS"; then
17729 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
17730 elif test -n "$PKG_CONFIG"; then
17731 if test -n "$PKG_CONFIG" && \
17732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.3.0\""; } >&5
17733 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.3.0") 2>&5
17734 ac_status=$?
17735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17736 test $ac_status = 0; }; then
17737 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 9.3.0" 2>/dev/null`
17738else
17739 pkg_failed=yes
17740fi
17741 else
17742 pkg_failed=untried
17743fi
17744if test -n "$FREETYPE_LIBS"; then
17745 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
17746 elif test -n "$PKG_CONFIG"; then
17747 if test -n "$PKG_CONFIG" && \
17748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 9.3.0\""; } >&5
17749 ($PKG_CONFIG --exists --print-errors "freetype2 >= 9.3.0") 2>&5
17750 ac_status=$?
17751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17752 test $ac_status = 0; }; then
17753 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 9.3.0" 2>/dev/null`
17754else
17755 pkg_failed=yes
17756fi
17757 else
17758 pkg_failed=untried
17759fi
17760
17761
17762
17763if test $pkg_failed = yes; then
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765$as_echo "no" >&6; }
17766
17767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17768 _pkg_short_errors_supported=yes
17769else
17770 _pkg_short_errors_supported=no
17771fi
17772 if test $_pkg_short_errors_supported = yes; then
17773 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= 9.3.0" 2>&1`
17774 else
17775 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= 9.3.0" 2>&1`
17776 fi
17777 # Put the nasty error message in config.log where it belongs
17778 echo "$FREETYPE_PKG_ERRORS" >&5
17779
17780 as_fn_error $? "Package requirements (freetype2 >= 9.3.0) were not met:
17781
17782$FREETYPE_PKG_ERRORS
17783
17784Consider adjusting the PKG_CONFIG_PATH environment variable if you
17785installed software in a non-standard prefix.
17786
17787Alternatively, you may set the environment variables FREETYPE_CFLAGS
17788and FREETYPE_LIBS to avoid the need to call pkg-config.
17789See the pkg-config man page for more details." "$LINENO" 5
17790elif test $pkg_failed = untried; then
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17792$as_echo "no" >&6; }
17793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17795as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17796is in your PATH or set the PKG_CONFIG environment variable to the full
17797path to pkg-config.
17798
17799Alternatively, you may set the environment variables FREETYPE_CFLAGS
17800and FREETYPE_LIBS to avoid the need to call pkg-config.
17801See the pkg-config man page for more details.
17802
17803To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17804See \`config.log' for more details" "$LINENO" 5 ; }
17805else
17806 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
17807 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17809$as_echo "yes" >&6; }
17810
17811fi
17812
17813requirement_evas="freetype2 eina >= 1.1.0 ${requirement_evas}"
17814
17815## optional dependencies
17816
17817# FontConfig
17818have_fontconfig="no"
17819# Check whether --enable-fontconfig was given.
17820if test "${enable_fontconfig+set}" = set; then :
17821 enableval=$enable_fontconfig;
17822 if test "x${enableval}" = "xyes" ; then
17823 want_fontconfig="yes"
17824 else
17825 want_fontconfig="no"
17826 fi
17827
17828fi
17829
17830
17831
17832if test "x${want_fontconfig}" = "xyes" -o "x${want_fontconfig}" = "xauto" ; then
17833
17834pkg_failed=no
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
17836$as_echo_n "checking for FONTCONFIG... " >&6; }
17837
17838if test -n "$FONTCONFIG_CFLAGS"; then
17839 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
17840 elif test -n "$PKG_CONFIG"; then
17841 if test -n "$PKG_CONFIG" && \
17842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.0\""; } >&5
17843 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.0") 2>&5
17844 ac_status=$?
17845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17846 test $ac_status = 0; }; then
17847 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.0" 2>/dev/null`
17848else
17849 pkg_failed=yes
17850fi
17851 else
17852 pkg_failed=untried
17853fi
17854if test -n "$FONTCONFIG_LIBS"; then
17855 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
17856 elif test -n "$PKG_CONFIG"; then
17857 if test -n "$PKG_CONFIG" && \
17858 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.0\""; } >&5
17859 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.0") 2>&5
17860 ac_status=$?
17861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17862 test $ac_status = 0; }; then
17863 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.0" 2>/dev/null`
17864else
17865 pkg_failed=yes
17866fi
17867 else
17868 pkg_failed=untried
17869fi
17870
17871
17872
17873if test $pkg_failed = yes; then
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17875$as_echo "no" >&6; }
17876
17877if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17878 _pkg_short_errors_supported=yes
17879else
17880 _pkg_short_errors_supported=no
17881fi
17882 if test $_pkg_short_errors_supported = yes; then
17883 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.5.0" 2>&1`
17884 else
17885 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.5.0" 2>&1`
17886 fi
17887 # Put the nasty error message in config.log where it belongs
17888 echo "$FONTCONFIG_PKG_ERRORS" >&5
17889
17890
17891 if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then
17892 as_fn_error $? "Fontconfig not found (strict dependencies checking)" "$LINENO" 5
17893 fi
17894
17895elif test $pkg_failed = untried; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17897$as_echo "no" >&6; }
17898
17899 if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then
17900 as_fn_error $? "Fontconfig not found (strict dependencies checking)" "$LINENO" 5
17901 fi
17902
17903else
17904 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
17905 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17907$as_echo "yes" >&6; }
17908
17909 have_fontconfig="yes"
17910
17911$as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
17912
17913 requirement_evas="fontconfig ${requirement_evas}"
17914
17915fi
17916fi
17917
17918# linebreak
17919have_linebreak="no"
17920want_linebreak="yes"
17921# Check whether --enable-liblinebreak was given.
17922if test "${enable_liblinebreak+set}" = set; then :
17923 enableval=$enable_liblinebreak;
17924 if test "x${enableval}" = "xyes" ; then
17925 want_linebreak="yes"
17926 else
17927 want_linebreak="no"
17928 fi
17929
17930fi
17931
17932
17933
17934 if test "x${want_linebreak}" = "xyes"; then
17935 EVAS_USE_LINEBREAK_TRUE=
17936 EVAS_USE_LINEBREAK_FALSE='#'
17937else
17938 EVAS_USE_LINEBREAK_TRUE='#'
17939 EVAS_USE_LINEBREAK_FALSE=
17940fi
17941
17942if test "x${want_linebreak}" = "xyes" ; then
17943 have_linebreak="yes"
17944 LINEBREAK_CFLAGS='-I$(top_srcdir)/src/static_deps/liblinebreak'
17945 LINEBREAK_LIBS='$(top_builddir)/src/static_deps/liblinebreak/liblinebreak.la'
17946
17947
17948
17949$as_echo "#define HAVE_LINEBREAK 1" >>confdefs.h
17950
17951else
17952 have_linebreak="no"
17953fi
17954
17955# fribidi support
17956have_fribidi="no"
17957# Check whether --enable-fribidi was given.
17958if test "${enable_fribidi+set}" = set; then :
17959 enableval=$enable_fribidi;
17960 if test "x${enableval}" = "xyes" ; then
17961 want_fribidi="yes"
17962 else
17963 want_fribidi="no"
17964 fi
17965
17966fi
17967
17968
17969if test "x${want_fribidi}" = "xyes" -o "x${want_fribidi}" = "xauto" ; then
17970
17971pkg_failed=no
17972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI" >&5
17973$as_echo_n "checking for FRIBIDI... " >&6; }
17974
17975if test -n "$FRIBIDI_CFLAGS"; then
17976 pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
17977 elif test -n "$PKG_CONFIG"; then
17978 if test -n "$PKG_CONFIG" && \
17979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.2\""; } >&5
17980 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.2") 2>&5
17981 ac_status=$?
17982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17983 test $ac_status = 0; }; then
17984 pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi >= 0.19.2" 2>/dev/null`
17985else
17986 pkg_failed=yes
17987fi
17988 else
17989 pkg_failed=untried
17990fi
17991if test -n "$FRIBIDI_LIBS"; then
17992 pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
17993 elif test -n "$PKG_CONFIG"; then
17994 if test -n "$PKG_CONFIG" && \
17995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi >= 0.19.2\""; } >&5
17996 ($PKG_CONFIG --exists --print-errors "fribidi >= 0.19.2") 2>&5
17997 ac_status=$?
17998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999 test $ac_status = 0; }; then
18000 pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi >= 0.19.2" 2>/dev/null`
18001else
18002 pkg_failed=yes
18003fi
18004 else
18005 pkg_failed=untried
18006fi
18007
18008
18009
18010if test $pkg_failed = yes; then
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18012$as_echo "no" >&6; }
18013
18014if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18015 _pkg_short_errors_supported=yes
18016else
18017 _pkg_short_errors_supported=no
18018fi
18019 if test $_pkg_short_errors_supported = yes; then
18020 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fribidi >= 0.19.2" 2>&1`
18021 else
18022 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --print-errors "fribidi >= 0.19.2" 2>&1`
18023 fi
18024 # Put the nasty error message in config.log where it belongs
18025 echo "$FRIBIDI_PKG_ERRORS" >&5
18026
18027
18028 if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then
18029 as_fn_error $? "Fribidi not found (strict dependencies checking)" "$LINENO" 5
18030 fi
18031
18032elif test $pkg_failed = untried; then
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18034$as_echo "no" >&6; }
18035
18036 if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then
18037 as_fn_error $? "Fribidi not found (strict dependencies checking)" "$LINENO" 5
18038 fi
18039
18040else
18041 FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
18042 FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18044$as_echo "yes" >&6; }
18045
18046 have_fribidi="yes"
18047
18048$as_echo "#define HAVE_FRIBIDI 1" >>confdefs.h
18049
18050 requirement_evas="fribidi ${requirement_evas}"
18051 CPPFLAGS_SAVE="$CPPFLAGS"
18052 CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS"
18053 # The cast to long int works around a bug in the HP C Compiler
18054# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18055# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18056# This bug is HP SR number 8606223364.
18057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of FriBidiChar" >&5
18058$as_echo_n "checking size of FriBidiChar... " >&6; }
18059if test "${ac_cv_sizeof_FriBidiChar+set}" = set; then :
18060 $as_echo_n "(cached) " >&6
18061else
18062 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (FriBidiChar))" "ac_cv_sizeof_FriBidiChar" "#include <fribidi/fribidi.h>
18063"; then :
18064
18065else
18066 if test "$ac_cv_type_FriBidiChar" = yes; then
18067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18069as_fn_error 77 "cannot compute sizeof (FriBidiChar)
18070See \`config.log' for more details" "$LINENO" 5 ; }
18071 else
18072 ac_cv_sizeof_FriBidiChar=0
18073 fi
18074fi
18075
18076fi
18077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_FriBidiChar" >&5
18078$as_echo "$ac_cv_sizeof_FriBidiChar" >&6; }
18079
18080
18081
18082cat >>confdefs.h <<_ACEOF
18083#define SIZEOF_FRIBIDICHAR $ac_cv_sizeof_FriBidiChar
18084_ACEOF
18085
18086
18087 CPPFLAGS="$CPPFLAGS_SAVE"
18088
18089fi
18090fi
18091
18092if test "x${have_fribidi}" = "xno"; then
18093 HAS_BIDI=0
18094fi
18095
18096# harfbuzz support
18097have_harfbuzz="no"
18098have_harfbuzz_ft="no"
18099# Check whether --enable-harfbuzz was given.
18100if test "${enable_harfbuzz+set}" = set; then :
18101 enableval=$enable_harfbuzz;
18102 if test "x${enableval}" = "xyes" ; then
18103 want_harfbuzz="yes"
18104 else
18105 want_harfbuzz="no"
18106 fi
18107
18108fi
18109
18110
18111if test "x${want_harfbuzz}" = "xyes" -o "x${want_harfbuzz}" = "xauto" ; then
18112
18113pkg_failed=no
18114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
18115$as_echo_n "checking for HARFBUZZ... " >&6; }
18116
18117if test -n "$HARFBUZZ_CFLAGS"; then
18118 pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
18119 elif test -n "$PKG_CONFIG"; then
18120 if test -n "$PKG_CONFIG" && \
18121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 0.6.0\""; } >&5
18122 ($PKG_CONFIG --exists --print-errors "harfbuzz >= 0.6.0") 2>&5
18123 ac_status=$?
18124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18125 test $ac_status = 0; }; then
18126 pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "harfbuzz >= 0.6.0" 2>/dev/null`
18127else
18128 pkg_failed=yes
18129fi
18130 else
18131 pkg_failed=untried
18132fi
18133if test -n "$HARFBUZZ_LIBS"; then
18134 pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
18135 elif test -n "$PKG_CONFIG"; then
18136 if test -n "$PKG_CONFIG" && \
18137 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"harfbuzz >= 0.6.0\""; } >&5
18138 ($PKG_CONFIG --exists --print-errors "harfbuzz >= 0.6.0") 2>&5
18139 ac_status=$?
18140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18141 test $ac_status = 0; }; then
18142 pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "harfbuzz >= 0.6.0" 2>/dev/null`
18143else
18144 pkg_failed=yes
18145fi
18146 else
18147 pkg_failed=untried
18148fi
18149
18150
18151
18152if test $pkg_failed = yes; then
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18154$as_echo "no" >&6; }
18155
18156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18157 _pkg_short_errors_supported=yes
18158else
18159 _pkg_short_errors_supported=no
18160fi
18161 if test $_pkg_short_errors_supported = yes; then
18162 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "harfbuzz >= 0.6.0" 2>&1`
18163 else
18164 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors "harfbuzz >= 0.6.0" 2>&1`
18165 fi
18166 # Put the nasty error message in config.log where it belongs
18167 echo "$HARFBUZZ_PKG_ERRORS" >&5
18168
18169
18170 if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
18171 as_fn_error $? "Harfbuzz not found (strict dependencies checking)" "$LINENO" 5
18172 fi
18173
18174elif test $pkg_failed = untried; then
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176$as_echo "no" >&6; }
18177
18178 if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
18179 as_fn_error $? "Harfbuzz not found (strict dependencies checking)" "$LINENO" 5
18180 fi
18181
18182else
18183 HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
18184 HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18186$as_echo "yes" >&6; }
18187
18188 have_harfbuzz="yes"
18189 requirement_evas="harfbuzz ${requirement_evas}"
18190
18191fi
18192 if test "x$have_harfbuzz" = "xyes" ; then
18193
18194 CPPFLAGS_SAVE="$CPPFLAGS"
18195 CPPFLAGS="$CPPFLAGS $HARFBUZZ_CFLAGS $FREETYPE_CFLAGS"
18196# must have for usage with harfbuzz although harfbuzz may not have it.
18197
18198 ac_fn_c_check_header_mongrel "$LINENO" "hb-ft.h" "ac_cv_header_hb_ft_h" "$ac_includes_default"
18199if test "x$ac_cv_header_hb_ft_h" = x""yes; then :
18200
18201 have_harfbuzz_ft="yes"
18202 #Depend on harfbuzz ft for harfbuzz support
18203
18204$as_echo "#define HAVE_HARFBUZZ 1" >>confdefs.h
18205
18206
18207else
18208
18209 if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
18210 as_fn_error $? "Harfbuzz-ft not found (strict dependencies checking)" "$LINENO" 5
18211 fi
18212 have_harfbuzz="no"
18213
18214fi
18215
18216
18217 CPPFLAGS="$CPPFLAGS_SAVE"
18218 fi
18219fi
18220
18221if test "x${have_harfbuzz}" = "xno"; then
18222 HAS_HARFBUZZ=0
18223fi
18224
18225# Pixman
18226have_pixman="no"
18227# Check whether --enable-pixman was given.
18228if test "${enable_pixman+set}" = set; then :
18229 enableval=$enable_pixman;
18230 if test "x${enableval}" = "xyes" ; then
18231 want_pixman="yes"
18232 else
18233 want_pixman="no"
18234 fi
18235
18236fi
18237
18238
18239
18240if test "x${want_pixman}" = "xyes" -o "x${want_pixman}" = "xauto" ; then
18241
18242pkg_failed=no
18243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
18244$as_echo_n "checking for PIXMAN... " >&6; }
18245
18246if test -n "$PIXMAN_CFLAGS"; then
18247 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
18248 elif test -n "$PKG_CONFIG"; then
18249 if test -n "$PKG_CONFIG" && \
18250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5
18251 ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5
18252 ac_status=$?
18253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18254 test $ac_status = 0; }; then
18255 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "pixman-1" 2>/dev/null`
18256else
18257 pkg_failed=yes
18258fi
18259 else
18260 pkg_failed=untried
18261fi
18262if test -n "$PIXMAN_LIBS"; then
18263 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
18264 elif test -n "$PKG_CONFIG"; then
18265 if test -n "$PKG_CONFIG" && \
18266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1\""; } >&5
18267 ($PKG_CONFIG --exists --print-errors "pixman-1") 2>&5
18268 ac_status=$?
18269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18270 test $ac_status = 0; }; then
18271 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "pixman-1" 2>/dev/null`
18272else
18273 pkg_failed=yes
18274fi
18275 else
18276 pkg_failed=untried
18277fi
18278
18279
18280
18281if test $pkg_failed = yes; then
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18283$as_echo "no" >&6; }
18284
18285if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18286 _pkg_short_errors_supported=yes
18287else
18288 _pkg_short_errors_supported=no
18289fi
18290 if test $_pkg_short_errors_supported = yes; then
18291 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pixman-1" 2>&1`
18292 else
18293 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "pixman-1" 2>&1`
18294 fi
18295 # Put the nasty error message in config.log where it belongs
18296 echo "$PIXMAN_PKG_ERRORS" >&5
18297
18298
18299 if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then
18300 as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5
18301 fi
18302
18303elif test $pkg_failed = untried; then
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305$as_echo "no" >&6; }
18306
18307 if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then
18308 as_fn_error $? "Pixman not found (strict dependencies checking)" "$LINENO" 5
18309 fi
18310
18311else
18312 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
18313 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18315$as_echo "yes" >&6; }
18316
18317 have_pixman="yes"
18318
18319$as_echo "#define HAVE_PIXMAN 1" >>confdefs.h
18320
18321 requirement_evas="pixman-1 ${requirement_evas}"
18322
18323fi
18324fi
18325
18326### Checks for header files
18327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18328$as_echo_n "checking for ANSI C header files... " >&6; }
18329if test "${ac_cv_header_stdc+set}" = set; then :
18330 $as_echo_n "(cached) " >&6
18331else
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333/* end confdefs.h. */
18334#include <stdlib.h>
18335#include <stdarg.h>
18336#include <string.h>
18337#include <float.h>
18338
18339int
18340main ()
18341{
18342
18343 ;
18344 return 0;
18345}
18346_ACEOF
18347if ac_fn_c_try_compile "$LINENO"; then :
18348 ac_cv_header_stdc=yes
18349else
18350 ac_cv_header_stdc=no
18351fi
18352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18353
18354if test $ac_cv_header_stdc = yes; then
18355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357/* end confdefs.h. */
18358#include <string.h>
18359
18360_ACEOF
18361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18362 $EGREP "memchr" >/dev/null 2>&1; then :
18363
18364else
18365 ac_cv_header_stdc=no
18366fi
18367rm -f conftest*
18368
18369fi
18370
18371if test $ac_cv_header_stdc = yes; then
18372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374/* end confdefs.h. */
18375#include <stdlib.h>
18376
18377_ACEOF
18378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18379 $EGREP "free" >/dev/null 2>&1; then :
18380
18381else
18382 ac_cv_header_stdc=no
18383fi
18384rm -f conftest*
18385
18386fi
18387
18388if test $ac_cv_header_stdc = yes; then
18389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18390 if test "$cross_compiling" = yes; then :
18391 :
18392else
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394/* end confdefs.h. */
18395#include <ctype.h>
18396#include <stdlib.h>
18397#if ((' ' & 0x0FF) == 0x020)
18398# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18399# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18400#else
18401# define ISLOWER(c) \
18402 (('a' <= (c) && (c) <= 'i') \
18403 || ('j' <= (c) && (c) <= 'r') \
18404 || ('s' <= (c) && (c) <= 'z'))
18405# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18406#endif
18407
18408#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18409int
18410main ()
18411{
18412 int i;
18413 for (i = 0; i < 256; i++)
18414 if (XOR (islower (i), ISLOWER (i))
18415 || toupper (i) != TOUPPER (i))
18416 return 2;
18417 return 0;
18418}
18419_ACEOF
18420if ac_fn_c_try_run "$LINENO"; then :
18421
18422else
18423 ac_cv_header_stdc=no
18424fi
18425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18426 conftest.$ac_objext conftest.beam conftest.$ac_ext
18427fi
18428
18429fi
18430fi
18431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18432$as_echo "$ac_cv_header_stdc" >&6; }
18433if test $ac_cv_header_stdc = yes; then
18434
18435$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18436
18437fi
18438
18439for ac_header in unistd.h stdint.h sys/param.h netinet/in.h
18440do :
18441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18442ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18443if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18444 cat >>confdefs.h <<_ACEOF
18445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18446_ACEOF
18447
18448fi
18449
18450done
18451
18452
18453
18454default_max="4096"
18455ac_ext=c
18456ac_cpp='$CPP $CPPFLAGS'
18457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18459ac_compiler_gnu=$ac_cv_c_compiler_gnu
18460
18461
18462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATH_MAX in limits.h" >&5
18463$as_echo_n "checking for PATH_MAX in limits.h... " >&6; }
18464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465/* end confdefs.h. */
18466
18467#include <limits.h>
18468
18469int
18470main ()
18471{
18472
18473int i = PATH_MAX;
18474
18475 ;
18476 return 0;
18477}
18478_ACEOF
18479if ac_fn_c_try_compile "$LINENO"; then :
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18481$as_echo "yes" >&6; }
18482else
18483
18484
18485cat >>confdefs.h <<_ACEOF
18486#define PATH_MAX ${default_max}
18487_ACEOF
18488
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: using ${default_max}" >&5
18490$as_echo "no: using ${default_max}" >&6; }
18491
18492fi
18493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18494
18495ac_ext=c
18496ac_cpp='$CPP $CPPFLAGS'
18497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18499ac_compiler_gnu=$ac_cv_c_compiler_gnu
18500
18501
18502
18503
18504
18505### Checks for types
18506ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
18507"
18508if test "x$ac_cv_type_struct_sigaction" = x""yes; then :
18509
18510cat >>confdefs.h <<_ACEOF
18511#define HAVE_STRUCT_SIGACTION 1
18512_ACEOF
18513
18514
18515fi
18516
18517
18518
18519### Checks for structures
18520
18521
18522### Checks for compiler characteristics
18523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18524$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18525if test "${ac_cv_c_const+set}" = set; then :
18526 $as_echo_n "(cached) " >&6
18527else
18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529/* end confdefs.h. */
18530
18531int
18532main ()
18533{
18534/* FIXME: Include the comments suggested by Paul. */
18535#ifndef __cplusplus
18536 /* Ultrix mips cc rejects this. */
18537 typedef int charset[2];
18538 const charset cs;
18539 /* SunOS 4.1.1 cc rejects this. */
18540 char const *const *pcpcc;
18541 char **ppc;
18542 /* NEC SVR4.0.2 mips cc rejects this. */
18543 struct point {int x, y;};
18544 static struct point const zero = {0,0};
18545 /* AIX XL C 1.02.0.0 rejects this.
18546 It does not let you subtract one const X* pointer from another in
18547 an arm of an if-expression whose if-part is not a constant
18548 expression */
18549 const char *g = "string";
18550 pcpcc = &g + (g ? g-g : 0);
18551 /* HPUX 7.0 cc rejects these. */
18552 ++pcpcc;
18553 ppc = (char**) pcpcc;
18554 pcpcc = (char const *const *) ppc;
18555 { /* SCO 3.2v4 cc rejects this. */
18556 char *t;
18557 char const *s = 0 ? (char *) 0 : (char const *) 0;
18558
18559 *t++ = 0;
18560 if (s) return 0;
18561 }
18562 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18563 int x[] = {25, 17};
18564 const int *foo = &x[0];
18565 ++foo;
18566 }
18567 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18568 typedef const int *iptr;
18569 iptr p = 0;
18570 ++p;
18571 }
18572 { /* AIX XL C 1.02.0.0 rejects this saying
18573 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18574 struct s { int j; const int *ap[3]; };
18575 struct s *b; b->j = 5;
18576 }
18577 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18578 const int foo = 10;
18579 if (!foo) return 0;
18580 }
18581 return !cs[0] && !zero.x;
18582#endif
18583
18584 ;
18585 return 0;
18586}
18587_ACEOF
18588if ac_fn_c_try_compile "$LINENO"; then :
18589 ac_cv_c_const=yes
18590else
18591 ac_cv_c_const=no
18592fi
18593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18594fi
18595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18596$as_echo "$ac_cv_c_const" >&6; }
18597if test $ac_cv_c_const = no; then
18598
18599$as_echo "#define const /**/" >>confdefs.h
18600
18601fi
18602
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18604$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18605if test "${ac_cv_c_bigendian+set}" = set; then :
18606 $as_echo_n "(cached) " >&6
18607else
18608 ac_cv_c_bigendian=unknown
18609 # See if we're dealing with a universal compiler.
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611/* end confdefs.h. */
18612#ifndef __APPLE_CC__
18613 not a universal capable compiler
18614 #endif
18615 typedef int dummy;
18616
18617_ACEOF
18618if ac_fn_c_try_compile "$LINENO"; then :
18619
18620 # Check for potential -arch flags. It is not universal unless
18621 # there are at least two -arch flags with different values.
18622 ac_arch=
18623 ac_prev=
18624 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18625 if test -n "$ac_prev"; then
18626 case $ac_word in
18627 i?86 | x86_64 | ppc | ppc64)
18628 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18629 ac_arch=$ac_word
18630 else
18631 ac_cv_c_bigendian=universal
18632 break
18633 fi
18634 ;;
18635 esac
18636 ac_prev=
18637 elif test "x$ac_word" = "x-arch"; then
18638 ac_prev=arch
18639 fi
18640 done
18641fi
18642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18643 if test $ac_cv_c_bigendian = unknown; then
18644 # See if sys/param.h defines the BYTE_ORDER macro.
18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646/* end confdefs.h. */
18647#include <sys/types.h>
18648 #include <sys/param.h>
18649
18650int
18651main ()
18652{
18653#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18654 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18655 && LITTLE_ENDIAN)
18656 bogus endian macros
18657 #endif
18658
18659 ;
18660 return 0;
18661}
18662_ACEOF
18663if ac_fn_c_try_compile "$LINENO"; then :
18664 # It does; now see whether it defined to BIG_ENDIAN or not.
18665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666/* end confdefs.h. */
18667#include <sys/types.h>
18668 #include <sys/param.h>
18669
18670int
18671main ()
18672{
18673#if BYTE_ORDER != BIG_ENDIAN
18674 not big endian
18675 #endif
18676
18677 ;
18678 return 0;
18679}
18680_ACEOF
18681if ac_fn_c_try_compile "$LINENO"; then :
18682 ac_cv_c_bigendian=yes
18683else
18684 ac_cv_c_bigendian=no
18685fi
18686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18687fi
18688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18689 fi
18690 if test $ac_cv_c_bigendian = unknown; then
18691 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693/* end confdefs.h. */
18694#include <limits.h>
18695
18696int
18697main ()
18698{
18699#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18700 bogus endian macros
18701 #endif
18702
18703 ;
18704 return 0;
18705}
18706_ACEOF
18707if ac_fn_c_try_compile "$LINENO"; then :
18708 # It does; now see whether it defined to _BIG_ENDIAN or not.
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710/* end confdefs.h. */
18711#include <limits.h>
18712
18713int
18714main ()
18715{
18716#ifndef _BIG_ENDIAN
18717 not big endian
18718 #endif
18719
18720 ;
18721 return 0;
18722}
18723_ACEOF
18724if ac_fn_c_try_compile "$LINENO"; then :
18725 ac_cv_c_bigendian=yes
18726else
18727 ac_cv_c_bigendian=no
18728fi
18729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18730fi
18731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18732 fi
18733 if test $ac_cv_c_bigendian = unknown; then
18734 # Compile a test program.
18735 if test "$cross_compiling" = yes; then :
18736 # Try to guess by grepping values from an object file.
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738/* end confdefs.h. */
18739short int ascii_mm[] =
18740 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18741 short int ascii_ii[] =
18742 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18743 int use_ascii (int i) {
18744 return ascii_mm[i] + ascii_ii[i];
18745 }
18746 short int ebcdic_ii[] =
18747 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18748 short int ebcdic_mm[] =
18749 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18750 int use_ebcdic (int i) {
18751 return ebcdic_mm[i] + ebcdic_ii[i];
18752 }
18753 extern int foo;
18754
18755int
18756main ()
18757{
18758return use_ascii (foo) == use_ebcdic (foo);
18759 ;
18760 return 0;
18761}
18762_ACEOF
18763if ac_fn_c_try_compile "$LINENO"; then :
18764 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18765 ac_cv_c_bigendian=yes
18766 fi
18767 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18768 if test "$ac_cv_c_bigendian" = unknown; then
18769 ac_cv_c_bigendian=no
18770 else
18771 # finding both strings is unlikely to happen, but who knows?
18772 ac_cv_c_bigendian=unknown
18773 fi
18774 fi
18775fi
18776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18777else
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779/* end confdefs.h. */
18780$ac_includes_default
18781int
18782main ()
18783{
18784
18785 /* Are we little or big endian? From Harbison&Steele. */
18786 union
18787 {
18788 long int l;
18789 char c[sizeof (long int)];
18790 } u;
18791 u.l = 1;
18792 return u.c[sizeof (long int) - 1] == 1;
18793
18794 ;
18795 return 0;
18796}
18797_ACEOF
18798if ac_fn_c_try_run "$LINENO"; then :
18799 ac_cv_c_bigendian=no
18800else
18801 ac_cv_c_bigendian=yes
18802fi
18803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18804 conftest.$ac_objext conftest.beam conftest.$ac_ext
18805fi
18806
18807 fi
18808fi
18809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18810$as_echo "$ac_cv_c_bigendian" >&6; }
18811 case $ac_cv_c_bigendian in #(
18812 yes)
18813 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18814;; #(
18815 no)
18816 ;; #(
18817 universal)
18818
18819$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18820
18821 ;; #(
18822 *)
18823 as_fn_error $? "unknown endianness
18824 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18825 esac
18826
18827 case $ac_cv_prog_cc_stdc in #(
18828 no) :
18829 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
18830 *) :
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
18832$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
18833if test "${ac_cv_prog_cc_c99+set}" = set; then :
18834 $as_echo_n "(cached) " >&6
18835else
18836 ac_cv_prog_cc_c99=no
18837ac_save_CC=$CC
18838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18839/* end confdefs.h. */
18840#include <stdarg.h>
18841#include <stdbool.h>
18842#include <stdlib.h>
18843#include <wchar.h>
18844#include <stdio.h>
18845
18846// Check varargs macros. These examples are taken from C99 6.10.3.5.
18847#define debug(...) fprintf (stderr, __VA_ARGS__)
18848#define showlist(...) puts (#__VA_ARGS__)
18849#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
18850static void
18851test_varargs_macros (void)
18852{
18853 int x = 1234;
18854 int y = 5678;
18855 debug ("Flag");
18856 debug ("X = %d\n", x);
18857 showlist (The first, second, and third items.);
18858 report (x>y, "x is %d but y is %d", x, y);
18859}
18860
18861// Check long long types.
18862#define BIG64 18446744073709551615ull
18863#define BIG32 4294967295ul
18864#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
18865#if !BIG_OK
18866 your preprocessor is broken;
18867#endif
18868#if BIG_OK
18869#else
18870 your preprocessor is broken;
18871#endif
18872static long long int bignum = -9223372036854775807LL;
18873static unsigned long long int ubignum = BIG64;
18874
18875struct incomplete_array
18876{
18877 int datasize;
18878 double data[];
18879};
18880
18881struct named_init {
18882 int number;
18883 const wchar_t *name;
18884 double average;
18885};
18886
18887typedef const char *ccp;
18888
18889static inline int
18890test_restrict (ccp restrict text)
18891{
18892 // See if C++-style comments work.
18893 // Iterate through items via the restricted pointer.
18894 // Also check for declarations in for loops.
18895 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
18896 continue;
18897 return 0;
18898}
18899
18900// Check varargs and va_copy.
18901static void
18902test_varargs (const char *format, ...)
18903{
18904 va_list args;
18905 va_start (args, format);
18906 va_list args_copy;
18907 va_copy (args_copy, args);
18908
18909 const char *str;
18910 int number;
18911 float fnumber;
18912
18913 while (*format)
18914 {
18915 switch (*format++)
18916 {
18917 case 's': // string
18918 str = va_arg (args_copy, const char *);
18919 break;
18920 case 'd': // int
18921 number = va_arg (args_copy, int);
18922 break;
18923 case 'f': // float
18924 fnumber = va_arg (args_copy, double);
18925 break;
18926 default:
18927 break;
18928 }
18929 }
18930 va_end (args_copy);
18931 va_end (args);
18932}
18933
18934int
18935main ()
18936{
18937
18938 // Check bool.
18939 _Bool success = false;
18940
18941 // Check restrict.
18942 if (test_restrict ("String literal") == 0)
18943 success = true;
18944 char *restrict newvar = "Another string";
18945
18946 // Check varargs.
18947 test_varargs ("s, d' f .", "string", 65, 34.234);
18948 test_varargs_macros ();
18949
18950 // Check flexible array members.
18951 struct incomplete_array *ia =
18952 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
18953 ia->datasize = 10;
18954 for (int i = 0; i < ia->datasize; ++i)
18955 ia->data[i] = i * 1.234;
18956
18957 // Check named initializers.
18958 struct named_init ni = {
18959 .number = 34,
18960 .name = L"Test wide string",
18961 .average = 543.34343,
18962 };
18963
18964 ni.number = 58;
18965
18966 int dynamic_array[ni.number];
18967 dynamic_array[ni.number - 1] = 543;
18968
18969 // work around unused variable warnings
18970 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
18971 || dynamic_array[ni.number - 1] != 543);
18972
18973 ;
18974 return 0;
18975}
18976_ACEOF
18977for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
18978do
18979 CC="$ac_save_CC $ac_arg"
18980 if ac_fn_c_try_compile "$LINENO"; then :
18981 ac_cv_prog_cc_c99=$ac_arg
18982fi
18983rm -f core conftest.err conftest.$ac_objext
18984 test "x$ac_cv_prog_cc_c99" != "xno" && break
18985done
18986rm -f conftest.$ac_ext
18987CC=$ac_save_CC
18988
18989fi
18990# AC_CACHE_VAL
18991case "x$ac_cv_prog_cc_c99" in
18992 x)
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18994$as_echo "none needed" >&6; } ;;
18995 xno)
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18997$as_echo "unsupported" >&6; } ;;
18998 *)
18999 CC="$CC $ac_cv_prog_cc_c99"
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
19001$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
19002esac
19003if test "x$ac_cv_prog_cc_c99" != xno; then :
19004 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
19005else
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19007$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19008if test "${ac_cv_prog_cc_c89+set}" = set; then :
19009 $as_echo_n "(cached) " >&6
19010else
19011 ac_cv_prog_cc_c89=no
19012ac_save_CC=$CC
19013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014/* end confdefs.h. */
19015#include <stdarg.h>
19016#include <stdio.h>
19017#include <sys/types.h>
19018#include <sys/stat.h>
19019/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19020struct buf { int x; };
19021FILE * (*rcsopen) (struct buf *, struct stat *, int);
19022static char *e (p, i)
19023 char **p;
19024 int i;
19025{
19026 return p[i];
19027}
19028static char *f (char * (*g) (char **, int), char **p, ...)
19029{
19030 char *s;
19031 va_list v;
19032 va_start (v,p);
19033 s = g (p, va_arg (v,int));
19034 va_end (v);
19035 return s;
19036}
19037
19038/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19039 function prototypes and stuff, but not '\xHH' hex character constants.
19040 These don't provoke an error unfortunately, instead are silently treated
19041 as 'x'. The following induces an error, until -std is added to get
19042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19043 array size at least. It's necessary to write '\x00'==0 to get something
19044 that's true only with -std. */
19045int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19046
19047/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19048 inside strings and character constants. */
19049#define FOO(x) 'x'
19050int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19051
19052int test (int i, double x);
19053struct s1 {int (*f) (int a);};
19054struct s2 {int (*f) (double a);};
19055int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19056int argc;
19057char **argv;
19058int
19059main ()
19060{
19061return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19062 ;
19063 return 0;
19064}
19065_ACEOF
19066for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19068do
19069 CC="$ac_save_CC $ac_arg"
19070 if ac_fn_c_try_compile "$LINENO"; then :
19071 ac_cv_prog_cc_c89=$ac_arg
19072fi
19073rm -f core conftest.err conftest.$ac_objext
19074 test "x$ac_cv_prog_cc_c89" != "xno" && break
19075done
19076rm -f conftest.$ac_ext
19077CC=$ac_save_CC
19078
19079fi
19080# AC_CACHE_VAL
19081case "x$ac_cv_prog_cc_c89" in
19082 x)
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19084$as_echo "none needed" >&6; } ;;
19085 xno)
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19087$as_echo "unsupported" >&6; } ;;
19088 *)
19089 CC="$CC $ac_cv_prog_cc_c89"
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19091$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19092esac
19093if test "x$ac_cv_prog_cc_c89" != xno; then :
19094 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
19095else
19096 ac_cv_prog_cc_stdc=no
19097fi
19098
19099fi
19100 ;;
19101esac
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
19103$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
19104 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
19105 $as_echo_n "(cached) " >&6
19106fi
19107
19108 case $ac_cv_prog_cc_stdc in #(
19109 no) :
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19111$as_echo "unsupported" >&6; } ;; #(
19112 '') :
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19114$as_echo "none needed" >&6; } ;; #(
19115 *) :
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
19117$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
19118esac
19119
19120
19121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((unused))" >&5
19122$as_echo_n "checking for __attribute__ ((unused))... " >&6; }
19123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124/* end confdefs.h. */
19125
19126void foo(int x __attribute__ ((unused))) {}
19127
19128int
19129main ()
19130{
19131
19132
19133 ;
19134 return 0;
19135}
19136_ACEOF
19137if ac_fn_c_try_compile "$LINENO"; then :
19138 have_attribute_unused="yes"
19139else
19140 have_attribute_unused="no"
19141fi
19142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_unused}" >&5
19144$as_echo "${have_attribute_unused}" >&6; }
19145
19146if test "x${have_attribute_unused}" = "xyes" ; then
19147
19148$as_echo "#define __UNUSED__ __attribute__ ((unused))" >>confdefs.h
19149
19150else
19151
19152$as_echo "#define __UNUSED__ /**/" >>confdefs.h
19153
19154fi
19155
19156
19157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((vector))" >&5
19158$as_echo_n "checking for __attribute__ ((vector))... " >&6; }
19159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19160/* end confdefs.h. */
19161
19162typedef int v4si __attribute__ ((vector_size (16)));
19163
19164int
19165main ()
19166{
19167
19168if (sizeof(v4si) == 16)
19169 return 0;
19170else
19171 return -1;
19172
19173 ;
19174 return 0;
19175}
19176_ACEOF
19177if ac_fn_c_try_compile "$LINENO"; then :
19178 have_attribute_vector="yes"
19179else
19180 have_attribute_vector="no"
19181fi
19182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_vector}" >&5
19184$as_echo "${have_attribute_vector}" >&6; }
19185
19186if test "x${have_attribute_vector}" = "xyes" ; then
19187
19188$as_echo "#define HAVE_GCC_ATTRIBUTE_VECTOR 1" >>confdefs.h
19189
19190fi
19191
19192
19193
19194have_attribute_forceinline="no"
19195
19196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __forceinline" >&5
19197$as_echo_n "checking for __forceinline... " >&6; }
19198
19199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200/* end confdefs.h. */
19201
19202#include <windows.h>
19203__forceinline void foo(void) {}
19204
19205int
19206main ()
19207{
19208
19209
19210 ;
19211 return 0;
19212}
19213_ACEOF
19214if ac_fn_c_try_compile "$LINENO"; then :
19215
19216 have_attribute_always_inline="yes"
19217 have_attribute_forceinline="yes"
19218
19219else
19220 have_attribute_always_inline="no"
19221fi
19222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223
19224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_always_inline}" >&5
19225$as_echo "${have_attribute_always_inline}" >&6; }
19226
19227if test "x${have_attribute_always_inline}" = "xno" ; then
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__always_inline__))" >&5
19229$as_echo_n "checking for __attribute__ ((__always_inline__))... " >&6; }
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231/* end confdefs.h. */
19232
19233__attribute__((__always_inline__)) inline void foo(void) {}
19234
19235int
19236main ()
19237{
19238
19239
19240 ;
19241 return 0;
19242}
19243_ACEOF
19244if ac_fn_c_try_compile "$LINENO"; then :
19245 have_attribute_always_inline="yes"
19246else
19247 have_attribute_always_inline="no"
19248fi
19249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_attribute_always_inline}" >&5
19251$as_echo "${have_attribute_always_inline}" >&6; }
19252fi
19253
19254if test "x${have_attribute_always_inline}" = "xyes" ; then
19255 if test "x${have_attribute_forceinline}" = "xyes" ; then
19256
19257$as_echo "#define EFL_ALWAYS_INLINE __forceinline" >>confdefs.h
19258
19259 else
19260
19261$as_echo "#define EFL_ALWAYS_INLINE __attribute__ ((__always_inline__)) inline" >>confdefs.h
19262
19263 fi
19264else
19265
19266$as_echo "#define EFL_ALWAYS_INLINE static inline" >>confdefs.h
19267
19268fi
19269
19270
19271WIN32_CPPFLAGS=""
19272case "$host_os" in
19273 mingw32ce*)
19274 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
19275 ;;
19276 mingw*)
19277 WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0500"
19278 ;;
19279esac
19280
19281
19282WIN32_CFLAGS=""
19283
19284
19285
19286### Checks for linker characteristics
19287lt_enable_auto_import=""
19288case "${host_os}" in
19289 mingw*)
19290
19291$as_echo "#define EFL_EVAS_BUILD 1" >>confdefs.h
19292
19293 lt_enable_auto_import="-Wl,--enable-auto-import"
19294 ;;
19295esac
19296
19297
19298
19299### Checks for library functions
19300
19301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
19302$as_echo_n "checking for library containing strerror... " >&6; }
19303if test "${ac_cv_search_strerror+set}" = set; then :
19304 $as_echo_n "(cached) " >&6
19305else
19306 ac_func_search_save_LIBS=$LIBS
19307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308/* end confdefs.h. */
19309
19310/* Override any GCC internal prototype to avoid an error.
19311 Use char because int might match the return type of a GCC
19312 builtin and then its argument prototype would still apply. */
19313#ifdef __cplusplus
19314extern "C"
19315#endif
19316char strerror ();
19317int
19318main ()
19319{
19320return strerror ();
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325for ac_lib in '' cposix; do
19326 if test -z "$ac_lib"; then
19327 ac_res="none required"
19328 else
19329 ac_res=-l$ac_lib
19330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19331 fi
19332 if ac_fn_c_try_link "$LINENO"; then :
19333 ac_cv_search_strerror=$ac_res
19334fi
19335rm -f core conftest.err conftest.$ac_objext \
19336 conftest$ac_exeext
19337 if test "${ac_cv_search_strerror+set}" = set; then :
19338 break
19339fi
19340done
19341if test "${ac_cv_search_strerror+set}" = set; then :
19342
19343else
19344 ac_cv_search_strerror=no
19345fi
19346rm conftest.$ac_ext
19347LIBS=$ac_func_search_save_LIBS
19348fi
19349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
19350$as_echo "$ac_cv_search_strerror" >&6; }
19351ac_res=$ac_cv_search_strerror
19352if test "$ac_res" != no; then :
19353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19354
19355fi
19356
19357for ac_func in siglongjmp
19358do :
19359 ac_fn_c_check_func "$LINENO" "siglongjmp" "ac_cv_func_siglongjmp"
19360if test "x$ac_cv_func_siglongjmp" = x""yes; then :
19361 cat >>confdefs.h <<_ACEOF
19362#define HAVE_SIGLONGJMP 1
19363_ACEOF
19364
19365fi
19366done
19367
19368
19369# alloca
19370# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19371# for constant arguments. Useless!
19372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19373$as_echo_n "checking for working alloca.h... " >&6; }
19374if test "${ac_cv_working_alloca_h+set}" = set; then :
19375 $as_echo_n "(cached) " >&6
19376else
19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378/* end confdefs.h. */
19379#include <alloca.h>
19380int
19381main ()
19382{
19383char *p = (char *) alloca (2 * sizeof (int));
19384 if (p) return 0;
19385 ;
19386 return 0;
19387}
19388_ACEOF
19389if ac_fn_c_try_link "$LINENO"; then :
19390 ac_cv_working_alloca_h=yes
19391else
19392 ac_cv_working_alloca_h=no
19393fi
19394rm -f core conftest.err conftest.$ac_objext \
19395 conftest$ac_exeext conftest.$ac_ext
19396fi
19397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19398$as_echo "$ac_cv_working_alloca_h" >&6; }
19399if test $ac_cv_working_alloca_h = yes; then
19400
19401$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19402
19403fi
19404
19405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19406$as_echo_n "checking for alloca... " >&6; }
19407if test "${ac_cv_func_alloca_works+set}" = set; then :
19408 $as_echo_n "(cached) " >&6
19409else
19410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411/* end confdefs.h. */
19412#ifdef __GNUC__
19413# define alloca __builtin_alloca
19414#else
19415# ifdef _MSC_VER
19416# include <malloc.h>
19417# define alloca _alloca
19418# else
19419# ifdef HAVE_ALLOCA_H
19420# include <alloca.h>
19421# else
19422# ifdef _AIX
19423 #pragma alloca
19424# else
19425# ifndef alloca /* predefined by HP cc +Olibcalls */
19426char *alloca ();
19427# endif
19428# endif
19429# endif
19430# endif
19431#endif
19432
19433int
19434main ()
19435{
19436char *p = (char *) alloca (1);
19437 if (p) return 0;
19438 ;
19439 return 0;
19440}
19441_ACEOF
19442if ac_fn_c_try_link "$LINENO"; then :
19443 ac_cv_func_alloca_works=yes
19444else
19445 ac_cv_func_alloca_works=no
19446fi
19447rm -f core conftest.err conftest.$ac_objext \
19448 conftest$ac_exeext conftest.$ac_ext
19449fi
19450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19451$as_echo "$ac_cv_func_alloca_works" >&6; }
19452
19453if test $ac_cv_func_alloca_works = yes; then
19454
19455$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19456
19457else
19458 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19459# that cause trouble. Some versions do not even contain alloca or
19460# contain a buggy version. If you still want to use their alloca,
19461# use ar to extract alloca.o from them instead of compiling alloca.c.
19462
19463ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19464
19465$as_echo "#define C_ALLOCA 1" >>confdefs.h
19466
19467
19468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19469$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19470if test "${ac_cv_os_cray+set}" = set; then :
19471 $as_echo_n "(cached) " >&6
19472else
19473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474/* end confdefs.h. */
19475#if defined CRAY && ! defined CRAY2
19476webecray
19477#else
19478wenotbecray
19479#endif
19480
19481_ACEOF
19482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19483 $EGREP "webecray" >/dev/null 2>&1; then :
19484 ac_cv_os_cray=yes
19485else
19486 ac_cv_os_cray=no
19487fi
19488rm -f conftest*
19489
19490fi
19491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19492$as_echo "$ac_cv_os_cray" >&6; }
19493if test $ac_cv_os_cray = yes; then
19494 for ac_func in _getb67 GETB67 getb67; do
19495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19496ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19497if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19498
19499cat >>confdefs.h <<_ACEOF
19500#define CRAY_STACKSEG_END $ac_func
19501_ACEOF
19502
19503 break
19504fi
19505
19506 done
19507fi
19508
19509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19510$as_echo_n "checking stack direction for C alloca... " >&6; }
19511if test "${ac_cv_c_stack_direction+set}" = set; then :
19512 $as_echo_n "(cached) " >&6
19513else
19514 if test "$cross_compiling" = yes; then :
19515 ac_cv_c_stack_direction=0
19516else
19517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518/* end confdefs.h. */
19519$ac_includes_default
19520int
19521find_stack_direction ()
19522{
19523 static char *addr = 0;
19524 auto char dummy;
19525 if (addr == 0)
19526 {
19527 addr = &dummy;
19528 return find_stack_direction ();
19529 }
19530 else
19531 return (&dummy > addr) ? 1 : -1;
19532}
19533
19534int
19535main ()
19536{
19537 return find_stack_direction () < 0;
19538}
19539_ACEOF
19540if ac_fn_c_try_run "$LINENO"; then :
19541 ac_cv_c_stack_direction=1
19542else
19543 ac_cv_c_stack_direction=-1
19544fi
19545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19546 conftest.$ac_objext conftest.beam conftest.$ac_ext
19547fi
19548
19549fi
19550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19551$as_echo "$ac_cv_c_stack_direction" >&6; }
19552cat >>confdefs.h <<_ACEOF
19553#define STACK_DIRECTION $ac_cv_c_stack_direction
19554_ACEOF
19555
19556
19557fi
19558
19559
19560# fnmatch
19561
19562
19563ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
19564if test "x$ac_cv_header_fnmatch_h" = x""yes; then :
19565 _efl_have_fnmatch="yes"
19566else
19567 _efl_have_fnmatch="no"
19568fi
19569
19570
19571
19572if test "x${_efl_have_fnmatch}" = "xyes" ; then
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5
19574$as_echo_n "checking for library containing fnmatch... " >&6; }
19575if test "${ac_cv_search_fnmatch+set}" = set; then :
19576 $as_echo_n "(cached) " >&6
19577else
19578 ac_func_search_save_LIBS=$LIBS
19579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580/* end confdefs.h. */
19581
19582/* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
19585#ifdef __cplusplus
19586extern "C"
19587#endif
19588char fnmatch ();
19589int
19590main ()
19591{
19592return fnmatch ();
19593 ;
19594 return 0;
19595}
19596_ACEOF
19597for ac_lib in '' fnmatch evil iberty; do
19598 if test -z "$ac_lib"; then
19599 ac_res="none required"
19600 else
19601 ac_res=-l$ac_lib
19602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19603 fi
19604 if ac_fn_c_try_link "$LINENO"; then :
19605 ac_cv_search_fnmatch=$ac_res
19606fi
19607rm -f core conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext
19609 if test "${ac_cv_search_fnmatch+set}" = set; then :
19610 break
19611fi
19612done
19613if test "${ac_cv_search_fnmatch+set}" = set; then :
19614
19615else
19616 ac_cv_search_fnmatch=no
19617fi
19618rm conftest.$ac_ext
19619LIBS=$ac_func_search_save_LIBS
19620fi
19621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5
19622$as_echo "$ac_cv_search_fnmatch" >&6; }
19623ac_res=$ac_cv_search_fnmatch
19624if test "$ac_res" != no; then :
19625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19626 _efl_have_fnmatch="yes"
19627else
19628 _efl_have_fnmatch="no"
19629fi
19630
19631fi
19632
19633EFL_FNMATCH_LIBS=""
19634
19635if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then
19636 EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch}
19637fi
19638
19639
19640
19641if test "x$_efl_have_fnmatch" = "xyes"; then :
19642
19643else
19644 as_fn_error $? "Cannot find fnmatch()" "$LINENO" 5
19645fi
19646
19647
19648
19649# dlopen
19650dlopen_libs=""
19651case "$host_os" in
19652 mingw32ce*)
19653# managed by evil
19654 $as_echo "#define HAVE_DLSYM 1" >>confdefs.h
19655
19656 ;;
19657 mingw*)
19658# nothing on mingw platform
19659 ;;
19660 *)
19661 for ac_func in dlsym
19662do :
19663 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
19664if test "x$ac_cv_func_dlsym" = x""yes; then :
19665 cat >>confdefs.h <<_ACEOF
19666#define HAVE_DLSYM 1
19667_ACEOF
19668 res=yes
19669else
19670 res=no
19671fi
19672done
19673
19674 if test "x$res" = "xyes"; then
19675 $as_echo "#define HAVE_DLSYM 1" >>confdefs.h
19676
19677 else
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
19679$as_echo_n "checking for dlsym in -ldl... " >&6; }
19680if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
19681 $as_echo_n "(cached) " >&6
19682else
19683 ac_check_lib_save_LIBS=$LIBS
19684LIBS="-ldl $LIBS"
19685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686/* end confdefs.h. */
19687
19688/* Override any GCC internal prototype to avoid an error.
19689 Use char because int might match the return type of a GCC
19690 builtin and then its argument prototype would still apply. */
19691#ifdef __cplusplus
19692extern "C"
19693#endif
19694char dlsym ();
19695int
19696main ()
19697{
19698return dlsym ();
19699 ;
19700 return 0;
19701}
19702_ACEOF
19703if ac_fn_c_try_link "$LINENO"; then :
19704 ac_cv_lib_dl_dlsym=yes
19705else
19706 ac_cv_lib_dl_dlsym=no
19707fi
19708rm -f core conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
19710LIBS=$ac_check_lib_save_LIBS
19711fi
19712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
19713$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
19714if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
19715 res=yes
19716else
19717 res=no
19718fi
19719
19720 if test "x$res" = "xyes"; then
19721 dlopen_libs=-ldl
19722 $as_echo "#define HAVE_DLSYM 1" >>confdefs.h
19723
19724 else
19725 want_evas_engine_gl_xlib="no"
19726 want_evas_engine_gl_xcb="no"
19727 want_evas_engine_gl_sdl="no"
19728 fi
19729 fi
19730esac
19731
19732
19733res=no
19734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround in -lm" >&5
19735$as_echo_n "checking for lround in -lm... " >&6; }
19736if test "${ac_cv_lib_m_lround+set}" = set; then :
19737 $as_echo_n "(cached) " >&6
19738else
19739 ac_check_lib_save_LIBS=$LIBS
19740LIBS="-lm $LIBS"
19741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19742/* end confdefs.h. */
19743
19744/* Override any GCC internal prototype to avoid an error.
19745 Use char because int might match the return type of a GCC
19746 builtin and then its argument prototype would still apply. */
19747#ifdef __cplusplus
19748extern "C"
19749#endif
19750char lround ();
19751int
19752main ()
19753{
19754return lround ();
19755 ;
19756 return 0;
19757}
19758_ACEOF
19759if ac_fn_c_try_link "$LINENO"; then :
19760 ac_cv_lib_m_lround=yes
19761else
19762 ac_cv_lib_m_lround=no
19763fi
19764rm -f core conftest.err conftest.$ac_objext \
19765 conftest$ac_exeext conftest.$ac_ext
19766LIBS=$ac_check_lib_save_LIBS
19767fi
19768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lround" >&5
19769$as_echo "$ac_cv_lib_m_lround" >&6; }
19770if test "x$ac_cv_lib_m_lround" = x""yes; then :
19771 res=yes
19772else
19773 res=no
19774fi
19775
19776if test "x$res" = "xyes"; then
19777
19778$as_echo "#define HAVE_LROUND 1" >>confdefs.h
19779
19780fi
19781
19782SHM_OPEN_LINK=""
19783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shm_open() is present" >&5
19784$as_echo_n "checking whether shm_open() is present... " >&6; }
19785LIBS_save=${LIBS}
19786LIBS="${LIBS} -lrt"
19787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19788/* end confdefs.h. */
19789
19790#include <sys/stat.h>
19791#include <sys/mman.h>
19792#include <fcntl.h>
19793
19794int
19795main ()
19796{
19797
19798int fd;
19799fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
19800shm_unlink("/");
19801
19802 ;
19803 return 0;
19804}
19805_ACEOF
19806if ac_fn_c_try_link "$LINENO"; then :
19807
19808 have_shm_open="yes"
19809
19810$as_echo "#define HAVE_SHM_OPEN 1" >>confdefs.h
19811
19812 SHM_OPEN_LINK="-lrt"
19813
19814else
19815 have_shm_open="no"
19816fi
19817rm -f core conftest.err conftest.$ac_objext \
19818 conftest$ac_exeext conftest.$ac_ext
19819LIBS=${LIBS_save}
19820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_shm_open}" >&5
19821$as_echo "${have_shm_open}" >&6; }
19822
19823
19824# (shm_open (for cache server)
19825# Check whether --enable-evas-cserve was given.
19826if test "${enable_evas_cserve+set}" = set; then :
19827 enableval=$enable_evas_cserve;
19828 if test "x${enableval}" = "xyes" ; then
19829 want_evas_cserve="yes"
19830 else
19831 want_evas_cserve="no"
19832 fi
19833
19834fi
19835
19836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared cache server and support" >&5
19837$as_echo_n "checking whether to build shared cache server and support... " >&6; }
19838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_evas_cserve}" >&5
19839$as_echo "${want_evas_cserve}" >&6; }
19840
19841if test "x${want_evas_cserve}" = "xyes" ; then
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shm_open() is present" >&5
19843$as_echo_n "checking whether shm_open() is present... " >&6; }
19844 LIBS_save=${LIBS}
19845 LIBS="${LIBS} -lrt"
19846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19847/* end confdefs.h. */
19848
19849#include <sys/types.h>
19850#include <sys/mman.h>
19851#include <fcntl.h>
19852
19853int
19854main ()
19855{
19856
19857int fd;
19858fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
19859shm_unlink("/");
19860
19861 ;
19862 return 0;
19863}
19864_ACEOF
19865if ac_fn_c_try_link "$LINENO"; then :
19866 want_evas_cserve="yes"
19867else
19868 want_evas_cserve="no"
19869fi
19870rm -f core conftest.err conftest.$ac_objext \
19871 conftest$ac_exeext conftest.$ac_ext
19872 LIBS=${LIBS_save}
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_evas_cserve}" >&5
19874$as_echo "${want_evas_cserve}" >&6; }
19875fi
19876
19877if test "x${want_evas_cserve}" = "xyes" ; then
19878
19879$as_echo "#define EVAS_CSERVE 1" >>confdefs.h
19880
19881fi
19882
19883 if test "x${want_evas_cserve}" = "xyes"; then
19884 EVAS_CSERVE_TRUE=
19885 EVAS_CSERVE_FALSE='#'
19886else
19887 EVAS_CSERVE_TRUE='#'
19888 EVAS_CSERVE_FALSE=
19889fi
19890
19891
19892
19893
19894#######################################
19895## GL force flavor gles
19896gl_flavor_gles="no"
19897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GLES flavor of GL" >&5
19898$as_echo_n "checking whether to build GLES flavor of GL... " >&6; }
19899# Check whether --enable-gl-flavor-gles was given.
19900if test "${enable_gl_flavor_gles+set}" = set; then :
19901 enableval=$enable_gl_flavor_gles;
19902 if test "x$enableval" = "xyes" ; then
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19904$as_echo "yes" >&6; }
19905 gl_flavor_gles="yes"
19906 else
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19908$as_echo "no" >&6; }
19909 gl_flavor_gles="no"
19910 fi
19911
19912else
19913
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19915$as_echo "no" >&6; }
19916 gl_flavor_gles="no"
19917
19918
19919fi
19920
19921
19922#######################################
19923## GLES variety sgx
19924gles_variety_sgx="no"
19925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GLES variety for SGX" >&5
19926$as_echo_n "checking whether to build GLES variety for SGX... " >&6; }
19927# Check whether --enable-gles-variety-sgx was given.
19928if test "${enable_gles_variety_sgx+set}" = set; then :
19929 enableval=$enable_gles_variety_sgx;
19930 if test "x$enableval" = "xyes" ; then
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19932$as_echo "yes" >&6; }
19933
19934$as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h
19935
19936 gles_variety_sgx="yes"
19937 else
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19939$as_echo "no" >&6; }
19940 gles_variety_sgx="no"
19941 fi
19942
19943else
19944
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19946$as_echo "no" >&6; }
19947 gles_variety_sgx="no"
19948
19949
19950fi
19951
19952
19953#######################################
19954## GLES variety s3c6410
19955gles_variety_s3c6410="no"
19956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build GLES variety for s3c6410" >&5
19957$as_echo_n "checking whether to build GLES variety for s3c6410... " >&6; }
19958# Check whether --enable-gles-variety-s3c6410 was given.
19959if test "${enable_gles_variety_s3c6410+set}" = set; then :
19960 enableval=$enable_gles_variety_s3c6410;
19961 if test "x$enableval" = "xyes" ; then
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19963$as_echo "yes" >&6; }
19964
19965$as_echo "#define GLES_VARIETY_S3C6410 1" >>confdefs.h
19966
19967 gles_variety_s3c6410="yes"
19968 else
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19970$as_echo "no" >&6; }
19971 gles_variety_s3c6410="no"
19972 fi
19973
19974else
19975
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19977$as_echo "no" >&6; }
19978 gles_variety_s3c6410="no"
19979
19980
19981fi
19982
19983
19984if test "x$gl_flavor_gles" = "xyes"; then
19985 eng=""
19986 if test "x$gles_variety_sgx" = "xyes"; then eng="x"$eng; fi
19987 if test "x$gles_variety_s3c6410" = "xyes"; then eng="x"$eng; fi
19988 if test "x$eng" = "xx"; then
19989 eng=""
19990 else
19991 as_fn_error $? "Please enable just 1 OpenGL-ES flavor. Choices are:
19992 --enable-gles-variety-sgx (Most GL-ES2 GPUs with shader compiler)
19993 --enable-gles-variety-s3c6410 (s3c6410 with offline shader compiler)
19994 You will also need to enable the OpenGL engine for X11 with:
19995 --enable-gl-xlib or --enable-gl-xcb
19996 " "$LINENO" 5
19997 fi
19998fi
19999
20000#####################################################################
20001## Engines
20002
20003
20004
20005
20006want_engine="${want_evas_engine_buffer}"
20007want_static_engine="no"
20008have_engine="no"
20009have_evas_engine_buffer="no"
20010
20011# Check whether --enable-buffer was given.
20012if test "${enable_buffer+set}" = set; then :
20013 enableval=$enable_buffer;
20014 if test "x${enableval}" = "xyes" ; then
20015 want_engine="yes"
20016 else
20017 if test "x${enableval}" = "xstatic" ; then
20018 want_engine="static"
20019 else
20020 want_engine="no"
20021 fi
20022 fi
20023
20024fi
20025
20026
20027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Buffer rendering backend" >&5
20028$as_echo_n "checking whether to enable Buffer rendering backend... " >&6; }
20029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
20030$as_echo "${want_engine}" >&6; }
20031
20032if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
20033
20034
20035have_dep="yes"
20036evas_engine_buffer_cflags=""
20037evas_engine_buffer_libs=""
20038
20039
20040
20041
20042if test "x${have_dep}" = "xyes" ; then
20043 have_engine="yes"
20044else
20045 have_engine="no"
20046fi
20047
20048
20049fi
20050
20051if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
20052 as_fn_error $? "Buffer dependencies not found (strict dependencies checking)" "$LINENO" 5
20053fi
20054
20055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Buffer rendering backend will be built" >&5
20056$as_echo_n "checking whether Buffer rendering backend will be built... " >&6; }
20057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
20058$as_echo "${have_engine}" >&6; }
20059
20060if test "x${have_engine}" = "xyes" ; then
20061 if test "x${want_engine}" = "xstatic" ; then
20062 have_evas_engine_buffer="static"
20063 want_static_engine="yes"
20064 else
20065 have_evas_engine_buffer="yes"
20066 fi
20067fi
20068
20069if test "x${have_engine}" = "xyes" ; then
20070
20071$as_echo "#define BUILD_ENGINE_BUFFER 1" >>confdefs.h
20072
20073fi
20074
20075 if test "x${have_engine}" = "xyes"; then
20076 BUILD_ENGINE_BUFFER_TRUE=
20077 BUILD_ENGINE_BUFFER_FALSE='#'
20078else
20079 BUILD_ENGINE_BUFFER_TRUE='#'
20080 BUILD_ENGINE_BUFFER_FALSE=
20081fi
20082
20083
20084if test "x${want_static_engine}" = "xyes" ; then
20085
20086$as_echo "#define EVAS_STATIC_BUILD_BUFFER 1" >>confdefs.h
20087
20088 have_static_module="yes"
20089fi
20090
20091 if test "x${want_static_engine}" = "xyes"; then
20092 EVAS_STATIC_BUILD_BUFFER_TRUE=
20093 EVAS_STATIC_BUILD_BUFFER_FALSE='#'
20094else
20095 EVAS_STATIC_BUILD_BUFFER_TRUE='#'
20096 EVAS_STATIC_BUILD_BUFFER_FALSE=
20097fi
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108want_engine="${want_evas_engine_software_gdi}"
20109want_static_engine="no"
20110have_engine="no"
20111have_evas_engine_software_gdi="no"
20112
20113# Check whether --enable-software-gdi was given.
20114if test "${enable_software_gdi+set}" = set; then :
20115 enableval=$enable_software_gdi;
20116 if test "x${enableval}" = "xyes" ; then
20117 want_engine="yes"
20118 else
20119 if test "x${enableval}" = "xstatic" ; then
20120 want_engine="static"
20121 else
20122 want_engine="no"
20123 fi
20124 fi
20125
20126fi
20127
20128
20129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software GDI rendering backend" >&5
20130$as_echo_n "checking whether to enable Software GDI rendering backend... " >&6; }
20131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
20132$as_echo "${want_engine}" >&6; }
20133
20134if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
20135
20136
20137have_dep="no"
20138evas_engine_software_gdi_cflags=""
20139evas_engine_software_gdi_libs=""
20140
20141ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
20142if test "x$ac_cv_header_windows_h" = x""yes; then :
20143
20144 have_dep="yes"
20145 evas_engine_software_gdi_libs="-lgdi32"
20146
20147
20148fi
20149
20150
20151
20152
20153
20154
20155if test "x${have_dep}" = "xyes" ; then
20156 have_engine="yes"
20157else
20158 have_engine="no"
20159fi
20160
20161
20162fi
20163
20164if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
20165 as_fn_error $? "Software GDI dependencies not found (strict dependencies checking)" "$LINENO" 5
20166fi
20167
20168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software GDI rendering backend will be built" >&5
20169$as_echo_n "checking whether Software GDI rendering backend will be built... " >&6; }
20170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
20171$as_echo "${have_engine}" >&6; }
20172
20173if test "x${have_engine}" = "xyes" ; then
20174 if test "x${want_engine}" = "xstatic" ; then
20175 have_evas_engine_software_gdi="static"
20176 want_static_engine="yes"
20177 else
20178 have_evas_engine_software_gdi="yes"
20179 fi
20180fi
20181
20182if test "x${have_engine}" = "xyes" ; then
20183
20184$as_echo "#define BUILD_ENGINE_SOFTWARE_GDI 1" >>confdefs.h
20185
20186fi
20187
20188 if test "x${have_engine}" = "xyes"; then
20189 BUILD_ENGINE_SOFTWARE_GDI_TRUE=
20190 BUILD_ENGINE_SOFTWARE_GDI_FALSE='#'
20191else
20192 BUILD_ENGINE_SOFTWARE_GDI_TRUE='#'
20193 BUILD_ENGINE_SOFTWARE_GDI_FALSE=
20194fi
20195
20196
20197if test "x${want_static_engine}" = "xyes" ; then
20198
20199$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_GDI 1" >>confdefs.h
20200
20201 have_static_module="yes"
20202fi
20203
20204 if test "x${want_static_engine}" = "xyes"; then
20205 EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE=
20206 EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE='#'
20207else
20208 EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE='#'
20209 EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE=
20210fi
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221want_engine="${want_evas_engine_software_ddraw}"
20222want_static_engine="no"
20223have_engine="no"
20224have_evas_engine_software_ddraw="no"
20225
20226# Check whether --enable-software-ddraw was given.
20227if test "${enable_software_ddraw+set}" = set; then :
20228 enableval=$enable_software_ddraw;
20229 if test "x${enableval}" = "xyes" ; then
20230 want_engine="yes"
20231 else
20232 if test "x${enableval}" = "xstatic" ; then
20233 want_engine="static"
20234 else
20235 want_engine="no"
20236 fi
20237 fi
20238
20239fi
20240
20241
20242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software DirectDraw rendering backend" >&5
20243$as_echo_n "checking whether to enable Software DirectDraw rendering backend... " >&6; }
20244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
20245$as_echo "${want_engine}" >&6; }
20246
20247if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
20248
20249
20250have_dep="no"
20251evas_engine_software_ddraw_cflags=""
20252evas_engine_software_ddraw_libs=""
20253
20254ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
20255if test "x$ac_cv_header_ddraw_h" = x""yes; then :
20256
20257 have_dep="yes"
20258 evas_engine_software_ddraw_libs="-lddraw"
20259
20260
20261fi
20262
20263
20264
20265
20266
20267
20268if test "x${have_dep}" = "xyes" ; then
20269 have_engine="yes"
20270else
20271 have_engine="no"
20272fi
20273
20274
20275fi
20276
20277if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
20278 as_fn_error $? "Software DirectDraw dependencies not found (strict dependencies checking)" "$LINENO" 5
20279fi
20280
20281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software DirectDraw rendering backend will be built" >&5
20282$as_echo_n "checking whether Software DirectDraw rendering backend will be built... " >&6; }
20283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
20284$as_echo "${have_engine}" >&6; }
20285
20286if test "x${have_engine}" = "xyes" ; then
20287 if test "x${want_engine}" = "xstatic" ; then
20288 have_evas_engine_software_ddraw="static"
20289 want_static_engine="yes"
20290 else
20291 have_evas_engine_software_ddraw="yes"
20292 fi
20293fi
20294
20295if test "x${have_engine}" = "xyes" ; then
20296
20297$as_echo "#define BUILD_ENGINE_SOFTWARE_DDRAW 1" >>confdefs.h
20298
20299fi
20300
20301 if test "x${have_engine}" = "xyes"; then
20302 BUILD_ENGINE_SOFTWARE_DDRAW_TRUE=
20303 BUILD_ENGINE_SOFTWARE_DDRAW_FALSE='#'
20304else
20305 BUILD_ENGINE_SOFTWARE_DDRAW_TRUE='#'
20306 BUILD_ENGINE_SOFTWARE_DDRAW_FALSE=
20307fi
20308
20309
20310if test "x${want_static_engine}" = "xyes" ; then
20311
20312$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_DDRAW 1" >>confdefs.h
20313
20314 have_static_module="yes"
20315fi
20316
20317 if test "x${want_static_engine}" = "xyes"; then
20318 EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE=
20319 EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE='#'
20320else
20321 EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE='#'
20322 EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE=
20323fi
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334want_engine="${want_evas_engine_direct3d}"
20335want_static_engine="no"
20336have_engine="no"
20337have_evas_engine_direct3d="no"
20338
20339# Check whether --enable-direct3d was given.
20340if test "${enable_direct3d+set}" = set; then :
20341 enableval=$enable_direct3d;
20342 if test "x${enableval}" = "xyes" ; then
20343 want_engine="yes"
20344 else
20345 if test "x${enableval}" = "xstatic" ; then
20346 want_engine="static"
20347 else
20348 want_engine="no"
20349 fi
20350 fi
20351
20352fi
20353
20354
20355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Direct3D rendering backend" >&5
20356$as_echo_n "checking whether to enable Direct3D rendering backend... " >&6; }
20357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
20358$as_echo "${want_engine}" >&6; }
20359
20360if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
20361
20362
20363evas_engine_direct3d_cflags=""
20364evas_engine_direct3d_libs=""
20365
20366for ac_header in d3d9.h d3dx9.h
20367do :
20368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20369ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20370if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20371 cat >>confdefs.h <<_ACEOF
20372#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20373_ACEOF
20374
20375 have_dep="yes"
20376 evas_engine_direct3d_libs="-ld3d9 -ld3dx9 -lgdi32"
20377
20378else
20379 have_dep="no"; break
20380
20381fi
20382
20383done
20384
20385
20386
20387
20388
20389if test "x${have_dep}" = "xyes" ; then
20390 have_engine="yes"
20391else
20392 have_engine="no"
20393fi
20394
20395
20396fi
20397
20398if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
20399 as_fn_error $? "Direct3D dependencies not found (strict dependencies checking)" "$LINENO" 5
20400fi
20401
20402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Direct3D rendering backend will be built" >&5
20403$as_echo_n "checking whether Direct3D rendering backend will be built... " >&6; }
20404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
20405$as_echo "${have_engine}" >&6; }
20406
20407if test "x${have_engine}" = "xyes" ; then
20408 if test "x${want_engine}" = "xstatic" ; then
20409 have_evas_engine_direct3d="static"
20410 want_static_engine="yes"
20411 else
20412 have_evas_engine_direct3d="yes"
20413 fi
20414fi
20415
20416if test "x${have_engine}" = "xyes" ; then
20417
20418$as_echo "#define BUILD_ENGINE_DIRECT3D 1" >>confdefs.h
20419
20420fi
20421
20422 if test "x${have_engine}" = "xyes"; then
20423 BUILD_ENGINE_DIRECT3D_TRUE=
20424 BUILD_ENGINE_DIRECT3D_FALSE='#'
20425else
20426 BUILD_ENGINE_DIRECT3D_TRUE='#'
20427 BUILD_ENGINE_DIRECT3D_FALSE=
20428fi
20429
20430
20431if test "x${want_static_engine}" = "xyes" ; then
20432
20433$as_echo "#define EVAS_STATIC_BUILD_DIRECT3D 1" >>confdefs.h
20434
20435 have_static_module="yes"
20436fi
20437
20438 if test "x${want_static_engine}" = "xyes"; then
20439 EVAS_STATIC_BUILD_DIRECT3D_TRUE=
20440 EVAS_STATIC_BUILD_DIRECT3D_FALSE='#'
20441else
20442 EVAS_STATIC_BUILD_DIRECT3D_TRUE='#'
20443 EVAS_STATIC_BUILD_DIRECT3D_FALSE=
20444fi
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455want_engine="${want_evas_engine_software_sdl}"
20456want_static_engine="no"
20457have_engine="no"
20458have_evas_engine_software_sdl="no"
20459
20460# Check whether --enable-software-sdl was given.
20461if test "${enable_software_sdl+set}" = set; then :
20462 enableval=$enable_software_sdl;
20463 if test "x${enableval}" = "xyes" ; then
20464 want_engine="yes"
20465 else
20466 if test "x${enableval}" = "xstatic" ; then
20467 want_engine="static"
20468 else
20469 want_engine="no"
20470 fi
20471 fi
20472
20473fi
20474
20475
20476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software SDL rendering backend" >&5
20477$as_echo_n "checking whether to enable Software SDL rendering backend... " >&6; }
20478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
20479$as_echo "${want_engine}" >&6; }
20480
20481if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
20482
20483
20484requirement=""
20485have_dep="no"
20486evas_engine_software_sdl_cflags=""
20487evas_engine_software_sdl_libs=""
20488
20489
20490pkg_failed=no
20491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
20492$as_echo_n "checking for SDL... " >&6; }
20493
20494if test -n "$SDL_CFLAGS"; then
20495 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
20496 elif test -n "$PKG_CONFIG"; then
20497 if test -n "$PKG_CONFIG" && \
20498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
20499 ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
20500 ac_status=$?
20501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20502 test $ac_status = 0; }; then
20503 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null`
20504else
20505 pkg_failed=yes
20506fi
20507 else
20508 pkg_failed=untried
20509fi
20510if test -n "$SDL_LIBS"; then
20511 pkg_cv_SDL_LIBS="$SDL_LIBS"
20512 elif test -n "$PKG_CONFIG"; then
20513 if test -n "$PKG_CONFIG" && \
20514 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
20515 ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
20516 ac_status=$?
20517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20518 test $ac_status = 0; }; then
20519 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null`
20520else
20521 pkg_failed=yes
20522fi
20523 else
20524 pkg_failed=untried
20525fi
20526
20527
20528
20529if test $pkg_failed = yes; then
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20531$as_echo "no" >&6; }
20532
20533if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20534 _pkg_short_errors_supported=yes
20535else
20536 _pkg_short_errors_supported=no
20537fi
20538 if test $_pkg_short_errors_supported = yes; then
20539 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1`
20540 else
20541 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1`
20542 fi
20543 # Put the nasty error message in config.log where it belongs
20544 echo "$SDL_PKG_ERRORS" >&5
20545
20546 as_fn_error $? "Package requirements (sdl >= 1.2.0) were not met:
20547
20548$SDL_PKG_ERRORS
20549
20550Consider adjusting the PKG_CONFIG_PATH environment variable if you
20551installed software in a non-standard prefix.
20552
20553Alternatively, you may set the environment variables SDL_CFLAGS
20554and SDL_LIBS to avoid the need to call pkg-config.
20555See the pkg-config man page for more details." "$LINENO" 5
20556elif test $pkg_failed = untried; then
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20558$as_echo "no" >&6; }
20559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20561as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20562is in your PATH or set the PKG_CONFIG environment variable to the full
20563path to pkg-config.
20564
20565Alternatively, you may set the environment variables SDL_CFLAGS
20566and SDL_LIBS to avoid the need to call pkg-config.
20567See the pkg-config man page for more details.
20568
20569To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20570See \`config.log' for more details" "$LINENO" 5 ; }
20571else
20572 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
20573 SDL_LIBS=$pkg_cv_SDL_LIBS
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20575$as_echo "yes" >&6; }
20576
20577 have_dep="yes"
20578 requirement="sdl"
20579 evas_engine_software_sdl_cflags="${SDL_CFLAGS}"
20580 evas_engine_software_sdl_libs="${SDL_LIBS}"
20581
20582
20583fi
20584
20585
20586
20587
20588if test "x${want_engine}" = "xstatic" ; then
20589 requirement_evas="${requirement} ${requirement_evas}"
20590fi
20591
20592if test "x${have_dep}" = "xyes" ; then
20593 have_engine="yes"
20594else
20595 have_engine="no"
20596fi
20597
20598
20599fi
20600
20601if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
20602 as_fn_error $? "Software SDL dependencies not found (strict dependencies checking)" "$LINENO" 5
20603fi
20604
20605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software SDL rendering backend will be built" >&5
20606$as_echo_n "checking whether Software SDL rendering backend will be built... " >&6; }
20607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
20608$as_echo "${have_engine}" >&6; }
20609
20610if test "x${have_engine}" = "xyes" ; then
20611 if test "x${want_engine}" = "xstatic" ; then
20612 have_evas_engine_software_sdl="static"
20613 want_static_engine="yes"
20614 else
20615 have_evas_engine_software_sdl="yes"
20616 fi
20617fi
20618
20619if test "x${have_engine}" = "xyes" ; then
20620
20621$as_echo "#define BUILD_ENGINE_SOFTWARE_SDL 1" >>confdefs.h
20622
20623fi
20624
20625 if test "x${have_engine}" = "xyes"; then
20626 BUILD_ENGINE_SOFTWARE_SDL_TRUE=
20627 BUILD_ENGINE_SOFTWARE_SDL_FALSE='#'
20628else
20629 BUILD_ENGINE_SOFTWARE_SDL_TRUE='#'
20630 BUILD_ENGINE_SOFTWARE_SDL_FALSE=
20631fi
20632
20633
20634if test "x${want_static_engine}" = "xyes" ; then
20635
20636$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_SDL 1" >>confdefs.h
20637
20638 have_static_module="yes"
20639fi
20640
20641 if test "x${want_static_engine}" = "xyes"; then
20642 EVAS_STATIC_BUILD_SOFTWARE_SDL_TRUE=
20643 EVAS_STATIC_BUILD_SOFTWARE_SDL_FALSE='#'
20644else
20645 EVAS_STATIC_BUILD_SOFTWARE_SDL_TRUE='#'
20646 EVAS_STATIC_BUILD_SOFTWARE_SDL_FALSE=
20647fi
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658want_engine="${want_evas_engine_psl1ght}"
20659want_static_engine="no"
20660have_engine="no"
20661have_evas_engine_psl1ght="no"
20662
20663# Check whether --enable-psl1ght was given.
20664if test "${enable_psl1ght+set}" = set; then :
20665 enableval=$enable_psl1ght;
20666 if test "x${enableval}" = "xyes" ; then
20667 want_engine="yes"
20668 else
20669 if test "x${enableval}" = "xstatic" ; then
20670 want_engine="static"
20671 else
20672 want_engine="no"
20673 fi
20674 fi
20675
20676fi
20677
20678
20679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PSL1GHT rendering backend" >&5
20680$as_echo_n "checking whether to enable PSL1GHT rendering backend... " >&6; }
20681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
20682$as_echo "${want_engine}" >&6; }
20683
20684if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
20685
20686
20687have_dep="no"
20688evas_engine_psl1ght_cflags=""
20689evas_engine_psl1ght_libs=""
20690
20691ac_fn_c_check_header_mongrel "$LINENO" "rsx/rsx.h" "ac_cv_header_rsx_rsx_h" "$ac_includes_default"
20692if test "x$ac_cv_header_rsx_rsx_h" = x""yes; then :
20693 have_dep="yes"
20694fi
20695
20696
20697
20698
20699
20700
20701if test "x${have_dep}" = "xyes" ; then
20702 have_engine="yes"
20703else
20704 have_engine="no"
20705fi
20706
20707
20708fi
20709
20710if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
20711 as_fn_error $? "PSL1GHT dependencies not found (strict dependencies checking)" "$LINENO" 5
20712fi
20713
20714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PSL1GHT rendering backend will be built" >&5
20715$as_echo_n "checking whether PSL1GHT rendering backend will be built... " >&6; }
20716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
20717$as_echo "${have_engine}" >&6; }
20718
20719if test "x${have_engine}" = "xyes" ; then
20720 if test "x${want_engine}" = "xstatic" ; then
20721 have_evas_engine_psl1ght="static"
20722 want_static_engine="yes"
20723 else
20724 have_evas_engine_psl1ght="yes"
20725 fi
20726fi
20727
20728if test "x${have_engine}" = "xyes" ; then
20729
20730$as_echo "#define BUILD_ENGINE_PSL1GHT 1" >>confdefs.h
20731
20732fi
20733
20734 if test "x${have_engine}" = "xyes"; then
20735 BUILD_ENGINE_PSL1GHT_TRUE=
20736 BUILD_ENGINE_PSL1GHT_FALSE='#'
20737else
20738 BUILD_ENGINE_PSL1GHT_TRUE='#'
20739 BUILD_ENGINE_PSL1GHT_FALSE=
20740fi
20741
20742
20743if test "x${want_static_engine}" = "xyes" ; then
20744
20745$as_echo "#define EVAS_STATIC_BUILD_PSL1GHT 1" >>confdefs.h
20746
20747 have_static_module="yes"
20748fi
20749
20750 if test "x${want_static_engine}" = "xyes"; then
20751 EVAS_STATIC_BUILD_PSL1GHT_TRUE=
20752 EVAS_STATIC_BUILD_PSL1GHT_FALSE='#'
20753else
20754 EVAS_STATIC_BUILD_PSL1GHT_TRUE='#'
20755 EVAS_STATIC_BUILD_PSL1GHT_FALSE=
20756fi
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767want_engine="${want_evas_engine_gl_sdl}"
20768want_static_engine="no"
20769have_engine="no"
20770have_evas_engine_gl_sdl="no"
20771
20772# Check whether --enable-gl-sdl was given.
20773if test "${enable_gl_sdl+set}" = set; then :
20774 enableval=$enable_gl_sdl;
20775 if test "x${enableval}" = "xyes" ; then
20776 want_engine="yes"
20777 else
20778 if test "x${enableval}" = "xstatic" ; then
20779 want_engine="static"
20780 else
20781 want_engine="no"
20782 fi
20783 fi
20784
20785fi
20786
20787
20788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL SDL rendering backend" >&5
20789$as_echo_n "checking whether to enable OpenGL SDL rendering backend... " >&6; }
20790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
20791$as_echo "${want_engine}" >&6; }
20792
20793if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
20794
20795
20796requirement=""
20797have_dep="no"
20798evas_engine_gl_sdl_cflags=""
20799evas_engine_gl_sdl_libs=""
20800
20801
20802pkg_failed=no
20803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
20804$as_echo_n "checking for SDL... " >&6; }
20805
20806if test -n "$SDL_CFLAGS"; then
20807 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
20808 elif test -n "$PKG_CONFIG"; then
20809 if test -n "$PKG_CONFIG" && \
20810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
20811 ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
20812 ac_status=$?
20813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20814 test $ac_status = 0; }; then
20815 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null`
20816else
20817 pkg_failed=yes
20818fi
20819 else
20820 pkg_failed=untried
20821fi
20822if test -n "$SDL_LIBS"; then
20823 pkg_cv_SDL_LIBS="$SDL_LIBS"
20824 elif test -n "$PKG_CONFIG"; then
20825 if test -n "$PKG_CONFIG" && \
20826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
20827 ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
20828 ac_status=$?
20829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20830 test $ac_status = 0; }; then
20831 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null`
20832else
20833 pkg_failed=yes
20834fi
20835 else
20836 pkg_failed=untried
20837fi
20838
20839
20840
20841if test $pkg_failed = yes; then
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20843$as_echo "no" >&6; }
20844
20845if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20846 _pkg_short_errors_supported=yes
20847else
20848 _pkg_short_errors_supported=no
20849fi
20850 if test $_pkg_short_errors_supported = yes; then
20851 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1`
20852 else
20853 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1`
20854 fi
20855 # Put the nasty error message in config.log where it belongs
20856 echo "$SDL_PKG_ERRORS" >&5
20857
20858 as_fn_error $? "Package requirements (sdl >= 1.2.0) were not met:
20859
20860$SDL_PKG_ERRORS
20861
20862Consider adjusting the PKG_CONFIG_PATH environment variable if you
20863installed software in a non-standard prefix.
20864
20865Alternatively, you may set the environment variables SDL_CFLAGS
20866and SDL_LIBS to avoid the need to call pkg-config.
20867See the pkg-config man page for more details." "$LINENO" 5
20868elif test $pkg_failed = untried; then
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20870$as_echo "no" >&6; }
20871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20873as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20874is in your PATH or set the PKG_CONFIG environment variable to the full
20875path to pkg-config.
20876
20877Alternatively, you may set the environment variables SDL_CFLAGS
20878and SDL_LIBS to avoid the need to call pkg-config.
20879See the pkg-config man page for more details.
20880
20881To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20882See \`config.log' for more details" "$LINENO" 5 ; }
20883else
20884 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
20885 SDL_LIBS=$pkg_cv_SDL_LIBS
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20887$as_echo "yes" >&6; }
20888
20889 have_dep="yes"
20890 requirement="sdl"
20891 evas_engine_gl_sdl_cflags="${SDL_CFLAGS}"
20892 evas_engine_gl_sdl_libs="${SDL_LIBS}"
20893
20894
20895fi
20896
20897gl_pt_lib="";
20898have_gl_pt="no"
20899
20900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create() is supported" >&5
20901$as_echo_n "checking whether pthread_create() is supported... " >&6; }
20902CFLAGS_save="${CFLAGS}"
20903CFLAGS="${CFLAGS} -pthread"
20904LIBS_save="${LIBS}"
20905LIBS="${LIBS} -pthread"
20906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20907/* end confdefs.h. */
20908
20909#include <pthread.h>
20910
20911int
20912main ()
20913{
20914
20915pthread_create(NULL, NULL, NULL, NULL);
20916
20917 ;
20918 return 0;
20919}
20920_ACEOF
20921if ac_fn_c_try_link "$LINENO"; then :
20922 have_gl_pt="yes"
20923else
20924 have_gl_pt="no"
20925fi
20926rm -f core conftest.err conftest.$ac_objext \
20927 conftest$ac_exeext conftest.$ac_ext
20928CFLAGS=${CFLAGS_save}
20929LIBS=${LIBS_save}
20930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gl_pt}" >&5
20931$as_echo "${have_gl_pt}" >&6; }
20932
20933if test "x$have_gl_pt" = "xyes" ; then
20934 gl_pt_lib=" -pthread"
20935fi
20936
20937ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "
20938#include <GL/gl.h>
20939#include <GL/glext.h>
20940
20941"
20942if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
20943 have_dep="yes"
20944else
20945 have_dep="no"
20946fi
20947
20948
20949
20950if test "x$gl_flavor_gles" = "xyes" ; then
20951 have_dep=no
20952fi
20953
20954if test "x${have_dep}" = "xyes" ; then
20955 evas_engine_gl_sdl_cflags="${SDL_CFLAGS}"
20956 evas_engine_gl_sdl_libs="${SDL_LIBS} -lGL -lm $gl_pt_lib"
20957 evas_engine_gl_common_libs="-lGL -lm $gl_pt_lib"
20958else
20959 ac_fn_c_check_header_compile "$LINENO" "SDL/SDL_opengles.h" "ac_cv_header_SDL_SDL_opengles_h" "
20960#include <SDL/SDL_opengles.h>
20961#include <EGL/egl.h>
20962
20963"
20964if test "x$ac_cv_header_SDL_SDL_opengles_h" = x""yes; then :
20965 have_egl="yes"
20966else
20967 have_egl="no"
20968fi
20969
20970
20971 if test "x${have_egl}" = "xyes" ; then
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5
20973$as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; }
20974if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then :
20975 $as_echo_n "(cached) " >&6
20976else
20977 ac_check_lib_save_LIBS=$LIBS
20978LIBS="-lGLESv2 -lEGL -lm $gl_pt_lib $LIBS"
20979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980/* end confdefs.h. */
20981
20982/* Override any GCC internal prototype to avoid an error.
20983 Use char because int might match the return type of a GCC
20984 builtin and then its argument prototype would still apply. */
20985#ifdef __cplusplus
20986extern "C"
20987#endif
20988char glTexImage2D ();
20989int
20990main ()
20991{
20992return glTexImage2D ();
20993 ;
20994 return 0;
20995}
20996_ACEOF
20997if ac_fn_c_try_link "$LINENO"; then :
20998 ac_cv_lib_GLESv2_glTexImage2D=yes
20999else
21000 ac_cv_lib_GLESv2_glTexImage2D=no
21001fi
21002rm -f core conftest.err conftest.$ac_objext \
21003 conftest$ac_exeext conftest.$ac_ext
21004LIBS=$ac_check_lib_save_LIBS
21005fi
21006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5
21007$as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; }
21008if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then :
21009 have_glesv2="yes"
21010fi
21011
21012 if test "x${have_glesv2}" = "xyes" ; then
21013 evas_engine_gl_sdl_cflags="${SDL_CFLAGS}"
21014 evas_engine_gl_sdl_libs="${SDL_LIBS} -lGLESv2 -lEGL -lm $gl_pt_lib"
21015 evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib"
21016 have_dep="yes"
21017 gl_flavor_gles="no"
21018
21019$as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h
21020
21021 gles_variety_sgx="yes"
21022 fi
21023 fi
21024fi
21025
21026
21027
21028
21029if test "x${want_engine}" = "xstatic" ; then
21030 requirement_evas="${requirement} ${requirement_evas}"
21031fi
21032
21033if test "x${have_dep}" = "xyes" ; then
21034 have_engine="yes"
21035else
21036 have_engine="no"
21037fi
21038
21039
21040fi
21041
21042if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
21043 as_fn_error $? "OpenGL SDL dependencies not found (strict dependencies checking)" "$LINENO" 5
21044fi
21045
21046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL SDL rendering backend will be built" >&5
21047$as_echo_n "checking whether OpenGL SDL rendering backend will be built... " >&6; }
21048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
21049$as_echo "${have_engine}" >&6; }
21050
21051if test "x${have_engine}" = "xyes" ; then
21052 if test "x${want_engine}" = "xstatic" ; then
21053 have_evas_engine_gl_sdl="static"
21054 want_static_engine="yes"
21055 else
21056 have_evas_engine_gl_sdl="yes"
21057 fi
21058fi
21059
21060if test "x${have_engine}" = "xyes" ; then
21061
21062$as_echo "#define BUILD_ENGINE_GL_SDL 1" >>confdefs.h
21063
21064fi
21065
21066 if test "x${have_engine}" = "xyes"; then
21067 BUILD_ENGINE_GL_SDL_TRUE=
21068 BUILD_ENGINE_GL_SDL_FALSE='#'
21069else
21070 BUILD_ENGINE_GL_SDL_TRUE='#'
21071 BUILD_ENGINE_GL_SDL_FALSE=
21072fi
21073
21074
21075if test "x${want_static_engine}" = "xyes" ; then
21076
21077$as_echo "#define EVAS_STATIC_BUILD_GL_SDL 1" >>confdefs.h
21078
21079 have_static_module="yes"
21080fi
21081
21082 if test "x${want_static_engine}" = "xyes"; then
21083 EVAS_STATIC_BUILD_GL_SDL_TRUE=
21084 EVAS_STATIC_BUILD_GL_SDL_FALSE='#'
21085else
21086 EVAS_STATIC_BUILD_GL_SDL_TRUE='#'
21087 EVAS_STATIC_BUILD_GL_SDL_FALSE=
21088fi
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099want_engine="${want_evas_engine_gl_cocoa}"
21100want_static_engine="no"
21101have_engine="no"
21102have_evas_engine_gl_cocoa="no"
21103
21104# Check whether --enable-gl-cocoa was given.
21105if test "${enable_gl_cocoa+set}" = set; then :
21106 enableval=$enable_gl_cocoa;
21107 if test "x${enableval}" = "xyes" ; then
21108 want_engine="yes"
21109 else
21110 if test "x${enableval}" = "xstatic" ; then
21111 want_engine="static"
21112 else
21113 want_engine="no"
21114 fi
21115 fi
21116
21117fi
21118
21119
21120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL Cocoa rendering backend" >&5
21121$as_echo_n "checking whether to enable OpenGL Cocoa rendering backend... " >&6; }
21122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
21123$as_echo "${want_engine}" >&6; }
21124
21125if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
21126
21127
21128evas_engine_gl_cocoa_cflags=""
21129evas_engine_gl_cocoa_libs=""
21130
21131ac_ext=m
21132ac_cpp='$OBJCPP $CPPFLAGS'
21133ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135ac_compiler_gnu=$ac_cv_objc_compiler_gnu
21136
21137
21138LIBS_save="$LIBS"
21139LIBS="$LIBS -framework Cocoa"
21140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21141/* end confdefs.h. */
21142
21143#include <Cocoa/Cocoa.h>
21144
21145int
21146main ()
21147{
21148
21149NSWindow *window;
21150window = [[NSWindow alloc]
21151 initWithContentRect:NSMakeRect(0, 0, 1, 1)
21152 styleMask:(NSTitledWindowMask)
21153 backing:NSBackingStoreBuffered
21154 defer:NO
21155 screen:nil
21156 ];
21157
21158 ;
21159 return 0;
21160}
21161_ACEOF
21162if ac_fn_objc_try_link "$LINENO"; then :
21163
21164 have_dep="yes"
21165 evas_engine_gl_cocoa_libs="-framework Cocoa"
21166
21167else
21168 have_dep="no"
21169fi
21170rm -f core conftest.err conftest.$ac_objext \
21171 conftest$ac_exeext conftest.$ac_ext
21172LIBS="$LIBS_save"
21173
21174ac_ext=c
21175ac_cpp='$CPP $CPPFLAGS'
21176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21178ac_compiler_gnu=$ac_cv_c_compiler_gnu
21179
21180
21181if test "x${have_dep}" = "xyes" ; then
21182
21183pkg_failed=no
21184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5
21185$as_echo_n "checking for GL_EET... " >&6; }
21186
21187if test -n "$GL_EET_CFLAGS"; then
21188 pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS"
21189 elif test -n "$PKG_CONFIG"; then
21190 if test -n "$PKG_CONFIG" && \
21191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
21192 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
21193 ac_status=$?
21194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21195 test $ac_status = 0; }; then
21196 pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null`
21197else
21198 pkg_failed=yes
21199fi
21200 else
21201 pkg_failed=untried
21202fi
21203if test -n "$GL_EET_LIBS"; then
21204 pkg_cv_GL_EET_LIBS="$GL_EET_LIBS"
21205 elif test -n "$PKG_CONFIG"; then
21206 if test -n "$PKG_CONFIG" && \
21207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
21208 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
21209 ac_status=$?
21210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21211 test $ac_status = 0; }; then
21212 pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null`
21213else
21214 pkg_failed=yes
21215fi
21216 else
21217 pkg_failed=untried
21218fi
21219
21220
21221
21222if test $pkg_failed = yes; then
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21224$as_echo "no" >&6; }
21225
21226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21227 _pkg_short_errors_supported=yes
21228else
21229 _pkg_short_errors_supported=no
21230fi
21231 if test $_pkg_short_errors_supported = yes; then
21232 GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1`
21233 else
21234 GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1`
21235 fi
21236 # Put the nasty error message in config.log where it belongs
21237 echo "$GL_EET_PKG_ERRORS" >&5
21238
21239 have_dep="no"
21240elif test $pkg_failed = untried; then
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21242$as_echo "no" >&6; }
21243 have_dep="no"
21244else
21245 GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS
21246 GL_EET_LIBS=$pkg_cv_GL_EET_LIBS
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21248$as_echo "yes" >&6; }
21249 have_dep="yes"
21250fi
21251fi
21252
21253
21254
21255
21256if test "x${have_dep}" = "xyes" ; then
21257 have_engine="yes"
21258else
21259 have_engine="no"
21260fi
21261
21262
21263fi
21264
21265if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
21266 as_fn_error $? "OpenGL Cocoa dependencies not found (strict dependencies checking)" "$LINENO" 5
21267fi
21268
21269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL Cocoa rendering backend will be built" >&5
21270$as_echo_n "checking whether OpenGL Cocoa rendering backend will be built... " >&6; }
21271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
21272$as_echo "${have_engine}" >&6; }
21273
21274if test "x${have_engine}" = "xyes" ; then
21275 if test "x${want_engine}" = "xstatic" ; then
21276 have_evas_engine_gl_cocoa="static"
21277 want_static_engine="yes"
21278 else
21279 have_evas_engine_gl_cocoa="yes"
21280 fi
21281fi
21282
21283if test "x${have_engine}" = "xyes" ; then
21284
21285$as_echo "#define BUILD_ENGINE_GL_COCOA 1" >>confdefs.h
21286
21287fi
21288
21289 if test "x${have_engine}" = "xyes"; then
21290 BUILD_ENGINE_GL_COCOA_TRUE=
21291 BUILD_ENGINE_GL_COCOA_FALSE='#'
21292else
21293 BUILD_ENGINE_GL_COCOA_TRUE='#'
21294 BUILD_ENGINE_GL_COCOA_FALSE=
21295fi
21296
21297
21298if test "x${want_static_engine}" = "xyes" ; then
21299
21300$as_echo "#define EVAS_STATIC_BUILD_GL_COCOA 1" >>confdefs.h
21301
21302 have_static_module="yes"
21303fi
21304
21305 if test "x${want_static_engine}" = "xyes"; then
21306 EVAS_STATIC_BUILD_GL_COCOA_TRUE=
21307 EVAS_STATIC_BUILD_GL_COCOA_FALSE='#'
21308else
21309 EVAS_STATIC_BUILD_GL_COCOA_TRUE='#'
21310 EVAS_STATIC_BUILD_GL_COCOA_FALSE=
21311fi
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322want_engine="${want_evas_engine_fb}"
21323want_static_engine="no"
21324have_engine="no"
21325have_evas_engine_fb="no"
21326
21327# Check whether --enable-fb was given.
21328if test "${enable_fb+set}" = set; then :
21329 enableval=$enable_fb;
21330 if test "x${enableval}" = "xyes" ; then
21331 want_engine="yes"
21332 else
21333 if test "x${enableval}" = "xstatic" ; then
21334 want_engine="static"
21335 else
21336 want_engine="no"
21337 fi
21338 fi
21339
21340fi
21341
21342
21343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Framebuffer rendering backend" >&5
21344$as_echo_n "checking whether to enable Framebuffer rendering backend... " >&6; }
21345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
21346$as_echo "${want_engine}" >&6; }
21347
21348if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
21349
21350
21351have_dep="no"
21352evas_engine_fb_cflags=""
21353evas_engine_fb_libs=""
21354
21355ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
21356if test "x$ac_cv_header_linux_fb_h" = x""yes; then :
21357 have_dep="yes"
21358fi
21359
21360
21361
21362
21363
21364
21365if test "x${have_dep}" = "xyes" ; then
21366 have_engine="yes"
21367else
21368 have_engine="no"
21369fi
21370
21371
21372fi
21373
21374if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
21375 as_fn_error $? "Framebuffer dependencies not found (strict dependencies checking)" "$LINENO" 5
21376fi
21377
21378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Framebuffer rendering backend will be built" >&5
21379$as_echo_n "checking whether Framebuffer rendering backend will be built... " >&6; }
21380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
21381$as_echo "${have_engine}" >&6; }
21382
21383if test "x${have_engine}" = "xyes" ; then
21384 if test "x${want_engine}" = "xstatic" ; then
21385 have_evas_engine_fb="static"
21386 want_static_engine="yes"
21387 else
21388 have_evas_engine_fb="yes"
21389 fi
21390fi
21391
21392if test "x${have_engine}" = "xyes" ; then
21393
21394$as_echo "#define BUILD_ENGINE_FB 1" >>confdefs.h
21395
21396fi
21397
21398 if test "x${have_engine}" = "xyes"; then
21399 BUILD_ENGINE_FB_TRUE=
21400 BUILD_ENGINE_FB_FALSE='#'
21401else
21402 BUILD_ENGINE_FB_TRUE='#'
21403 BUILD_ENGINE_FB_FALSE=
21404fi
21405
21406
21407if test "x${want_static_engine}" = "xyes" ; then
21408
21409$as_echo "#define EVAS_STATIC_BUILD_FB 1" >>confdefs.h
21410
21411 have_static_module="yes"
21412fi
21413
21414 if test "x${want_static_engine}" = "xyes"; then
21415 EVAS_STATIC_BUILD_FB_TRUE=
21416 EVAS_STATIC_BUILD_FB_FALSE='#'
21417else
21418 EVAS_STATIC_BUILD_FB_TRUE='#'
21419 EVAS_STATIC_BUILD_FB_FALSE=
21420fi
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431want_engine="${want_evas_engine_directfb}"
21432want_static_engine="no"
21433have_engine="no"
21434have_evas_engine_directfb="no"
21435
21436# Check whether --enable-directfb was given.
21437if test "${enable_directfb+set}" = set; then :
21438 enableval=$enable_directfb;
21439 if test "x${enableval}" = "xyes" ; then
21440 want_engine="yes"
21441 else
21442 if test "x${enableval}" = "xstatic" ; then
21443 want_engine="static"
21444 else
21445 want_engine="no"
21446 fi
21447 fi
21448
21449fi
21450
21451
21452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DirectFB rendering backend" >&5
21453$as_echo_n "checking whether to enable DirectFB rendering backend... " >&6; }
21454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
21455$as_echo "${want_engine}" >&6; }
21456
21457if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
21458
21459
21460requirement=""
21461have_dep="no"
21462evas_engine_directfb_cflags=""
21463evas_engine_directfb_libs=""
21464
21465
21466pkg_failed=no
21467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
21468$as_echo_n "checking for DIRECTFB... " >&6; }
21469
21470if test -n "$DIRECTFB_CFLAGS"; then
21471 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
21472 elif test -n "$PKG_CONFIG"; then
21473 if test -n "$PKG_CONFIG" && \
21474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5
21475 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5
21476 ac_status=$?
21477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21478 test $ac_status = 0; }; then
21479 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.16" 2>/dev/null`
21480else
21481 pkg_failed=yes
21482fi
21483 else
21484 pkg_failed=untried
21485fi
21486if test -n "$DIRECTFB_LIBS"; then
21487 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
21488 elif test -n "$PKG_CONFIG"; then
21489 if test -n "$PKG_CONFIG" && \
21490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.16\""; } >&5
21491 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.16") 2>&5
21492 ac_status=$?
21493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21494 test $ac_status = 0; }; then
21495 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.16" 2>/dev/null`
21496else
21497 pkg_failed=yes
21498fi
21499 else
21500 pkg_failed=untried
21501fi
21502
21503
21504
21505if test $pkg_failed = yes; then
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21507$as_echo "no" >&6; }
21508
21509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21510 _pkg_short_errors_supported=yes
21511else
21512 _pkg_short_errors_supported=no
21513fi
21514 if test $_pkg_short_errors_supported = yes; then
21515 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 0.9.16" 2>&1`
21516 else
21517 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 0.9.16" 2>&1`
21518 fi
21519 # Put the nasty error message in config.log where it belongs
21520 echo "$DIRECTFB_PKG_ERRORS" >&5
21521
21522 as_fn_error $? "Package requirements (directfb >= 0.9.16) were not met:
21523
21524$DIRECTFB_PKG_ERRORS
21525
21526Consider adjusting the PKG_CONFIG_PATH environment variable if you
21527installed software in a non-standard prefix.
21528
21529Alternatively, you may set the environment variables DIRECTFB_CFLAGS
21530and DIRECTFB_LIBS to avoid the need to call pkg-config.
21531See the pkg-config man page for more details." "$LINENO" 5
21532elif test $pkg_failed = untried; then
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21534$as_echo "no" >&6; }
21535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21537as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21538is in your PATH or set the PKG_CONFIG environment variable to the full
21539path to pkg-config.
21540
21541Alternatively, you may set the environment variables DIRECTFB_CFLAGS
21542and DIRECTFB_LIBS to avoid the need to call pkg-config.
21543See the pkg-config man page for more details.
21544
21545To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21546See \`config.log' for more details" "$LINENO" 5 ; }
21547else
21548 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
21549 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21551$as_echo "yes" >&6; }
21552
21553 have_dep="yes"
21554 requirement="directfb"
21555 evas_engine_directfb_cflags="${DIRECTFB_CFLAGS}"
21556 evas_engine_directfb_libs="${DIRECTFB_LIBS}"
21557
21558
21559fi
21560
21561
21562
21563
21564if test "x${want_engine}" = "xstatic" ; then
21565 requirement_evas="${requirement} ${requirement_evas}"
21566fi
21567
21568if test "x${have_dep}" = "xyes" ; then
21569 have_engine="yes"
21570else
21571 have_engine="no"
21572fi
21573
21574
21575fi
21576
21577if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
21578 as_fn_error $? "DirectFB dependencies not found (strict dependencies checking)" "$LINENO" 5
21579fi
21580
21581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DirectFB rendering backend will be built" >&5
21582$as_echo_n "checking whether DirectFB rendering backend will be built... " >&6; }
21583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
21584$as_echo "${have_engine}" >&6; }
21585
21586if test "x${have_engine}" = "xyes" ; then
21587 if test "x${want_engine}" = "xstatic" ; then
21588 have_evas_engine_directfb="static"
21589 want_static_engine="yes"
21590 else
21591 have_evas_engine_directfb="yes"
21592 fi
21593fi
21594
21595if test "x${have_engine}" = "xyes" ; then
21596
21597$as_echo "#define BUILD_ENGINE_DIRECTFB 1" >>confdefs.h
21598
21599fi
21600
21601 if test "x${have_engine}" = "xyes"; then
21602 BUILD_ENGINE_DIRECTFB_TRUE=
21603 BUILD_ENGINE_DIRECTFB_FALSE='#'
21604else
21605 BUILD_ENGINE_DIRECTFB_TRUE='#'
21606 BUILD_ENGINE_DIRECTFB_FALSE=
21607fi
21608
21609
21610if test "x${want_static_engine}" = "xyes" ; then
21611
21612$as_echo "#define EVAS_STATIC_BUILD_DIRECTFB 1" >>confdefs.h
21613
21614 have_static_module="yes"
21615fi
21616
21617 if test "x${want_static_engine}" = "xyes"; then
21618 EVAS_STATIC_BUILD_DIRECTFB_TRUE=
21619 EVAS_STATIC_BUILD_DIRECTFB_FALSE='#'
21620else
21621 EVAS_STATIC_BUILD_DIRECTFB_TRUE='#'
21622 EVAS_STATIC_BUILD_DIRECTFB_FALSE=
21623fi
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634want_engine="${want_evas_engine_software_8_x11}"
21635want_static_engine="no"
21636have_engine="no"
21637have_evas_engine_software_8_x11="no"
21638
21639# Check whether --enable-software-8-x11 was given.
21640if test "${enable_software_8_x11+set}" = set; then :
21641 enableval=$enable_software_8_x11;
21642 if test "x${enableval}" = "xyes" ; then
21643 want_engine="yes"
21644 else
21645 if test "x${enableval}" = "xstatic" ; then
21646 want_engine="static"
21647 else
21648 want_engine="no"
21649 fi
21650 fi
21651
21652fi
21653
21654
21655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software X11 8 bits grayscale rendering backend" >&5
21656$as_echo_n "checking whether to enable Software X11 8 bits grayscale rendering backend... " >&6; }
21657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
21658$as_echo "${want_engine}" >&6; }
21659
21660if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
21661
21662
21663have_dep="no"
21664evas_engine_software_8_x11_cflags=""
21665evas_engine_software_8_x11_libs=""
21666
21667
21668pkg_failed=no
21669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
21670$as_echo_n "checking for XCB... " >&6; }
21671
21672if test -n "$XCB_CFLAGS"; then
21673 pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
21674 elif test -n "$PKG_CONFIG"; then
21675 if test -n "$PKG_CONFIG" && \
21676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5
21677 ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5
21678 ac_status=$?
21679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21680 test $ac_status = 0; }; then
21681 pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null`
21682else
21683 pkg_failed=yes
21684fi
21685 else
21686 pkg_failed=untried
21687fi
21688if test -n "$XCB_LIBS"; then
21689 pkg_cv_XCB_LIBS="$XCB_LIBS"
21690 elif test -n "$PKG_CONFIG"; then
21691 if test -n "$PKG_CONFIG" && \
21692 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5
21693 ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5
21694 ac_status=$?
21695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21696 test $ac_status = 0; }; then
21697 pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null`
21698else
21699 pkg_failed=yes
21700fi
21701 else
21702 pkg_failed=untried
21703fi
21704
21705
21706
21707if test $pkg_failed = yes; then
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21709$as_echo "no" >&6; }
21710
21711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21712 _pkg_short_errors_supported=yes
21713else
21714 _pkg_short_errors_supported=no
21715fi
21716 if test $_pkg_short_errors_supported = yes; then
21717 XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1`
21718 else
21719 XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1`
21720 fi
21721 # Put the nasty error message in config.log where it belongs
21722 echo "$XCB_PKG_ERRORS" >&5
21723
21724
21725 have_dep="no"
21726
21727
21728elif test $pkg_failed = untried; then
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730$as_echo "no" >&6; }
21731
21732 have_dep="no"
21733
21734
21735else
21736 XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
21737 XCB_LIBS=$pkg_cv_XCB_LIBS
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21739$as_echo "yes" >&6; }
21740
21741 have_dep="yes"
21742 requirement="xcb xcb-shm xcb-image pixman-1"
21743 evas_engine_software_8_x11_cflags="${XCB_CFLAGS}"
21744 evas_engine_software_8_x11_libs="${XCB_LIBS}"
21745
21746fi
21747
21748
21749
21750
21751if test "x${want_engine}" = "xstatic" ; then
21752 requirement_evas="${requirement} ${requirement_evas}"
21753fi
21754
21755if test "x${have_dep}" = "xyes" ; then
21756 have_engine="yes"
21757else
21758 have_engine="no"
21759fi
21760
21761
21762fi
21763
21764if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
21765 as_fn_error $? "Software X11 8 bits grayscale dependencies not found (strict dependencies checking)" "$LINENO" 5
21766fi
21767
21768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software X11 8 bits grayscale rendering backend will be built" >&5
21769$as_echo_n "checking whether Software X11 8 bits grayscale rendering backend will be built... " >&6; }
21770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
21771$as_echo "${have_engine}" >&6; }
21772
21773if test "x${have_engine}" = "xyes" ; then
21774 if test "x${want_engine}" = "xstatic" ; then
21775 have_evas_engine_software_8_x11="static"
21776 want_static_engine="yes"
21777 else
21778 have_evas_engine_software_8_x11="yes"
21779 fi
21780fi
21781
21782if test "x${have_engine}" = "xyes" ; then
21783
21784$as_echo "#define BUILD_ENGINE_SOFTWARE_8_X11 1" >>confdefs.h
21785
21786fi
21787
21788 if test "x${have_engine}" = "xyes"; then
21789 BUILD_ENGINE_SOFTWARE_8_X11_TRUE=
21790 BUILD_ENGINE_SOFTWARE_8_X11_FALSE='#'
21791else
21792 BUILD_ENGINE_SOFTWARE_8_X11_TRUE='#'
21793 BUILD_ENGINE_SOFTWARE_8_X11_FALSE=
21794fi
21795
21796
21797if test "x${want_static_engine}" = "xyes" ; then
21798
21799$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_8_X11 1" >>confdefs.h
21800
21801 have_static_module="yes"
21802fi
21803
21804 if test "x${want_static_engine}" = "xyes"; then
21805 EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE=
21806 EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE='#'
21807else
21808 EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE='#'
21809 EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE=
21810fi
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821want_engine="${want_evas_engine_software_16_x11}"
21822want_static_engine="no"
21823have_engine="no"
21824have_evas_engine_software_16_x11="no"
21825
21826# Check whether --enable-software-16-x11 was given.
21827if test "${enable_software_16_x11+set}" = set; then :
21828 enableval=$enable_software_16_x11;
21829 if test "x${enableval}" = "xyes" ; then
21830 want_engine="yes"
21831 else
21832 if test "x${enableval}" = "xstatic" ; then
21833 want_engine="static"
21834 else
21835 want_engine="no"
21836 fi
21837 fi
21838
21839fi
21840
21841
21842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software X11 16 bits rendering backend" >&5
21843$as_echo_n "checking whether to enable Software X11 16 bits rendering backend... " >&6; }
21844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
21845$as_echo "${want_engine}" >&6; }
21846
21847if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
21848
21849
21850have_dep="no"
21851evas_engine_software_16_x11_cflags=""
21852evas_engine_software_16_x11_libs=""
21853
21854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
21855$as_echo_n "checking for X... " >&6; }
21856
21857
21858# Check whether --with-x was given.
21859if test "${with_x+set}" = set; then :
21860 withval=$with_x;
21861fi
21862
21863# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21864if test "x$with_x" = xno; then
21865 # The user explicitly disabled X.
21866 have_x=disabled
21867else
21868 case $x_includes,$x_libraries in #(
21869 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
21870 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
21871 $as_echo_n "(cached) " >&6
21872else
21873 # One or both of the vars are not set, and there is no cached value.
21874ac_x_includes=no ac_x_libraries=no
21875rm -f -r conftest.dir
21876if mkdir conftest.dir; then
21877 cd conftest.dir
21878 cat >Imakefile <<'_ACEOF'
21879incroot:
21880 @echo incroot='${INCROOT}'
21881usrlibdir:
21882 @echo usrlibdir='${USRLIBDIR}'
21883libdir:
21884 @echo libdir='${LIBDIR}'
21885_ACEOF
21886 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21887 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
21888 for ac_var in incroot usrlibdir libdir; do
21889 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21890 done
21891 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21892 for ac_extension in a so sl dylib la dll; do
21893 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21894 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21895 ac_im_usrlibdir=$ac_im_libdir; break
21896 fi
21897 done
21898 # Screen out bogus values from the imake configuration. They are
21899 # bogus both because they are the default anyway, and because
21900 # using them would break gcc on systems where it needs fixed includes.
21901 case $ac_im_incroot in
21902 /usr/include) ac_x_includes= ;;
21903 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21904 esac
21905 case $ac_im_usrlibdir in
21906 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
21907 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21908 esac
21909 fi
21910 cd ..
21911 rm -f -r conftest.dir
21912fi
21913
21914# Standard set of common directories for X headers.
21915# Check X11 before X11Rn because it is often a symlink to the current release.
21916ac_x_header_dirs='
21917/usr/X11/include
21918/usr/X11R7/include
21919/usr/X11R6/include
21920/usr/X11R5/include
21921/usr/X11R4/include
21922
21923/usr/include/X11
21924/usr/include/X11R7
21925/usr/include/X11R6
21926/usr/include/X11R5
21927/usr/include/X11R4
21928
21929/usr/local/X11/include
21930/usr/local/X11R7/include
21931/usr/local/X11R6/include
21932/usr/local/X11R5/include
21933/usr/local/X11R4/include
21934
21935/usr/local/include/X11
21936/usr/local/include/X11R7
21937/usr/local/include/X11R6
21938/usr/local/include/X11R5
21939/usr/local/include/X11R4
21940
21941/usr/X386/include
21942/usr/x386/include
21943/usr/XFree86/include/X11
21944
21945/usr/include
21946/usr/local/include
21947/usr/unsupported/include
21948/usr/athena/include
21949/usr/local/x11r5/include
21950/usr/lpp/Xamples/include
21951
21952/usr/openwin/include
21953/usr/openwin/share/include'
21954
21955if test "$ac_x_includes" = no; then
21956 # Guess where to find include files, by looking for Xlib.h.
21957 # First, try using that file with no special directory specified.
21958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21959/* end confdefs.h. */
21960#include <X11/Xlib.h>
21961_ACEOF
21962if ac_fn_c_try_cpp "$LINENO"; then :
21963 # We can compile using X headers with no special include directory.
21964ac_x_includes=
21965else
21966 for ac_dir in $ac_x_header_dirs; do
21967 if test -r "$ac_dir/X11/Xlib.h"; then
21968 ac_x_includes=$ac_dir
21969 break
21970 fi
21971done
21972fi
21973rm -f conftest.err conftest.i conftest.$ac_ext
21974fi # $ac_x_includes = no
21975
21976if test "$ac_x_libraries" = no; then
21977 # Check for the libraries.
21978 # See if we find them without any special options.
21979 # Don't add to $LIBS permanently.
21980 ac_save_LIBS=$LIBS
21981 LIBS="-lX11 $LIBS"
21982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983/* end confdefs.h. */
21984#include <X11/Xlib.h>
21985int
21986main ()
21987{
21988XrmInitialize ()
21989 ;
21990 return 0;
21991}
21992_ACEOF
21993if ac_fn_c_try_link "$LINENO"; then :
21994 LIBS=$ac_save_LIBS
21995# We can link X programs with no special library path.
21996ac_x_libraries=
21997else
21998 LIBS=$ac_save_LIBS
21999for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22000do
22001 # Don't even attempt the hair of trying to link an X program!
22002 for ac_extension in a so sl dylib la dll; do
22003 if test -r "$ac_dir/libX11.$ac_extension"; then
22004 ac_x_libraries=$ac_dir
22005 break 2
22006 fi
22007 done
22008done
22009fi
22010rm -f core conftest.err conftest.$ac_objext \
22011 conftest$ac_exeext conftest.$ac_ext
22012fi # $ac_x_libraries = no
22013
22014case $ac_x_includes,$ac_x_libraries in #(
22015 no,* | *,no | *\'*)
22016 # Didn't find X, or a directory has "'" in its name.
22017 ac_cv_have_x="have_x=no";; #(
22018 *)
22019 # Record where we found X for the cache.
22020 ac_cv_have_x="have_x=yes\
22021 ac_x_includes='$ac_x_includes'\
22022 ac_x_libraries='$ac_x_libraries'"
22023esac
22024fi
22025;; #(
22026 *) have_x=yes;;
22027 esac
22028 eval "$ac_cv_have_x"
22029fi # $with_x != no
22030
22031if test "$have_x" != yes; then
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
22033$as_echo "$have_x" >&6; }
22034 no_x=yes
22035else
22036 # If each of the values was on the command line, it overrides each guess.
22037 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22038 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22039 # Update the cache value to reflect the command line values.
22040 ac_cv_have_x="have_x=yes\
22041 ac_x_includes='$x_includes'\
22042 ac_x_libraries='$x_libraries'"
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
22044$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
22045fi
22046
22047if test "$no_x" = yes; then
22048 # Not all programs may use this symbol, but it does not hurt to define it.
22049
22050$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
22051
22052 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22053else
22054 if test -n "$x_includes"; then
22055 X_CFLAGS="$X_CFLAGS -I$x_includes"
22056 fi
22057
22058 # It would also be nice to do this for all -L options, not just this one.
22059 if test -n "$x_libraries"; then
22060 X_LIBS="$X_LIBS -L$x_libraries"
22061 # For Solaris; some versions of Sun CC require a space after -R and
22062 # others require no space. Words are not sufficient . . . .
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
22064$as_echo_n "checking whether -R must be followed by a space... " >&6; }
22065 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22066 ac_xsave_c_werror_flag=$ac_c_werror_flag
22067 ac_c_werror_flag=yes
22068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22069/* end confdefs.h. */
22070
22071int
22072main ()
22073{
22074
22075 ;
22076 return 0;
22077}
22078_ACEOF
22079if ac_fn_c_try_link "$LINENO"; then :
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22081$as_echo "no" >&6; }
22082 X_LIBS="$X_LIBS -R$x_libraries"
22083else
22084 LIBS="$ac_xsave_LIBS -R $x_libraries"
22085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22086/* end confdefs.h. */
22087
22088int
22089main ()
22090{
22091
22092 ;
22093 return 0;
22094}
22095_ACEOF
22096if ac_fn_c_try_link "$LINENO"; then :
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22098$as_echo "yes" >&6; }
22099 X_LIBS="$X_LIBS -R $x_libraries"
22100else
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
22102$as_echo "neither works" >&6; }
22103fi
22104rm -f core conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22106fi
22107rm -f core conftest.err conftest.$ac_objext \
22108 conftest$ac_exeext conftest.$ac_ext
22109 ac_c_werror_flag=$ac_xsave_c_werror_flag
22110 LIBS=$ac_xsave_LIBS
22111 fi
22112
22113 # Check for system-dependent libraries X programs must link with.
22114 # Do this before checking for the system-independent R6 libraries
22115 # (-lICE), since we may need -lsocket or whatever for X linking.
22116
22117 if test "$ISC" = yes; then
22118 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22119 else
22120 # Martyn Johnson says this is needed for Ultrix, if the X
22121 # libraries were built with DECnet support. And Karl Berry says
22122 # the Alpha needs dnet_stub (dnet does not exist).
22123 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125/* end confdefs.h. */
22126
22127/* Override any GCC internal prototype to avoid an error.
22128 Use char because int might match the return type of a GCC
22129 builtin and then its argument prototype would still apply. */
22130#ifdef __cplusplus
22131extern "C"
22132#endif
22133char XOpenDisplay ();
22134int
22135main ()
22136{
22137return XOpenDisplay ();
22138 ;
22139 return 0;
22140}
22141_ACEOF
22142if ac_fn_c_try_link "$LINENO"; then :
22143
22144else
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
22146$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
22147if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
22148 $as_echo_n "(cached) " >&6
22149else
22150 ac_check_lib_save_LIBS=$LIBS
22151LIBS="-ldnet $LIBS"
22152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22153/* end confdefs.h. */
22154
22155/* Override any GCC internal prototype to avoid an error.
22156 Use char because int might match the return type of a GCC
22157 builtin and then its argument prototype would still apply. */
22158#ifdef __cplusplus
22159extern "C"
22160#endif
22161char dnet_ntoa ();
22162int
22163main ()
22164{
22165return dnet_ntoa ();
22166 ;
22167 return 0;
22168}
22169_ACEOF
22170if ac_fn_c_try_link "$LINENO"; then :
22171 ac_cv_lib_dnet_dnet_ntoa=yes
22172else
22173 ac_cv_lib_dnet_dnet_ntoa=no
22174fi
22175rm -f core conftest.err conftest.$ac_objext \
22176 conftest$ac_exeext conftest.$ac_ext
22177LIBS=$ac_check_lib_save_LIBS
22178fi
22179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22180$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22181if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
22182 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22183fi
22184
22185 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
22187$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
22188if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
22189 $as_echo_n "(cached) " >&6
22190else
22191 ac_check_lib_save_LIBS=$LIBS
22192LIBS="-ldnet_stub $LIBS"
22193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22194/* end confdefs.h. */
22195
22196/* Override any GCC internal prototype to avoid an error.
22197 Use char because int might match the return type of a GCC
22198 builtin and then its argument prototype would still apply. */
22199#ifdef __cplusplus
22200extern "C"
22201#endif
22202char dnet_ntoa ();
22203int
22204main ()
22205{
22206return dnet_ntoa ();
22207 ;
22208 return 0;
22209}
22210_ACEOF
22211if ac_fn_c_try_link "$LINENO"; then :
22212 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22213else
22214 ac_cv_lib_dnet_stub_dnet_ntoa=no
22215fi
22216rm -f core conftest.err conftest.$ac_objext \
22217 conftest$ac_exeext conftest.$ac_ext
22218LIBS=$ac_check_lib_save_LIBS
22219fi
22220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22221$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22222if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
22223 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22224fi
22225
22226 fi
22227fi
22228rm -f core conftest.err conftest.$ac_objext \
22229 conftest$ac_exeext conftest.$ac_ext
22230 LIBS="$ac_xsave_LIBS"
22231
22232 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22233 # to get the SysV transport functions.
22234 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22235 # needs -lnsl.
22236 # The nsl library prevents programs from opening the X display
22237 # on Irix 5.2, according to T.E. Dickey.
22238 # The functions gethostbyname, getservbyname, and inet_addr are
22239 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22240 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22241if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22242
22243fi
22244
22245 if test $ac_cv_func_gethostbyname = no; then
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22247$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22248if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
22249 $as_echo_n "(cached) " >&6
22250else
22251 ac_check_lib_save_LIBS=$LIBS
22252LIBS="-lnsl $LIBS"
22253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254/* end confdefs.h. */
22255
22256/* Override any GCC internal prototype to avoid an error.
22257 Use char because int might match the return type of a GCC
22258 builtin and then its argument prototype would still apply. */
22259#ifdef __cplusplus
22260extern "C"
22261#endif
22262char gethostbyname ();
22263int
22264main ()
22265{
22266return gethostbyname ();
22267 ;
22268 return 0;
22269}
22270_ACEOF
22271if ac_fn_c_try_link "$LINENO"; then :
22272 ac_cv_lib_nsl_gethostbyname=yes
22273else
22274 ac_cv_lib_nsl_gethostbyname=no
22275fi
22276rm -f core conftest.err conftest.$ac_objext \
22277 conftest$ac_exeext conftest.$ac_ext
22278LIBS=$ac_check_lib_save_LIBS
22279fi
22280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22281$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22282if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
22283 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22284fi
22285
22286 if test $ac_cv_lib_nsl_gethostbyname = no; then
22287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
22288$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
22289if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
22290 $as_echo_n "(cached) " >&6
22291else
22292 ac_check_lib_save_LIBS=$LIBS
22293LIBS="-lbsd $LIBS"
22294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22295/* end confdefs.h. */
22296
22297/* Override any GCC internal prototype to avoid an error.
22298 Use char because int might match the return type of a GCC
22299 builtin and then its argument prototype would still apply. */
22300#ifdef __cplusplus
22301extern "C"
22302#endif
22303char gethostbyname ();
22304int
22305main ()
22306{
22307return gethostbyname ();
22308 ;
22309 return 0;
22310}
22311_ACEOF
22312if ac_fn_c_try_link "$LINENO"; then :
22313 ac_cv_lib_bsd_gethostbyname=yes
22314else
22315 ac_cv_lib_bsd_gethostbyname=no
22316fi
22317rm -f core conftest.err conftest.$ac_objext \
22318 conftest$ac_exeext conftest.$ac_ext
22319LIBS=$ac_check_lib_save_LIBS
22320fi
22321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
22322$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
22323if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
22324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22325fi
22326
22327 fi
22328 fi
22329
22330 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22331 # socket/setsockopt and other routines are undefined under SCO ODT
22332 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22333 # on later versions), says Simon Leinen: it contains gethostby*
22334 # variants that don't use the name server (or something). -lsocket
22335 # must be given before -lnsl if both are needed. We assume that
22336 # if connect needs -lnsl, so does gethostbyname.
22337 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22338if test "x$ac_cv_func_connect" = x""yes; then :
22339
22340fi
22341
22342 if test $ac_cv_func_connect = no; then
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
22344$as_echo_n "checking for connect in -lsocket... " >&6; }
22345if test "${ac_cv_lib_socket_connect+set}" = set; then :
22346 $as_echo_n "(cached) " >&6
22347else
22348 ac_check_lib_save_LIBS=$LIBS
22349LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22351/* end confdefs.h. */
22352
22353/* Override any GCC internal prototype to avoid an error.
22354 Use char because int might match the return type of a GCC
22355 builtin and then its argument prototype would still apply. */
22356#ifdef __cplusplus
22357extern "C"
22358#endif
22359char connect ();
22360int
22361main ()
22362{
22363return connect ();
22364 ;
22365 return 0;
22366}
22367_ACEOF
22368if ac_fn_c_try_link "$LINENO"; then :
22369 ac_cv_lib_socket_connect=yes
22370else
22371 ac_cv_lib_socket_connect=no
22372fi
22373rm -f core conftest.err conftest.$ac_objext \
22374 conftest$ac_exeext conftest.$ac_ext
22375LIBS=$ac_check_lib_save_LIBS
22376fi
22377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
22378$as_echo "$ac_cv_lib_socket_connect" >&6; }
22379if test "x$ac_cv_lib_socket_connect" = x""yes; then :
22380 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22381fi
22382
22383 fi
22384
22385 # Guillermo Gomez says -lposix is necessary on A/UX.
22386 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
22387if test "x$ac_cv_func_remove" = x""yes; then :
22388
22389fi
22390
22391 if test $ac_cv_func_remove = no; then
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
22393$as_echo_n "checking for remove in -lposix... " >&6; }
22394if test "${ac_cv_lib_posix_remove+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22396else
22397 ac_check_lib_save_LIBS=$LIBS
22398LIBS="-lposix $LIBS"
22399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400/* end confdefs.h. */
22401
22402/* Override any GCC internal prototype to avoid an error.
22403 Use char because int might match the return type of a GCC
22404 builtin and then its argument prototype would still apply. */
22405#ifdef __cplusplus
22406extern "C"
22407#endif
22408char remove ();
22409int
22410main ()
22411{
22412return remove ();
22413 ;
22414 return 0;
22415}
22416_ACEOF
22417if ac_fn_c_try_link "$LINENO"; then :
22418 ac_cv_lib_posix_remove=yes
22419else
22420 ac_cv_lib_posix_remove=no
22421fi
22422rm -f core conftest.err conftest.$ac_objext \
22423 conftest$ac_exeext conftest.$ac_ext
22424LIBS=$ac_check_lib_save_LIBS
22425fi
22426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
22427$as_echo "$ac_cv_lib_posix_remove" >&6; }
22428if test "x$ac_cv_lib_posix_remove" = x""yes; then :
22429 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22430fi
22431
22432 fi
22433
22434 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22435 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
22436if test "x$ac_cv_func_shmat" = x""yes; then :
22437
22438fi
22439
22440 if test $ac_cv_func_shmat = no; then
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
22442$as_echo_n "checking for shmat in -lipc... " >&6; }
22443if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
22444 $as_echo_n "(cached) " >&6
22445else
22446 ac_check_lib_save_LIBS=$LIBS
22447LIBS="-lipc $LIBS"
22448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22449/* end confdefs.h. */
22450
22451/* Override any GCC internal prototype to avoid an error.
22452 Use char because int might match the return type of a GCC
22453 builtin and then its argument prototype would still apply. */
22454#ifdef __cplusplus
22455extern "C"
22456#endif
22457char shmat ();
22458int
22459main ()
22460{
22461return shmat ();
22462 ;
22463 return 0;
22464}
22465_ACEOF
22466if ac_fn_c_try_link "$LINENO"; then :
22467 ac_cv_lib_ipc_shmat=yes
22468else
22469 ac_cv_lib_ipc_shmat=no
22470fi
22471rm -f core conftest.err conftest.$ac_objext \
22472 conftest$ac_exeext conftest.$ac_ext
22473LIBS=$ac_check_lib_save_LIBS
22474fi
22475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
22476$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
22477if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
22478 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22479fi
22480
22481 fi
22482 fi
22483
22484 # Check for libraries that X11R6 Xt/Xaw programs need.
22485 ac_save_LDFLAGS=$LDFLAGS
22486 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22487 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22488 # check for ICE first), but we must link in the order -lSM -lICE or
22489 # we get undefined symbols. So assume we have SM if we have ICE.
22490 # These have to be linked with before -lX11, unlike the other
22491 # libraries we check for below, so use a different variable.
22492 # John Interrante, Karl Berry
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
22494$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
22495if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
22496 $as_echo_n "(cached) " >&6
22497else
22498 ac_check_lib_save_LIBS=$LIBS
22499LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22501/* end confdefs.h. */
22502
22503/* Override any GCC internal prototype to avoid an error.
22504 Use char because int might match the return type of a GCC
22505 builtin and then its argument prototype would still apply. */
22506#ifdef __cplusplus
22507extern "C"
22508#endif
22509char IceConnectionNumber ();
22510int
22511main ()
22512{
22513return IceConnectionNumber ();
22514 ;
22515 return 0;
22516}
22517_ACEOF
22518if ac_fn_c_try_link "$LINENO"; then :
22519 ac_cv_lib_ICE_IceConnectionNumber=yes
22520else
22521 ac_cv_lib_ICE_IceConnectionNumber=no
22522fi
22523rm -f core conftest.err conftest.$ac_objext \
22524 conftest$ac_exeext conftest.$ac_ext
22525LIBS=$ac_check_lib_save_LIBS
22526fi
22527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22528$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
22529if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
22530 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22531fi
22532
22533 LDFLAGS=$ac_save_LDFLAGS
22534
22535fi
22536
22537
22538ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default"
22539if test "x$ac_cv_header_X11_X_h" = x""yes; then :
22540 have_dep="yes"
22541fi
22542
22543
22544
22545if test "x${have_dep}" = "xyes" ; then
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateImage in -lX11" >&5
22547$as_echo_n "checking for XCreateImage in -lX11... " >&6; }
22548if test "${ac_cv_lib_X11_XCreateImage+set}" = set; then :
22549 $as_echo_n "(cached) " >&6
22550else
22551 ac_check_lib_save_LIBS=$LIBS
22552LIBS="-lX11 $LIBS"
22553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22554/* end confdefs.h. */
22555
22556/* Override any GCC internal prototype to avoid an error.
22557 Use char because int might match the return type of a GCC
22558 builtin and then its argument prototype would still apply. */
22559#ifdef __cplusplus
22560extern "C"
22561#endif
22562char XCreateImage ();
22563int
22564main ()
22565{
22566return XCreateImage ();
22567 ;
22568 return 0;
22569}
22570_ACEOF
22571if ac_fn_c_try_link "$LINENO"; then :
22572 ac_cv_lib_X11_XCreateImage=yes
22573else
22574 ac_cv_lib_X11_XCreateImage=no
22575fi
22576rm -f core conftest.err conftest.$ac_objext \
22577 conftest$ac_exeext conftest.$ac_ext
22578LIBS=$ac_check_lib_save_LIBS
22579fi
22580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateImage" >&5
22581$as_echo "$ac_cv_lib_X11_XCreateImage" >&6; }
22582if test "x$ac_cv_lib_X11_XCreateImage" = x""yes; then :
22583 have_dep="yes"
22584else
22585 have_dep="no"
22586fi
22587
22588fi
22589
22590if test "x${have_dep}" = "xyes" ; then
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmCreateImage in -lXext" >&5
22592$as_echo_n "checking for XShmCreateImage in -lXext... " >&6; }
22593if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then :
22594 $as_echo_n "(cached) " >&6
22595else
22596 ac_check_lib_save_LIBS=$LIBS
22597LIBS="-lXext $LIBS"
22598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599/* end confdefs.h. */
22600
22601/* Override any GCC internal prototype to avoid an error.
22602 Use char because int might match the return type of a GCC
22603 builtin and then its argument prototype would still apply. */
22604#ifdef __cplusplus
22605extern "C"
22606#endif
22607char XShmCreateImage ();
22608int
22609main ()
22610{
22611return XShmCreateImage ();
22612 ;
22613 return 0;
22614}
22615_ACEOF
22616if ac_fn_c_try_link "$LINENO"; then :
22617 ac_cv_lib_Xext_XShmCreateImage=yes
22618else
22619 ac_cv_lib_Xext_XShmCreateImage=no
22620fi
22621rm -f core conftest.err conftest.$ac_objext \
22622 conftest$ac_exeext conftest.$ac_ext
22623LIBS=$ac_check_lib_save_LIBS
22624fi
22625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmCreateImage" >&5
22626$as_echo "$ac_cv_lib_Xext_XShmCreateImage" >&6; }
22627if test "x$ac_cv_lib_Xext_XShmCreateImage" = x""yes; then :
22628 have_dep="yes"
22629else
22630 have_dep="no"
22631fi
22632
22633fi
22634
22635if test "x${have_dep}" = "xyes" ; then
22636 if test "xno" = "xyes" ; then
22637 x_libs="${x_libs} -lX11 -lXext"
22638 else
22639 x_dir=${x_dir:-/usr/X11R6}
22640 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
22641 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
22642 fi
22643 evas_engine_software_16_x11_cflags="${x_cflags}"
22644 evas_engine_software_16_x11_libs="${x_libs}"
22645fi
22646
22647
22648
22649
22650if test "x${have_dep}" = "xyes" ; then
22651 have_engine="yes"
22652else
22653 have_engine="no"
22654fi
22655
22656
22657fi
22658
22659if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
22660 as_fn_error $? "Software X11 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5
22661fi
22662
22663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software X11 16 bits rendering backend will be built" >&5
22664$as_echo_n "checking whether Software X11 16 bits rendering backend will be built... " >&6; }
22665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
22666$as_echo "${have_engine}" >&6; }
22667
22668if test "x${have_engine}" = "xyes" ; then
22669 if test "x${want_engine}" = "xstatic" ; then
22670 have_evas_engine_software_16_x11="static"
22671 want_static_engine="yes"
22672 else
22673 have_evas_engine_software_16_x11="yes"
22674 fi
22675fi
22676
22677if test "x${have_engine}" = "xyes" ; then
22678
22679$as_echo "#define BUILD_ENGINE_SOFTWARE_16_X11 1" >>confdefs.h
22680
22681fi
22682
22683 if test "x${have_engine}" = "xyes"; then
22684 BUILD_ENGINE_SOFTWARE_16_X11_TRUE=
22685 BUILD_ENGINE_SOFTWARE_16_X11_FALSE='#'
22686else
22687 BUILD_ENGINE_SOFTWARE_16_X11_TRUE='#'
22688 BUILD_ENGINE_SOFTWARE_16_X11_FALSE=
22689fi
22690
22691
22692if test "x${want_static_engine}" = "xyes" ; then
22693
22694$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_X11 1" >>confdefs.h
22695
22696 have_static_module="yes"
22697fi
22698
22699 if test "x${want_static_engine}" = "xyes"; then
22700 EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE=
22701 EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE='#'
22702else
22703 EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE='#'
22704 EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE=
22705fi
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716want_engine="${want_evas_engine_software_16_ddraw}"
22717want_static_engine="no"
22718have_engine="no"
22719have_evas_engine_software_16_ddraw="no"
22720
22721# Check whether --enable-software-16-ddraw was given.
22722if test "${enable_software_16_ddraw+set}" = set; then :
22723 enableval=$enable_software_16_ddraw;
22724 if test "x${enableval}" = "xyes" ; then
22725 want_engine="yes"
22726 else
22727 if test "x${enableval}" = "xstatic" ; then
22728 want_engine="static"
22729 else
22730 want_engine="no"
22731 fi
22732 fi
22733
22734fi
22735
22736
22737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software DirectDraw 16 bits rendering backend" >&5
22738$as_echo_n "checking whether to enable Software DirectDraw 16 bits rendering backend... " >&6; }
22739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
22740$as_echo "${want_engine}" >&6; }
22741
22742if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
22743
22744
22745have_dep="no"
22746evas_engine_software_16_ddraw_cflags=""
22747evas_engine_software_16_ddraw_libs=""
22748
22749ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
22750if test "x$ac_cv_header_ddraw_h" = x""yes; then :
22751
22752 have_dep="yes"
22753 evas_engine_software_16_ddraw_libs="-lddraw -lgdi32"
22754
22755
22756fi
22757
22758
22759
22760
22761
22762
22763if test "x${have_dep}" = "xyes" ; then
22764 have_engine="yes"
22765else
22766 have_engine="no"
22767fi
22768
22769
22770fi
22771
22772if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
22773 as_fn_error $? "Software DirectDraw 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5
22774fi
22775
22776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software DirectDraw 16 bits rendering backend will be built" >&5
22777$as_echo_n "checking whether Software DirectDraw 16 bits rendering backend will be built... " >&6; }
22778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
22779$as_echo "${have_engine}" >&6; }
22780
22781if test "x${have_engine}" = "xyes" ; then
22782 if test "x${want_engine}" = "xstatic" ; then
22783 have_evas_engine_software_16_ddraw="static"
22784 want_static_engine="yes"
22785 else
22786 have_evas_engine_software_16_ddraw="yes"
22787 fi
22788fi
22789
22790if test "x${have_engine}" = "xyes" ; then
22791
22792$as_echo "#define BUILD_ENGINE_SOFTWARE_16_DDRAW 1" >>confdefs.h
22793
22794fi
22795
22796 if test "x${have_engine}" = "xyes"; then
22797 BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE=
22798 BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE='#'
22799else
22800 BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE='#'
22801 BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE=
22802fi
22803
22804
22805if test "x${want_static_engine}" = "xyes" ; then
22806
22807$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW 1" >>confdefs.h
22808
22809 have_static_module="yes"
22810fi
22811
22812 if test "x${want_static_engine}" = "xyes"; then
22813 EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE=
22814 EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE='#'
22815else
22816 EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE='#'
22817 EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE=
22818fi
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829want_engine="${want_evas_engine_software_16_wince}"
22830want_static_engine="no"
22831have_engine="no"
22832have_evas_engine_software_16_wince="no"
22833
22834# Check whether --enable-software-16-wince was given.
22835if test "${enable_software_16_wince+set}" = set; then :
22836 enableval=$enable_software_16_wince;
22837 if test "x${enableval}" = "xyes" ; then
22838 want_engine="yes"
22839 else
22840 if test "x${enableval}" = "xstatic" ; then
22841 want_engine="static"
22842 else
22843 want_engine="no"
22844 fi
22845 fi
22846
22847fi
22848
22849
22850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software Windows CE 16 bits rendering backend" >&5
22851$as_echo_n "checking whether to enable Software Windows CE 16 bits rendering backend... " >&6; }
22852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
22853$as_echo "${want_engine}" >&6; }
22854
22855if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
22856
22857
22858have_dep="yes"
22859evas_engine_software_16_wince_cflags=""
22860evas_engine_software_16_wince_libs=""
22861
22862
22863
22864
22865if test "x${have_dep}" = "xyes" ; then
22866 have_engine="yes"
22867else
22868 have_engine="no"
22869fi
22870
22871
22872fi
22873
22874if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
22875 as_fn_error $? "Software Windows CE 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5
22876fi
22877
22878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software Windows CE 16 bits rendering backend will be built" >&5
22879$as_echo_n "checking whether Software Windows CE 16 bits rendering backend will be built... " >&6; }
22880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
22881$as_echo "${have_engine}" >&6; }
22882
22883if test "x${have_engine}" = "xyes" ; then
22884 if test "x${want_engine}" = "xstatic" ; then
22885 have_evas_engine_software_16_wince="static"
22886 want_static_engine="yes"
22887 else
22888 have_evas_engine_software_16_wince="yes"
22889 fi
22890fi
22891
22892if test "x${have_engine}" = "xyes" ; then
22893
22894$as_echo "#define BUILD_ENGINE_SOFTWARE_16_WINCE 1" >>confdefs.h
22895
22896fi
22897
22898 if test "x${have_engine}" = "xyes"; then
22899 BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE=
22900 BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE='#'
22901else
22902 BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE='#'
22903 BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE=
22904fi
22905
22906
22907if test "x${want_static_engine}" = "xyes" ; then
22908
22909$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_WINCE 1" >>confdefs.h
22910
22911 have_static_module="yes"
22912fi
22913
22914 if test "x${want_static_engine}" = "xyes"; then
22915 EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE=
22916 EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE='#'
22917else
22918 EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE='#'
22919 EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE=
22920fi
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931want_engine="${want_evas_engine_software_16_sdl}"
22932want_static_engine="no"
22933have_engine="no"
22934have_evas_engine_software_16_sdl="no"
22935
22936# Check whether --enable-software-16-sdl was given.
22937if test "${enable_software_16_sdl+set}" = set; then :
22938 enableval=$enable_software_16_sdl;
22939 if test "x${enableval}" = "xyes" ; then
22940 want_engine="yes"
22941 else
22942 if test "x${enableval}" = "xstatic" ; then
22943 want_engine="static"
22944 else
22945 want_engine="no"
22946 fi
22947 fi
22948
22949fi
22950
22951
22952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software SDL 16 bits rendering backend" >&5
22953$as_echo_n "checking whether to enable Software SDL 16 bits rendering backend... " >&6; }
22954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
22955$as_echo "${want_engine}" >&6; }
22956
22957if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
22958
22959
22960requirement=""
22961have_dep="no"
22962evas_engine_software_16_sdl_cflags=""
22963evas_engine_software_16_sdl_libs=""
22964
22965
22966pkg_failed=no
22967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
22968$as_echo_n "checking for SDL... " >&6; }
22969
22970if test -n "$SDL_CFLAGS"; then
22971 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
22972 elif test -n "$PKG_CONFIG"; then
22973 if test -n "$PKG_CONFIG" && \
22974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
22975 ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
22976 ac_status=$?
22977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22978 test $ac_status = 0; }; then
22979 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null`
22980else
22981 pkg_failed=yes
22982fi
22983 else
22984 pkg_failed=untried
22985fi
22986if test -n "$SDL_LIBS"; then
22987 pkg_cv_SDL_LIBS="$SDL_LIBS"
22988 elif test -n "$PKG_CONFIG"; then
22989 if test -n "$PKG_CONFIG" && \
22990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
22991 ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
22992 ac_status=$?
22993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22994 test $ac_status = 0; }; then
22995 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null`
22996else
22997 pkg_failed=yes
22998fi
22999 else
23000 pkg_failed=untried
23001fi
23002
23003
23004
23005if test $pkg_failed = yes; then
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23007$as_echo "no" >&6; }
23008
23009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23010 _pkg_short_errors_supported=yes
23011else
23012 _pkg_short_errors_supported=no
23013fi
23014 if test $_pkg_short_errors_supported = yes; then
23015 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1`
23016 else
23017 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1`
23018 fi
23019 # Put the nasty error message in config.log where it belongs
23020 echo "$SDL_PKG_ERRORS" >&5
23021
23022 as_fn_error $? "Package requirements (sdl >= 1.2.0) were not met:
23023
23024$SDL_PKG_ERRORS
23025
23026Consider adjusting the PKG_CONFIG_PATH environment variable if you
23027installed software in a non-standard prefix.
23028
23029Alternatively, you may set the environment variables SDL_CFLAGS
23030and SDL_LIBS to avoid the need to call pkg-config.
23031See the pkg-config man page for more details." "$LINENO" 5
23032elif test $pkg_failed = untried; then
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23034$as_echo "no" >&6; }
23035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23037as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
23038is in your PATH or set the PKG_CONFIG environment variable to the full
23039path to pkg-config.
23040
23041Alternatively, you may set the environment variables SDL_CFLAGS
23042and SDL_LIBS to avoid the need to call pkg-config.
23043See the pkg-config man page for more details.
23044
23045To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23046See \`config.log' for more details" "$LINENO" 5 ; }
23047else
23048 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
23049 SDL_LIBS=$pkg_cv_SDL_LIBS
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23051$as_echo "yes" >&6; }
23052
23053 have_dep="yes"
23054 requirement="sdl"
23055 evas_engine_software_16_sdl_cflags="${SDL_CFLAGS}"
23056 evas_engine_software_16_sdl_libs="${SDL_LIBS}"
23057
23058
23059fi
23060
23061
23062
23063
23064if test "x${want_engine}" = "xstatic" ; then
23065 requirement_evas="${requirement} ${requirement_evas}"
23066fi
23067
23068if test "x${have_dep}" = "xyes" ; then
23069 have_engine="yes"
23070else
23071 have_engine="no"
23072fi
23073
23074
23075fi
23076
23077if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
23078 as_fn_error $? "Software SDL 16 bits dependencies not found (strict dependencies checking)" "$LINENO" 5
23079fi
23080
23081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software SDL 16 bits rendering backend will be built" >&5
23082$as_echo_n "checking whether Software SDL 16 bits rendering backend will be built... " >&6; }
23083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
23084$as_echo "${have_engine}" >&6; }
23085
23086if test "x${have_engine}" = "xyes" ; then
23087 if test "x${want_engine}" = "xstatic" ; then
23088 have_evas_engine_software_16_sdl="static"
23089 want_static_engine="yes"
23090 else
23091 have_evas_engine_software_16_sdl="yes"
23092 fi
23093fi
23094
23095if test "x${have_engine}" = "xyes" ; then
23096
23097$as_echo "#define BUILD_ENGINE_SOFTWARE_16_SDL 1" >>confdefs.h
23098
23099fi
23100
23101 if test "x${have_engine}" = "xyes"; then
23102 BUILD_ENGINE_SOFTWARE_16_SDL_TRUE=
23103 BUILD_ENGINE_SOFTWARE_16_SDL_FALSE='#'
23104else
23105 BUILD_ENGINE_SOFTWARE_16_SDL_TRUE='#'
23106 BUILD_ENGINE_SOFTWARE_16_SDL_FALSE=
23107fi
23108
23109
23110if test "x${want_static_engine}" = "xyes" ; then
23111
23112$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16_SDL 1" >>confdefs.h
23113
23114 have_static_module="yes"
23115fi
23116
23117 if test "x${want_static_engine}" = "xyes"; then
23118 EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE=
23119 EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE='#'
23120else
23121 EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE='#'
23122 EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE=
23123fi
23124
23125
23126
23127
23128
23129
23130
23131# SDL primitive
23132sdl_primitive="no"
23133
23134# Check whether --enable-sdl-primitive was given.
23135if test "${enable_sdl_primitive+set}" = set; then :
23136 enableval=$enable_sdl_primitive; sdl_primitive=${enableval}
23137
23138fi
23139
23140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SDL primitive when possible" >&5
23141$as_echo_n "checking whether to use SDL primitive when possible... " >&6; }
23142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sdl_primitive}" >&5
23143$as_echo "${sdl_primitive}" >&6; }
23144
23145if test "x${sdl_primitive}" = "xyes" ; then
23146
23147$as_echo "#define ENGINE_SDL_PRIMITIVE 1" >>confdefs.h
23148
23149fi
23150
23151# if software generic need to be build as part of libevas.so
23152have_static_software_generic="no"
23153# Check whether --enable-static-software-generic was given.
23154if test "${enable_static_software_generic+set}" = set; then :
23155 enableval=$enable_static_software_generic; have_static_software_generic=${enableval}
23156
23157fi
23158
23159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build software generic engine as part of libevas" >&5
23160$as_echo_n "checking Whether to build software generic engine as part of libevas... " >&6; }
23161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_static_software_generic}" >&5
23162$as_echo "${have_static_software_generic}" >&6; }
23163
23164if test "x${have_static_module}" = "xyes" -a "x${have_static_software_generic}" = "xno"; then
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Forcing --enable-static-software-generic as engines must be compiled statically" >&5
23166$as_echo "$as_me: WARNING: Forcing --enable-static-software-generic as engines must be compiled statically" >&2;}
23167 have_static_software_generic="yes"
23168fi
23169
23170 if test "x${have_static_software_generic}" = "xyes"; then
23171 EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE=
23172 EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE='#'
23173else
23174 EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE='#'
23175 EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE=
23176fi
23177
23178if test "x${have_static_software_generic}" = "xyes"; then
23179
23180$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_GENERIC 1" >>confdefs.h
23181
23182fi
23183
23184
23185######## Software Engine ########
23186have_evas_engine_software_x11="no"
23187have_evas_engine_software_xcb="no"
23188have_evas_engine_software_xlib="no"
23189build_software_xcb=
23190
23191## XCB Checks ##
23192want_xcb="no"
23193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Software XCB Engine" >&5
23194$as_echo_n "checking whether to build Software XCB Engine... " >&6; }
23195# Check whether --enable-software-xcb was given.
23196if test "${enable_software_xcb+set}" = set; then :
23197 enableval=$enable_software_xcb; want_xcb=$enableval
23198
23199fi
23200
23201if test "x$want_xcb" != "xno" ; then
23202
23203
23204
23205want_engine="${want_evas_engine_software_xcb}"
23206want_static_engine="no"
23207have_engine="no"
23208have_evas_engine_software_xcb="no"
23209
23210# Check whether --enable-software-xcb was given.
23211if test "${enable_software_xcb+set}" = set; then :
23212 enableval=$enable_software_xcb;
23213 if test "x${enableval}" = "xyes" ; then
23214 want_engine="yes"
23215 else
23216 if test "x${enableval}" = "xstatic" ; then
23217 want_engine="static"
23218 else
23219 want_engine="no"
23220 fi
23221 fi
23222
23223fi
23224
23225
23226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software XCB rendering backend" >&5
23227$as_echo_n "checking whether to enable Software XCB rendering backend... " >&6; }
23228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
23229$as_echo "${want_engine}" >&6; }
23230
23231if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
23232
23233
23234requirement=""
23235have_dep="no"
23236evas_engine_software_xcb_cflags=""
23237evas_engine_software_xcb_libs=""
23238
23239
23240pkg_failed=no
23241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
23242$as_echo_n "checking for XCB... " >&6; }
23243
23244if test -n "$XCB_CFLAGS"; then
23245 pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
23246 elif test -n "$PKG_CONFIG"; then
23247 if test -n "$PKG_CONFIG" && \
23248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5
23249 ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5
23250 ac_status=$?
23251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23252 test $ac_status = 0; }; then
23253 pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null`
23254else
23255 pkg_failed=yes
23256fi
23257 else
23258 pkg_failed=untried
23259fi
23260if test -n "$XCB_LIBS"; then
23261 pkg_cv_XCB_LIBS="$XCB_LIBS"
23262 elif test -n "$PKG_CONFIG"; then
23263 if test -n "$PKG_CONFIG" && \
23264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-shm xcb-image >= 0.2.1 pixman-1\""; } >&5
23265 ($PKG_CONFIG --exists --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1") 2>&5
23266 ac_status=$?
23267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23268 test $ac_status = 0; }; then
23269 pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>/dev/null`
23270else
23271 pkg_failed=yes
23272fi
23273 else
23274 pkg_failed=untried
23275fi
23276
23277
23278
23279if test $pkg_failed = yes; then
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23281$as_echo "no" >&6; }
23282
23283if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23284 _pkg_short_errors_supported=yes
23285else
23286 _pkg_short_errors_supported=no
23287fi
23288 if test $_pkg_short_errors_supported = yes; then
23289 XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1`
23290 else
23291 XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb xcb-shm xcb-image >= 0.2.1 pixman-1" 2>&1`
23292 fi
23293 # Put the nasty error message in config.log where it belongs
23294 echo "$XCB_PKG_ERRORS" >&5
23295
23296
23297 have_dep="no"
23298
23299
23300elif test $pkg_failed = untried; then
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302$as_echo "no" >&6; }
23303
23304 have_dep="no"
23305
23306
23307else
23308 XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
23309 XCB_LIBS=$pkg_cv_XCB_LIBS
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23311$as_echo "yes" >&6; }
23312
23313 have_dep="yes"
23314 requirement="xcb xcb-shm xcb-image pixman-1"
23315 evas_engine_software_xcb_cflags="${XCB_CFLAGS}"
23316 evas_engine_software_xcb_libs="${XCB_LIBS}"
23317
23318fi
23319
23320
23321
23322
23323if test "x${want_engine}" = "xstatic" ; then
23324 requirement_evas="${requirement} ${requirement_evas}"
23325fi
23326
23327if test "x${have_dep}" = "xyes" ; then
23328 have_engine="yes"
23329else
23330 have_engine="no"
23331fi
23332
23333
23334fi
23335
23336if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
23337 as_fn_error $? "Software XCB dependencies not found (strict dependencies checking)" "$LINENO" 5
23338fi
23339
23340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software XCB rendering backend will be built" >&5
23341$as_echo_n "checking whether Software XCB rendering backend will be built... " >&6; }
23342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
23343$as_echo "${have_engine}" >&6; }
23344
23345if test "x${have_engine}" = "xyes" ; then
23346 if test "x${want_engine}" = "xstatic" ; then
23347 have_evas_engine_software_xcb="static"
23348 want_static_engine="yes"
23349 else
23350 have_evas_engine_software_xcb="yes"
23351 fi
23352fi
23353
23354if test "x${have_engine}" = "xyes" ; then
23355
23356$as_echo "#define BUILD_ENGINE_SOFTWARE_XCB 1" >>confdefs.h
23357
23358fi
23359
23360 if test "x${have_engine}" = "xyes"; then
23361 BUILD_ENGINE_SOFTWARE_XCB_TRUE=
23362 BUILD_ENGINE_SOFTWARE_XCB_FALSE='#'
23363else
23364 BUILD_ENGINE_SOFTWARE_XCB_TRUE='#'
23365 BUILD_ENGINE_SOFTWARE_XCB_FALSE=
23366fi
23367
23368
23369if test "x${want_static_engine}" = "xyes" ; then
23370
23371$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_XCB 1" >>confdefs.h
23372
23373 have_static_module="yes"
23374fi
23375
23376 if test "x${want_static_engine}" = "xyes"; then
23377 EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE=
23378 EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE='#'
23379else
23380 EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE='#'
23381 EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE=
23382fi
23383
23384
23385
23386
23387
23388
23389 if test "x$have_evas_engine_software_xcb" != "xno" ; then
23390 build_software_xcb="yes"
23391 have_evas_engine_software_x11="yes"
23392
23393cat >>confdefs.h <<_ACEOF
23394#define BUILD_ENGINE_SOFTWARE_X11 1
23395_ACEOF
23396
23397
23398cat >>confdefs.h <<_ACEOF
23399#define BUILD_ENGINE_SOFTWARE_XCB 1
23400_ACEOF
23401
23402 fi
23403else
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23405$as_echo "no" >&6; }
23406 build_software_xcb="no"
23407fi
23408
23409## If we are not building XCB, then we can build XLib ##
23410
23411if test "x$build_software_xcb" = "xno" ; then
23412
23413
23414
23415want_engine="${want_evas_engine_software_xlib}"
23416want_static_engine="no"
23417have_engine="no"
23418have_evas_engine_software_xlib="no"
23419
23420# Check whether --enable-software-xlib was given.
23421if test "${enable_software_xlib+set}" = set; then :
23422 enableval=$enable_software_xlib;
23423 if test "x${enableval}" = "xyes" ; then
23424 want_engine="yes"
23425 else
23426 if test "x${enableval}" = "xstatic" ; then
23427 want_engine="static"
23428 else
23429 want_engine="no"
23430 fi
23431 fi
23432
23433fi
23434
23435
23436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Software Xlib rendering backend" >&5
23437$as_echo_n "checking whether to enable Software Xlib rendering backend... " >&6; }
23438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
23439$as_echo "${want_engine}" >&6; }
23440
23441if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
23442
23443
23444have_dep="no"
23445evas_engine_software_xlib_cflags=""
23446evas_engine_software_xlib_libs=""
23447
23448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
23449$as_echo_n "checking for X... " >&6; }
23450
23451
23452# Check whether --with-x was given.
23453if test "${with_x+set}" = set; then :
23454 withval=$with_x;
23455fi
23456
23457# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23458if test "x$with_x" = xno; then
23459 # The user explicitly disabled X.
23460 have_x=disabled
23461else
23462 case $x_includes,$x_libraries in #(
23463 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
23464 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
23465 $as_echo_n "(cached) " >&6
23466else
23467 # One or both of the vars are not set, and there is no cached value.
23468ac_x_includes=no ac_x_libraries=no
23469rm -f -r conftest.dir
23470if mkdir conftest.dir; then
23471 cd conftest.dir
23472 cat >Imakefile <<'_ACEOF'
23473incroot:
23474 @echo incroot='${INCROOT}'
23475usrlibdir:
23476 @echo usrlibdir='${USRLIBDIR}'
23477libdir:
23478 @echo libdir='${LIBDIR}'
23479_ACEOF
23480 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23481 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
23482 for ac_var in incroot usrlibdir libdir; do
23483 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23484 done
23485 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23486 for ac_extension in a so sl dylib la dll; do
23487 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23488 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23489 ac_im_usrlibdir=$ac_im_libdir; break
23490 fi
23491 done
23492 # Screen out bogus values from the imake configuration. They are
23493 # bogus both because they are the default anyway, and because
23494 # using them would break gcc on systems where it needs fixed includes.
23495 case $ac_im_incroot in
23496 /usr/include) ac_x_includes= ;;
23497 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23498 esac
23499 case $ac_im_usrlibdir in
23500 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23501 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23502 esac
23503 fi
23504 cd ..
23505 rm -f -r conftest.dir
23506fi
23507
23508# Standard set of common directories for X headers.
23509# Check X11 before X11Rn because it is often a symlink to the current release.
23510ac_x_header_dirs='
23511/usr/X11/include
23512/usr/X11R7/include
23513/usr/X11R6/include
23514/usr/X11R5/include
23515/usr/X11R4/include
23516
23517/usr/include/X11
23518/usr/include/X11R7
23519/usr/include/X11R6
23520/usr/include/X11R5
23521/usr/include/X11R4
23522
23523/usr/local/X11/include
23524/usr/local/X11R7/include
23525/usr/local/X11R6/include
23526/usr/local/X11R5/include
23527/usr/local/X11R4/include
23528
23529/usr/local/include/X11
23530/usr/local/include/X11R7
23531/usr/local/include/X11R6
23532/usr/local/include/X11R5
23533/usr/local/include/X11R4
23534
23535/usr/X386/include
23536/usr/x386/include
23537/usr/XFree86/include/X11
23538
23539/usr/include
23540/usr/local/include
23541/usr/unsupported/include
23542/usr/athena/include
23543/usr/local/x11r5/include
23544/usr/lpp/Xamples/include
23545
23546/usr/openwin/include
23547/usr/openwin/share/include'
23548
23549if test "$ac_x_includes" = no; then
23550 # Guess where to find include files, by looking for Xlib.h.
23551 # First, try using that file with no special directory specified.
23552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23553/* end confdefs.h. */
23554#include <X11/Xlib.h>
23555_ACEOF
23556if ac_fn_c_try_cpp "$LINENO"; then :
23557 # We can compile using X headers with no special include directory.
23558ac_x_includes=
23559else
23560 for ac_dir in $ac_x_header_dirs; do
23561 if test -r "$ac_dir/X11/Xlib.h"; then
23562 ac_x_includes=$ac_dir
23563 break
23564 fi
23565done
23566fi
23567rm -f conftest.err conftest.i conftest.$ac_ext
23568fi # $ac_x_includes = no
23569
23570if test "$ac_x_libraries" = no; then
23571 # Check for the libraries.
23572 # See if we find them without any special options.
23573 # Don't add to $LIBS permanently.
23574 ac_save_LIBS=$LIBS
23575 LIBS="-lX11 $LIBS"
23576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577/* end confdefs.h. */
23578#include <X11/Xlib.h>
23579int
23580main ()
23581{
23582XrmInitialize ()
23583 ;
23584 return 0;
23585}
23586_ACEOF
23587if ac_fn_c_try_link "$LINENO"; then :
23588 LIBS=$ac_save_LIBS
23589# We can link X programs with no special library path.
23590ac_x_libraries=
23591else
23592 LIBS=$ac_save_LIBS
23593for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23594do
23595 # Don't even attempt the hair of trying to link an X program!
23596 for ac_extension in a so sl dylib la dll; do
23597 if test -r "$ac_dir/libX11.$ac_extension"; then
23598 ac_x_libraries=$ac_dir
23599 break 2
23600 fi
23601 done
23602done
23603fi
23604rm -f core conftest.err conftest.$ac_objext \
23605 conftest$ac_exeext conftest.$ac_ext
23606fi # $ac_x_libraries = no
23607
23608case $ac_x_includes,$ac_x_libraries in #(
23609 no,* | *,no | *\'*)
23610 # Didn't find X, or a directory has "'" in its name.
23611 ac_cv_have_x="have_x=no";; #(
23612 *)
23613 # Record where we found X for the cache.
23614 ac_cv_have_x="have_x=yes\
23615 ac_x_includes='$ac_x_includes'\
23616 ac_x_libraries='$ac_x_libraries'"
23617esac
23618fi
23619;; #(
23620 *) have_x=yes;;
23621 esac
23622 eval "$ac_cv_have_x"
23623fi # $with_x != no
23624
23625if test "$have_x" != yes; then
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
23627$as_echo "$have_x" >&6; }
23628 no_x=yes
23629else
23630 # If each of the values was on the command line, it overrides each guess.
23631 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23632 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23633 # Update the cache value to reflect the command line values.
23634 ac_cv_have_x="have_x=yes\
23635 ac_x_includes='$x_includes'\
23636 ac_x_libraries='$x_libraries'"
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
23638$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23639fi
23640
23641if test "$no_x" = yes; then
23642 # Not all programs may use this symbol, but it does not hurt to define it.
23643
23644$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
23645
23646 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23647else
23648 if test -n "$x_includes"; then
23649 X_CFLAGS="$X_CFLAGS -I$x_includes"
23650 fi
23651
23652 # It would also be nice to do this for all -L options, not just this one.
23653 if test -n "$x_libraries"; then
23654 X_LIBS="$X_LIBS -L$x_libraries"
23655 # For Solaris; some versions of Sun CC require a space after -R and
23656 # others require no space. Words are not sufficient . . . .
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
23658$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23659 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23660 ac_xsave_c_werror_flag=$ac_c_werror_flag
23661 ac_c_werror_flag=yes
23662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23663/* end confdefs.h. */
23664
23665int
23666main ()
23667{
23668
23669 ;
23670 return 0;
23671}
23672_ACEOF
23673if ac_fn_c_try_link "$LINENO"; then :
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23675$as_echo "no" >&6; }
23676 X_LIBS="$X_LIBS -R$x_libraries"
23677else
23678 LIBS="$ac_xsave_LIBS -R $x_libraries"
23679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23680/* end confdefs.h. */
23681
23682int
23683main ()
23684{
23685
23686 ;
23687 return 0;
23688}
23689_ACEOF
23690if ac_fn_c_try_link "$LINENO"; then :
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23692$as_echo "yes" >&6; }
23693 X_LIBS="$X_LIBS -R $x_libraries"
23694else
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
23696$as_echo "neither works" >&6; }
23697fi
23698rm -f core conftest.err conftest.$ac_objext \
23699 conftest$ac_exeext conftest.$ac_ext
23700fi
23701rm -f core conftest.err conftest.$ac_objext \
23702 conftest$ac_exeext conftest.$ac_ext
23703 ac_c_werror_flag=$ac_xsave_c_werror_flag
23704 LIBS=$ac_xsave_LIBS
23705 fi
23706
23707 # Check for system-dependent libraries X programs must link with.
23708 # Do this before checking for the system-independent R6 libraries
23709 # (-lICE), since we may need -lsocket or whatever for X linking.
23710
23711 if test "$ISC" = yes; then
23712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23713 else
23714 # Martyn Johnson says this is needed for Ultrix, if the X
23715 # libraries were built with DECnet support. And Karl Berry says
23716 # the Alpha needs dnet_stub (dnet does not exist).
23717 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719/* end confdefs.h. */
23720
23721/* Override any GCC internal prototype to avoid an error.
23722 Use char because int might match the return type of a GCC
23723 builtin and then its argument prototype would still apply. */
23724#ifdef __cplusplus
23725extern "C"
23726#endif
23727char XOpenDisplay ();
23728int
23729main ()
23730{
23731return XOpenDisplay ();
23732 ;
23733 return 0;
23734}
23735_ACEOF
23736if ac_fn_c_try_link "$LINENO"; then :
23737
23738else
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
23740$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
23741if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
23742 $as_echo_n "(cached) " >&6
23743else
23744 ac_check_lib_save_LIBS=$LIBS
23745LIBS="-ldnet $LIBS"
23746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23747/* end confdefs.h. */
23748
23749/* Override any GCC internal prototype to avoid an error.
23750 Use char because int might match the return type of a GCC
23751 builtin and then its argument prototype would still apply. */
23752#ifdef __cplusplus
23753extern "C"
23754#endif
23755char dnet_ntoa ();
23756int
23757main ()
23758{
23759return dnet_ntoa ();
23760 ;
23761 return 0;
23762}
23763_ACEOF
23764if ac_fn_c_try_link "$LINENO"; then :
23765 ac_cv_lib_dnet_dnet_ntoa=yes
23766else
23767 ac_cv_lib_dnet_dnet_ntoa=no
23768fi
23769rm -f core conftest.err conftest.$ac_objext \
23770 conftest$ac_exeext conftest.$ac_ext
23771LIBS=$ac_check_lib_save_LIBS
23772fi
23773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23774$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23775if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
23776 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23777fi
23778
23779 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
23781$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
23782if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
23783 $as_echo_n "(cached) " >&6
23784else
23785 ac_check_lib_save_LIBS=$LIBS
23786LIBS="-ldnet_stub $LIBS"
23787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788/* end confdefs.h. */
23789
23790/* Override any GCC internal prototype to avoid an error.
23791 Use char because int might match the return type of a GCC
23792 builtin and then its argument prototype would still apply. */
23793#ifdef __cplusplus
23794extern "C"
23795#endif
23796char dnet_ntoa ();
23797int
23798main ()
23799{
23800return dnet_ntoa ();
23801 ;
23802 return 0;
23803}
23804_ACEOF
23805if ac_fn_c_try_link "$LINENO"; then :
23806 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23807else
23808 ac_cv_lib_dnet_stub_dnet_ntoa=no
23809fi
23810rm -f core conftest.err conftest.$ac_objext \
23811 conftest$ac_exeext conftest.$ac_ext
23812LIBS=$ac_check_lib_save_LIBS
23813fi
23814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23815$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23816if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
23817 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23818fi
23819
23820 fi
23821fi
23822rm -f core conftest.err conftest.$ac_objext \
23823 conftest$ac_exeext conftest.$ac_ext
23824 LIBS="$ac_xsave_LIBS"
23825
23826 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23827 # to get the SysV transport functions.
23828 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23829 # needs -lnsl.
23830 # The nsl library prevents programs from opening the X display
23831 # on Irix 5.2, according to T.E. Dickey.
23832 # The functions gethostbyname, getservbyname, and inet_addr are
23833 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23834 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23835if test "x$ac_cv_func_gethostbyname" = x""yes; then :
23836
23837fi
23838
23839 if test $ac_cv_func_gethostbyname = no; then
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
23841$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
23842if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
23843 $as_echo_n "(cached) " >&6
23844else
23845 ac_check_lib_save_LIBS=$LIBS
23846LIBS="-lnsl $LIBS"
23847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848/* end confdefs.h. */
23849
23850/* Override any GCC internal prototype to avoid an error.
23851 Use char because int might match the return type of a GCC
23852 builtin and then its argument prototype would still apply. */
23853#ifdef __cplusplus
23854extern "C"
23855#endif
23856char gethostbyname ();
23857int
23858main ()
23859{
23860return gethostbyname ();
23861 ;
23862 return 0;
23863}
23864_ACEOF
23865if ac_fn_c_try_link "$LINENO"; then :
23866 ac_cv_lib_nsl_gethostbyname=yes
23867else
23868 ac_cv_lib_nsl_gethostbyname=no
23869fi
23870rm -f core conftest.err conftest.$ac_objext \
23871 conftest$ac_exeext conftest.$ac_ext
23872LIBS=$ac_check_lib_save_LIBS
23873fi
23874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
23875$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
23876if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
23877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23878fi
23879
23880 if test $ac_cv_lib_nsl_gethostbyname = no; then
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
23882$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
23883if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
23884 $as_echo_n "(cached) " >&6
23885else
23886 ac_check_lib_save_LIBS=$LIBS
23887LIBS="-lbsd $LIBS"
23888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23889/* end confdefs.h. */
23890
23891/* Override any GCC internal prototype to avoid an error.
23892 Use char because int might match the return type of a GCC
23893 builtin and then its argument prototype would still apply. */
23894#ifdef __cplusplus
23895extern "C"
23896#endif
23897char gethostbyname ();
23898int
23899main ()
23900{
23901return gethostbyname ();
23902 ;
23903 return 0;
23904}
23905_ACEOF
23906if ac_fn_c_try_link "$LINENO"; then :
23907 ac_cv_lib_bsd_gethostbyname=yes
23908else
23909 ac_cv_lib_bsd_gethostbyname=no
23910fi
23911rm -f core conftest.err conftest.$ac_objext \
23912 conftest$ac_exeext conftest.$ac_ext
23913LIBS=$ac_check_lib_save_LIBS
23914fi
23915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
23916$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
23917if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
23918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23919fi
23920
23921 fi
23922 fi
23923
23924 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23925 # socket/setsockopt and other routines are undefined under SCO ODT
23926 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23927 # on later versions), says Simon Leinen: it contains gethostby*
23928 # variants that don't use the name server (or something). -lsocket
23929 # must be given before -lnsl if both are needed. We assume that
23930 # if connect needs -lnsl, so does gethostbyname.
23931 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
23932if test "x$ac_cv_func_connect" = x""yes; then :
23933
23934fi
23935
23936 if test $ac_cv_func_connect = no; then
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
23938$as_echo_n "checking for connect in -lsocket... " >&6; }
23939if test "${ac_cv_lib_socket_connect+set}" = set; then :
23940 $as_echo_n "(cached) " >&6
23941else
23942 ac_check_lib_save_LIBS=$LIBS
23943LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23945/* end confdefs.h. */
23946
23947/* Override any GCC internal prototype to avoid an error.
23948 Use char because int might match the return type of a GCC
23949 builtin and then its argument prototype would still apply. */
23950#ifdef __cplusplus
23951extern "C"
23952#endif
23953char connect ();
23954int
23955main ()
23956{
23957return connect ();
23958 ;
23959 return 0;
23960}
23961_ACEOF
23962if ac_fn_c_try_link "$LINENO"; then :
23963 ac_cv_lib_socket_connect=yes
23964else
23965 ac_cv_lib_socket_connect=no
23966fi
23967rm -f core conftest.err conftest.$ac_objext \
23968 conftest$ac_exeext conftest.$ac_ext
23969LIBS=$ac_check_lib_save_LIBS
23970fi
23971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
23972$as_echo "$ac_cv_lib_socket_connect" >&6; }
23973if test "x$ac_cv_lib_socket_connect" = x""yes; then :
23974 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23975fi
23976
23977 fi
23978
23979 # Guillermo Gomez says -lposix is necessary on A/UX.
23980 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
23981if test "x$ac_cv_func_remove" = x""yes; then :
23982
23983fi
23984
23985 if test $ac_cv_func_remove = no; then
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
23987$as_echo_n "checking for remove in -lposix... " >&6; }
23988if test "${ac_cv_lib_posix_remove+set}" = set; then :
23989 $as_echo_n "(cached) " >&6
23990else
23991 ac_check_lib_save_LIBS=$LIBS
23992LIBS="-lposix $LIBS"
23993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23994/* end confdefs.h. */
23995
23996/* Override any GCC internal prototype to avoid an error.
23997 Use char because int might match the return type of a GCC
23998 builtin and then its argument prototype would still apply. */
23999#ifdef __cplusplus
24000extern "C"
24001#endif
24002char remove ();
24003int
24004main ()
24005{
24006return remove ();
24007 ;
24008 return 0;
24009}
24010_ACEOF
24011if ac_fn_c_try_link "$LINENO"; then :
24012 ac_cv_lib_posix_remove=yes
24013else
24014 ac_cv_lib_posix_remove=no
24015fi
24016rm -f core conftest.err conftest.$ac_objext \
24017 conftest$ac_exeext conftest.$ac_ext
24018LIBS=$ac_check_lib_save_LIBS
24019fi
24020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24021$as_echo "$ac_cv_lib_posix_remove" >&6; }
24022if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24024fi
24025
24026 fi
24027
24028 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24029 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24030if test "x$ac_cv_func_shmat" = x""yes; then :
24031
24032fi
24033
24034 if test $ac_cv_func_shmat = no; then
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24036$as_echo_n "checking for shmat in -lipc... " >&6; }
24037if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24039else
24040 ac_check_lib_save_LIBS=$LIBS
24041LIBS="-lipc $LIBS"
24042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043/* end confdefs.h. */
24044
24045/* Override any GCC internal prototype to avoid an error.
24046 Use char because int might match the return type of a GCC
24047 builtin and then its argument prototype would still apply. */
24048#ifdef __cplusplus
24049extern "C"
24050#endif
24051char shmat ();
24052int
24053main ()
24054{
24055return shmat ();
24056 ;
24057 return 0;
24058}
24059_ACEOF
24060if ac_fn_c_try_link "$LINENO"; then :
24061 ac_cv_lib_ipc_shmat=yes
24062else
24063 ac_cv_lib_ipc_shmat=no
24064fi
24065rm -f core conftest.err conftest.$ac_objext \
24066 conftest$ac_exeext conftest.$ac_ext
24067LIBS=$ac_check_lib_save_LIBS
24068fi
24069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24070$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24071if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24073fi
24074
24075 fi
24076 fi
24077
24078 # Check for libraries that X11R6 Xt/Xaw programs need.
24079 ac_save_LDFLAGS=$LDFLAGS
24080 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24081 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24082 # check for ICE first), but we must link in the order -lSM -lICE or
24083 # we get undefined symbols. So assume we have SM if we have ICE.
24084 # These have to be linked with before -lX11, unlike the other
24085 # libraries we check for below, so use a different variable.
24086 # John Interrante, Karl Berry
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24088$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24089if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24090 $as_echo_n "(cached) " >&6
24091else
24092 ac_check_lib_save_LIBS=$LIBS
24093LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24095/* end confdefs.h. */
24096
24097/* Override any GCC internal prototype to avoid an error.
24098 Use char because int might match the return type of a GCC
24099 builtin and then its argument prototype would still apply. */
24100#ifdef __cplusplus
24101extern "C"
24102#endif
24103char IceConnectionNumber ();
24104int
24105main ()
24106{
24107return IceConnectionNumber ();
24108 ;
24109 return 0;
24110}
24111_ACEOF
24112if ac_fn_c_try_link "$LINENO"; then :
24113 ac_cv_lib_ICE_IceConnectionNumber=yes
24114else
24115 ac_cv_lib_ICE_IceConnectionNumber=no
24116fi
24117rm -f core conftest.err conftest.$ac_objext \
24118 conftest$ac_exeext conftest.$ac_ext
24119LIBS=$ac_check_lib_save_LIBS
24120fi
24121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24122$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24123if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24124 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24125fi
24126
24127 LDFLAGS=$ac_save_LDFLAGS
24128
24129fi
24130
24131
24132ac_fn_c_check_header_mongrel "$LINENO" "X11/X.h" "ac_cv_header_X11_X_h" "$ac_includes_default"
24133if test "x$ac_cv_header_X11_X_h" = x""yes; then :
24134 have_dep="yes"
24135fi
24136
24137
24138
24139if test "x${have_dep}" = "xyes" ; then
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateImage in -lX11" >&5
24141$as_echo_n "checking for XCreateImage in -lX11... " >&6; }
24142if test "${ac_cv_lib_X11_XCreateImage+set}" = set; then :
24143 $as_echo_n "(cached) " >&6
24144else
24145 ac_check_lib_save_LIBS=$LIBS
24146LIBS="-lX11 $LIBS"
24147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24148/* end confdefs.h. */
24149
24150/* Override any GCC internal prototype to avoid an error.
24151 Use char because int might match the return type of a GCC
24152 builtin and then its argument prototype would still apply. */
24153#ifdef __cplusplus
24154extern "C"
24155#endif
24156char XCreateImage ();
24157int
24158main ()
24159{
24160return XCreateImage ();
24161 ;
24162 return 0;
24163}
24164_ACEOF
24165if ac_fn_c_try_link "$LINENO"; then :
24166 ac_cv_lib_X11_XCreateImage=yes
24167else
24168 ac_cv_lib_X11_XCreateImage=no
24169fi
24170rm -f core conftest.err conftest.$ac_objext \
24171 conftest$ac_exeext conftest.$ac_ext
24172LIBS=$ac_check_lib_save_LIBS
24173fi
24174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateImage" >&5
24175$as_echo "$ac_cv_lib_X11_XCreateImage" >&6; }
24176if test "x$ac_cv_lib_X11_XCreateImage" = x""yes; then :
24177 have_dep="yes"
24178else
24179 have_dep="no"
24180fi
24181
24182fi
24183
24184if test "x${have_dep}" = "xyes" ; then
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmCreateImage in -lXext" >&5
24186$as_echo_n "checking for XShmCreateImage in -lXext... " >&6; }
24187if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then :
24188 $as_echo_n "(cached) " >&6
24189else
24190 ac_check_lib_save_LIBS=$LIBS
24191LIBS="-lXext $LIBS"
24192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193/* end confdefs.h. */
24194
24195/* Override any GCC internal prototype to avoid an error.
24196 Use char because int might match the return type of a GCC
24197 builtin and then its argument prototype would still apply. */
24198#ifdef __cplusplus
24199extern "C"
24200#endif
24201char XShmCreateImage ();
24202int
24203main ()
24204{
24205return XShmCreateImage ();
24206 ;
24207 return 0;
24208}
24209_ACEOF
24210if ac_fn_c_try_link "$LINENO"; then :
24211 ac_cv_lib_Xext_XShmCreateImage=yes
24212else
24213 ac_cv_lib_Xext_XShmCreateImage=no
24214fi
24215rm -f core conftest.err conftest.$ac_objext \
24216 conftest$ac_exeext conftest.$ac_ext
24217LIBS=$ac_check_lib_save_LIBS
24218fi
24219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmCreateImage" >&5
24220$as_echo "$ac_cv_lib_Xext_XShmCreateImage" >&6; }
24221if test "x$ac_cv_lib_Xext_XShmCreateImage" = x""yes; then :
24222 have_dep="yes"
24223else
24224 have_dep="no"
24225fi
24226
24227fi
24228
24229if test "x${have_dep}" = "xyes" ; then
24230 if test "xno" = "xyes" ; then
24231 x_libs="${x_libs} -lX11 -lXext"
24232 else
24233 x_dir=${x_dir:-/usr/X11R6}
24234 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
24235 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
24236 fi
24237 evas_engine_software_xlib_cflags="${x_cflags}"
24238 evas_engine_software_xlib_libs="${x_libs}"
24239fi
24240
24241
24242
24243
24244if test "x${have_dep}" = "xyes" ; then
24245 have_engine="yes"
24246else
24247 have_engine="no"
24248fi
24249
24250
24251fi
24252
24253if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
24254 as_fn_error $? "Software Xlib dependencies not found (strict dependencies checking)" "$LINENO" 5
24255fi
24256
24257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Software Xlib rendering backend will be built" >&5
24258$as_echo_n "checking whether Software Xlib rendering backend will be built... " >&6; }
24259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
24260$as_echo "${have_engine}" >&6; }
24261
24262if test "x${have_engine}" = "xyes" ; then
24263 if test "x${want_engine}" = "xstatic" ; then
24264 have_evas_engine_software_xlib="static"
24265 want_static_engine="yes"
24266 else
24267 have_evas_engine_software_xlib="yes"
24268 fi
24269fi
24270
24271if test "x${have_engine}" = "xyes" ; then
24272
24273$as_echo "#define BUILD_ENGINE_SOFTWARE_XLIB 1" >>confdefs.h
24274
24275fi
24276
24277 if test "x${have_engine}" = "xyes"; then
24278 BUILD_ENGINE_SOFTWARE_XLIB_TRUE=
24279 BUILD_ENGINE_SOFTWARE_XLIB_FALSE='#'
24280else
24281 BUILD_ENGINE_SOFTWARE_XLIB_TRUE='#'
24282 BUILD_ENGINE_SOFTWARE_XLIB_FALSE=
24283fi
24284
24285
24286if test "x${want_static_engine}" = "xyes" ; then
24287
24288$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_XLIB 1" >>confdefs.h
24289
24290 have_static_module="yes"
24291fi
24292
24293 if test "x${want_static_engine}" = "xyes"; then
24294 EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE=
24295 EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE='#'
24296else
24297 EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE='#'
24298 EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE=
24299fi
24300
24301
24302
24303
24304
24305
24306 # if software_x11 is available, define everything needed for X11
24307 if test "x$have_evas_engine_software_xlib" != "xno" ; then
24308 have_evas_engine_software_x11="yes"
24309
24310cat >>confdefs.h <<_ACEOF
24311#define BUILD_ENGINE_SOFTWARE_X11 1
24312_ACEOF
24313
24314
24315cat >>confdefs.h <<_ACEOF
24316#define BUILD_ENGINE_SOFTWARE_XLIB 1
24317_ACEOF
24318
24319 fi
24320else
24321 have_evas_engine_software_xlib="no"
24322fi
24323
24324if test "x$have_evas_engine_software_xlib" = "xstatic" -o "x$have_evas_engine_software_xcb" = "xstatic"; then
24325
24326cat >>confdefs.h <<_ACEOF
24327#define EVAS_STATIC_BUILD_SOFTWARE_X11 1
24328_ACEOF
24329
24330fi
24331
24332
24333
24334
24335 if test "x${have_evas_engine_software_xlib}" != "xno"; then
24336 BUILD_ENGINE_SOFTWARE_XLIB_TRUE=
24337 BUILD_ENGINE_SOFTWARE_XLIB_FALSE='#'
24338else
24339 BUILD_ENGINE_SOFTWARE_XLIB_TRUE='#'
24340 BUILD_ENGINE_SOFTWARE_XLIB_FALSE=
24341fi
24342
24343 if test "x${have_evas_engine_software_xcb}" != "xno"; then
24344 BUILD_ENGINE_SOFTWARE_XCB_TRUE=
24345 BUILD_ENGINE_SOFTWARE_XCB_FALSE='#'
24346else
24347 BUILD_ENGINE_SOFTWARE_XCB_TRUE='#'
24348 BUILD_ENGINE_SOFTWARE_XCB_FALSE=
24349fi
24350
24351 if test "x${have_evas_engine_software_x11}" != "xno"; then
24352 BUILD_ENGINE_SOFTWARE_X11_TRUE=
24353 BUILD_ENGINE_SOFTWARE_X11_FALSE='#'
24354else
24355 BUILD_ENGINE_SOFTWARE_X11_TRUE='#'
24356 BUILD_ENGINE_SOFTWARE_X11_FALSE=
24357fi
24358
24359
24360 if test "x${have_evas_engine_software_xcb}" = "xstatic" -o "x${have_evas_engine_software_xlib}" = "xstatic"; then
24361 EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE=
24362 EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE='#'
24363else
24364 EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE='#'
24365 EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE=
24366fi
24367
24368 if test "x${have_evas_engine_software_xlib}" = "xstatic"; then
24369 EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE=
24370 EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE='#'
24371else
24372 EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE='#'
24373 EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE=
24374fi
24375
24376 if test "x${have_evas_engine_software_xcb}" = "xstatic"; then
24377 EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE=
24378 EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE='#'
24379else
24380 EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE='#'
24381 EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE=
24382fi
24383
24384
24385
24386
24387
24388######## OpenGL Engine ########
24389have_evas_engine_gl_x11="no"
24390have_evas_engine_gl_xcb="no"
24391build_gl_xcb="no"
24392
24393## XCB Checks ##
24394want_gl_xcb="no"
24395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenGL XCB Engine" >&5
24396$as_echo_n "checking whether to build OpenGL XCB Engine... " >&6; }
24397# Check whether --enable-gl-xcb was given.
24398if test "${enable_gl_xcb+set}" = set; then :
24399 enableval=$enable_gl_xcb; want_gl_xcb=$enableval
24400
24401fi
24402
24403if test "x$want_gl_xcb" = "xyes" ; then
24404
24405
24406
24407want_engine="${want_evas_engine_gl_xcb}"
24408want_static_engine="no"
24409have_engine="no"
24410have_evas_engine_gl_xcb="no"
24411
24412# Check whether --enable-gl-xcb was given.
24413if test "${enable_gl_xcb+set}" = set; then :
24414 enableval=$enable_gl_xcb;
24415 if test "x${enableval}" = "xyes" ; then
24416 want_engine="yes"
24417 else
24418 if test "x${enableval}" = "xstatic" ; then
24419 want_engine="static"
24420 else
24421 want_engine="no"
24422 fi
24423 fi
24424
24425fi
24426
24427
24428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL XCB rendering backend" >&5
24429$as_echo_n "checking whether to enable OpenGL XCB rendering backend... " >&6; }
24430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
24431$as_echo "${want_engine}" >&6; }
24432
24433if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
24434
24435
24436evas_engine_gl_xcb_cflags=""
24437evas_engine_gl_xcb_libs=""
24438
24439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24440$as_echo_n "checking for X... " >&6; }
24441
24442
24443# Check whether --with-x was given.
24444if test "${with_x+set}" = set; then :
24445 withval=$with_x;
24446fi
24447
24448# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24449if test "x$with_x" = xno; then
24450 # The user explicitly disabled X.
24451 have_x=disabled
24452else
24453 case $x_includes,$x_libraries in #(
24454 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
24455 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24456 $as_echo_n "(cached) " >&6
24457else
24458 # One or both of the vars are not set, and there is no cached value.
24459ac_x_includes=no ac_x_libraries=no
24460rm -f -r conftest.dir
24461if mkdir conftest.dir; then
24462 cd conftest.dir
24463 cat >Imakefile <<'_ACEOF'
24464incroot:
24465 @echo incroot='${INCROOT}'
24466usrlibdir:
24467 @echo usrlibdir='${USRLIBDIR}'
24468libdir:
24469 @echo libdir='${LIBDIR}'
24470_ACEOF
24471 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24472 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24473 for ac_var in incroot usrlibdir libdir; do
24474 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24475 done
24476 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24477 for ac_extension in a so sl dylib la dll; do
24478 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24479 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24480 ac_im_usrlibdir=$ac_im_libdir; break
24481 fi
24482 done
24483 # Screen out bogus values from the imake configuration. They are
24484 # bogus both because they are the default anyway, and because
24485 # using them would break gcc on systems where it needs fixed includes.
24486 case $ac_im_incroot in
24487 /usr/include) ac_x_includes= ;;
24488 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24489 esac
24490 case $ac_im_usrlibdir in
24491 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24492 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24493 esac
24494 fi
24495 cd ..
24496 rm -f -r conftest.dir
24497fi
24498
24499# Standard set of common directories for X headers.
24500# Check X11 before X11Rn because it is often a symlink to the current release.
24501ac_x_header_dirs='
24502/usr/X11/include
24503/usr/X11R7/include
24504/usr/X11R6/include
24505/usr/X11R5/include
24506/usr/X11R4/include
24507
24508/usr/include/X11
24509/usr/include/X11R7
24510/usr/include/X11R6
24511/usr/include/X11R5
24512/usr/include/X11R4
24513
24514/usr/local/X11/include
24515/usr/local/X11R7/include
24516/usr/local/X11R6/include
24517/usr/local/X11R5/include
24518/usr/local/X11R4/include
24519
24520/usr/local/include/X11
24521/usr/local/include/X11R7
24522/usr/local/include/X11R6
24523/usr/local/include/X11R5
24524/usr/local/include/X11R4
24525
24526/usr/X386/include
24527/usr/x386/include
24528/usr/XFree86/include/X11
24529
24530/usr/include
24531/usr/local/include
24532/usr/unsupported/include
24533/usr/athena/include
24534/usr/local/x11r5/include
24535/usr/lpp/Xamples/include
24536
24537/usr/openwin/include
24538/usr/openwin/share/include'
24539
24540if test "$ac_x_includes" = no; then
24541 # Guess where to find include files, by looking for Xlib.h.
24542 # First, try using that file with no special directory specified.
24543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544/* end confdefs.h. */
24545#include <X11/Xlib.h>
24546_ACEOF
24547if ac_fn_c_try_cpp "$LINENO"; then :
24548 # We can compile using X headers with no special include directory.
24549ac_x_includes=
24550else
24551 for ac_dir in $ac_x_header_dirs; do
24552 if test -r "$ac_dir/X11/Xlib.h"; then
24553 ac_x_includes=$ac_dir
24554 break
24555 fi
24556done
24557fi
24558rm -f conftest.err conftest.i conftest.$ac_ext
24559fi # $ac_x_includes = no
24560
24561if test "$ac_x_libraries" = no; then
24562 # Check for the libraries.
24563 # See if we find them without any special options.
24564 # Don't add to $LIBS permanently.
24565 ac_save_LIBS=$LIBS
24566 LIBS="-lX11 $LIBS"
24567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24568/* end confdefs.h. */
24569#include <X11/Xlib.h>
24570int
24571main ()
24572{
24573XrmInitialize ()
24574 ;
24575 return 0;
24576}
24577_ACEOF
24578if ac_fn_c_try_link "$LINENO"; then :
24579 LIBS=$ac_save_LIBS
24580# We can link X programs with no special library path.
24581ac_x_libraries=
24582else
24583 LIBS=$ac_save_LIBS
24584for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24585do
24586 # Don't even attempt the hair of trying to link an X program!
24587 for ac_extension in a so sl dylib la dll; do
24588 if test -r "$ac_dir/libX11.$ac_extension"; then
24589 ac_x_libraries=$ac_dir
24590 break 2
24591 fi
24592 done
24593done
24594fi
24595rm -f core conftest.err conftest.$ac_objext \
24596 conftest$ac_exeext conftest.$ac_ext
24597fi # $ac_x_libraries = no
24598
24599case $ac_x_includes,$ac_x_libraries in #(
24600 no,* | *,no | *\'*)
24601 # Didn't find X, or a directory has "'" in its name.
24602 ac_cv_have_x="have_x=no";; #(
24603 *)
24604 # Record where we found X for the cache.
24605 ac_cv_have_x="have_x=yes\
24606 ac_x_includes='$ac_x_includes'\
24607 ac_x_libraries='$ac_x_libraries'"
24608esac
24609fi
24610;; #(
24611 *) have_x=yes;;
24612 esac
24613 eval "$ac_cv_have_x"
24614fi # $with_x != no
24615
24616if test "$have_x" != yes; then
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24618$as_echo "$have_x" >&6; }
24619 no_x=yes
24620else
24621 # If each of the values was on the command line, it overrides each guess.
24622 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24623 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24624 # Update the cache value to reflect the command line values.
24625 ac_cv_have_x="have_x=yes\
24626 ac_x_includes='$x_includes'\
24627 ac_x_libraries='$x_libraries'"
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24629$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24630fi
24631
24632if test "$no_x" = yes; then
24633 # Not all programs may use this symbol, but it does not hurt to define it.
24634
24635$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24636
24637 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24638else
24639 if test -n "$x_includes"; then
24640 X_CFLAGS="$X_CFLAGS -I$x_includes"
24641 fi
24642
24643 # It would also be nice to do this for all -L options, not just this one.
24644 if test -n "$x_libraries"; then
24645 X_LIBS="$X_LIBS -L$x_libraries"
24646 # For Solaris; some versions of Sun CC require a space after -R and
24647 # others require no space. Words are not sufficient . . . .
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24649$as_echo_n "checking whether -R must be followed by a space... " >&6; }
24650 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24651 ac_xsave_c_werror_flag=$ac_c_werror_flag
24652 ac_c_werror_flag=yes
24653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24654/* end confdefs.h. */
24655
24656int
24657main ()
24658{
24659
24660 ;
24661 return 0;
24662}
24663_ACEOF
24664if ac_fn_c_try_link "$LINENO"; then :
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24666$as_echo "no" >&6; }
24667 X_LIBS="$X_LIBS -R$x_libraries"
24668else
24669 LIBS="$ac_xsave_LIBS -R $x_libraries"
24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671/* end confdefs.h. */
24672
24673int
24674main ()
24675{
24676
24677 ;
24678 return 0;
24679}
24680_ACEOF
24681if ac_fn_c_try_link "$LINENO"; then :
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24683$as_echo "yes" >&6; }
24684 X_LIBS="$X_LIBS -R $x_libraries"
24685else
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24687$as_echo "neither works" >&6; }
24688fi
24689rm -f core conftest.err conftest.$ac_objext \
24690 conftest$ac_exeext conftest.$ac_ext
24691fi
24692rm -f core conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
24694 ac_c_werror_flag=$ac_xsave_c_werror_flag
24695 LIBS=$ac_xsave_LIBS
24696 fi
24697
24698 # Check for system-dependent libraries X programs must link with.
24699 # Do this before checking for the system-independent R6 libraries
24700 # (-lICE), since we may need -lsocket or whatever for X linking.
24701
24702 if test "$ISC" = yes; then
24703 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24704 else
24705 # Martyn Johnson says this is needed for Ultrix, if the X
24706 # libraries were built with DECnet support. And Karl Berry says
24707 # the Alpha needs dnet_stub (dnet does not exist).
24708 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24710/* end confdefs.h. */
24711
24712/* Override any GCC internal prototype to avoid an error.
24713 Use char because int might match the return type of a GCC
24714 builtin and then its argument prototype would still apply. */
24715#ifdef __cplusplus
24716extern "C"
24717#endif
24718char XOpenDisplay ();
24719int
24720main ()
24721{
24722return XOpenDisplay ();
24723 ;
24724 return 0;
24725}
24726_ACEOF
24727if ac_fn_c_try_link "$LINENO"; then :
24728
24729else
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24731$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24732if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24733 $as_echo_n "(cached) " >&6
24734else
24735 ac_check_lib_save_LIBS=$LIBS
24736LIBS="-ldnet $LIBS"
24737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24738/* end confdefs.h. */
24739
24740/* Override any GCC internal prototype to avoid an error.
24741 Use char because int might match the return type of a GCC
24742 builtin and then its argument prototype would still apply. */
24743#ifdef __cplusplus
24744extern "C"
24745#endif
24746char dnet_ntoa ();
24747int
24748main ()
24749{
24750return dnet_ntoa ();
24751 ;
24752 return 0;
24753}
24754_ACEOF
24755if ac_fn_c_try_link "$LINENO"; then :
24756 ac_cv_lib_dnet_dnet_ntoa=yes
24757else
24758 ac_cv_lib_dnet_dnet_ntoa=no
24759fi
24760rm -f core conftest.err conftest.$ac_objext \
24761 conftest$ac_exeext conftest.$ac_ext
24762LIBS=$ac_check_lib_save_LIBS
24763fi
24764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24765$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24766if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24767 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24768fi
24769
24770 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24772$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24773if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24774 $as_echo_n "(cached) " >&6
24775else
24776 ac_check_lib_save_LIBS=$LIBS
24777LIBS="-ldnet_stub $LIBS"
24778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24779/* end confdefs.h. */
24780
24781/* Override any GCC internal prototype to avoid an error.
24782 Use char because int might match the return type of a GCC
24783 builtin and then its argument prototype would still apply. */
24784#ifdef __cplusplus
24785extern "C"
24786#endif
24787char dnet_ntoa ();
24788int
24789main ()
24790{
24791return dnet_ntoa ();
24792 ;
24793 return 0;
24794}
24795_ACEOF
24796if ac_fn_c_try_link "$LINENO"; then :
24797 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24798else
24799 ac_cv_lib_dnet_stub_dnet_ntoa=no
24800fi
24801rm -f core conftest.err conftest.$ac_objext \
24802 conftest$ac_exeext conftest.$ac_ext
24803LIBS=$ac_check_lib_save_LIBS
24804fi
24805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24806$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24807if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24808 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24809fi
24810
24811 fi
24812fi
24813rm -f core conftest.err conftest.$ac_objext \
24814 conftest$ac_exeext conftest.$ac_ext
24815 LIBS="$ac_xsave_LIBS"
24816
24817 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24818 # to get the SysV transport functions.
24819 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24820 # needs -lnsl.
24821 # The nsl library prevents programs from opening the X display
24822 # on Irix 5.2, according to T.E. Dickey.
24823 # The functions gethostbyname, getservbyname, and inet_addr are
24824 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24825 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24826if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24827
24828fi
24829
24830 if test $ac_cv_func_gethostbyname = no; then
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24832$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24833if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24834 $as_echo_n "(cached) " >&6
24835else
24836 ac_check_lib_save_LIBS=$LIBS
24837LIBS="-lnsl $LIBS"
24838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24839/* end confdefs.h. */
24840
24841/* Override any GCC internal prototype to avoid an error.
24842 Use char because int might match the return type of a GCC
24843 builtin and then its argument prototype would still apply. */
24844#ifdef __cplusplus
24845extern "C"
24846#endif
24847char gethostbyname ();
24848int
24849main ()
24850{
24851return gethostbyname ();
24852 ;
24853 return 0;
24854}
24855_ACEOF
24856if ac_fn_c_try_link "$LINENO"; then :
24857 ac_cv_lib_nsl_gethostbyname=yes
24858else
24859 ac_cv_lib_nsl_gethostbyname=no
24860fi
24861rm -f core conftest.err conftest.$ac_objext \
24862 conftest$ac_exeext conftest.$ac_ext
24863LIBS=$ac_check_lib_save_LIBS
24864fi
24865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24866$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24867if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24868 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24869fi
24870
24871 if test $ac_cv_lib_nsl_gethostbyname = no; then
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24873$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24874if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24875 $as_echo_n "(cached) " >&6
24876else
24877 ac_check_lib_save_LIBS=$LIBS
24878LIBS="-lbsd $LIBS"
24879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24880/* end confdefs.h. */
24881
24882/* Override any GCC internal prototype to avoid an error.
24883 Use char because int might match the return type of a GCC
24884 builtin and then its argument prototype would still apply. */
24885#ifdef __cplusplus
24886extern "C"
24887#endif
24888char gethostbyname ();
24889int
24890main ()
24891{
24892return gethostbyname ();
24893 ;
24894 return 0;
24895}
24896_ACEOF
24897if ac_fn_c_try_link "$LINENO"; then :
24898 ac_cv_lib_bsd_gethostbyname=yes
24899else
24900 ac_cv_lib_bsd_gethostbyname=no
24901fi
24902rm -f core conftest.err conftest.$ac_objext \
24903 conftest$ac_exeext conftest.$ac_ext
24904LIBS=$ac_check_lib_save_LIBS
24905fi
24906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24907$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24908if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24910fi
24911
24912 fi
24913 fi
24914
24915 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24916 # socket/setsockopt and other routines are undefined under SCO ODT
24917 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24918 # on later versions), says Simon Leinen: it contains gethostby*
24919 # variants that don't use the name server (or something). -lsocket
24920 # must be given before -lnsl if both are needed. We assume that
24921 # if connect needs -lnsl, so does gethostbyname.
24922 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24923if test "x$ac_cv_func_connect" = x""yes; then :
24924
24925fi
24926
24927 if test $ac_cv_func_connect = no; then
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24929$as_echo_n "checking for connect in -lsocket... " >&6; }
24930if test "${ac_cv_lib_socket_connect+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
24932else
24933 ac_check_lib_save_LIBS=$LIBS
24934LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24936/* end confdefs.h. */
24937
24938/* Override any GCC internal prototype to avoid an error.
24939 Use char because int might match the return type of a GCC
24940 builtin and then its argument prototype would still apply. */
24941#ifdef __cplusplus
24942extern "C"
24943#endif
24944char connect ();
24945int
24946main ()
24947{
24948return connect ();
24949 ;
24950 return 0;
24951}
24952_ACEOF
24953if ac_fn_c_try_link "$LINENO"; then :
24954 ac_cv_lib_socket_connect=yes
24955else
24956 ac_cv_lib_socket_connect=no
24957fi
24958rm -f core conftest.err conftest.$ac_objext \
24959 conftest$ac_exeext conftest.$ac_ext
24960LIBS=$ac_check_lib_save_LIBS
24961fi
24962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24963$as_echo "$ac_cv_lib_socket_connect" >&6; }
24964if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24965 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24966fi
24967
24968 fi
24969
24970 # Guillermo Gomez says -lposix is necessary on A/UX.
24971 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24972if test "x$ac_cv_func_remove" = x""yes; then :
24973
24974fi
24975
24976 if test $ac_cv_func_remove = no; then
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24978$as_echo_n "checking for remove in -lposix... " >&6; }
24979if test "${ac_cv_lib_posix_remove+set}" = set; then :
24980 $as_echo_n "(cached) " >&6
24981else
24982 ac_check_lib_save_LIBS=$LIBS
24983LIBS="-lposix $LIBS"
24984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24985/* end confdefs.h. */
24986
24987/* Override any GCC internal prototype to avoid an error.
24988 Use char because int might match the return type of a GCC
24989 builtin and then its argument prototype would still apply. */
24990#ifdef __cplusplus
24991extern "C"
24992#endif
24993char remove ();
24994int
24995main ()
24996{
24997return remove ();
24998 ;
24999 return 0;
25000}
25001_ACEOF
25002if ac_fn_c_try_link "$LINENO"; then :
25003 ac_cv_lib_posix_remove=yes
25004else
25005 ac_cv_lib_posix_remove=no
25006fi
25007rm -f core conftest.err conftest.$ac_objext \
25008 conftest$ac_exeext conftest.$ac_ext
25009LIBS=$ac_check_lib_save_LIBS
25010fi
25011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25012$as_echo "$ac_cv_lib_posix_remove" >&6; }
25013if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25015fi
25016
25017 fi
25018
25019 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25020 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25021if test "x$ac_cv_func_shmat" = x""yes; then :
25022
25023fi
25024
25025 if test $ac_cv_func_shmat = no; then
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25027$as_echo_n "checking for shmat in -lipc... " >&6; }
25028if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25029 $as_echo_n "(cached) " >&6
25030else
25031 ac_check_lib_save_LIBS=$LIBS
25032LIBS="-lipc $LIBS"
25033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034/* end confdefs.h. */
25035
25036/* Override any GCC internal prototype to avoid an error.
25037 Use char because int might match the return type of a GCC
25038 builtin and then its argument prototype would still apply. */
25039#ifdef __cplusplus
25040extern "C"
25041#endif
25042char shmat ();
25043int
25044main ()
25045{
25046return shmat ();
25047 ;
25048 return 0;
25049}
25050_ACEOF
25051if ac_fn_c_try_link "$LINENO"; then :
25052 ac_cv_lib_ipc_shmat=yes
25053else
25054 ac_cv_lib_ipc_shmat=no
25055fi
25056rm -f core conftest.err conftest.$ac_objext \
25057 conftest$ac_exeext conftest.$ac_ext
25058LIBS=$ac_check_lib_save_LIBS
25059fi
25060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25061$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25062if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25063 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25064fi
25065
25066 fi
25067 fi
25068
25069 # Check for libraries that X11R6 Xt/Xaw programs need.
25070 ac_save_LDFLAGS=$LDFLAGS
25071 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25072 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25073 # check for ICE first), but we must link in the order -lSM -lICE or
25074 # we get undefined symbols. So assume we have SM if we have ICE.
25075 # These have to be linked with before -lX11, unlike the other
25076 # libraries we check for below, so use a different variable.
25077 # John Interrante, Karl Berry
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25079$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25080if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25081 $as_echo_n "(cached) " >&6
25082else
25083 ac_check_lib_save_LIBS=$LIBS
25084LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25086/* end confdefs.h. */
25087
25088/* Override any GCC internal prototype to avoid an error.
25089 Use char because int might match the return type of a GCC
25090 builtin and then its argument prototype would still apply. */
25091#ifdef __cplusplus
25092extern "C"
25093#endif
25094char IceConnectionNumber ();
25095int
25096main ()
25097{
25098return IceConnectionNumber ();
25099 ;
25100 return 0;
25101}
25102_ACEOF
25103if ac_fn_c_try_link "$LINENO"; then :
25104 ac_cv_lib_ICE_IceConnectionNumber=yes
25105else
25106 ac_cv_lib_ICE_IceConnectionNumber=no
25107fi
25108rm -f core conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext conftest.$ac_ext
25110LIBS=$ac_check_lib_save_LIBS
25111fi
25112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25113$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25114if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25115 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25116fi
25117
25118 LDFLAGS=$ac_save_LDFLAGS
25119
25120fi
25121
25122
25123ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "
25124#include <GL/gl.h>
25125#include <GL/glext.h>
25126#include <GL/glx.h>
25127
25128"
25129if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
25130 have_dep="yes"
25131else
25132 have_dep="no"
25133fi
25134
25135
25136
25137gl_pt_lib="";
25138have_gl_pt="no"
25139
25140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create() is supported" >&5
25141$as_echo_n "checking whether pthread_create() is supported... " >&6; }
25142CFLAGS_save="${CFLAGS}"
25143CFLAGS="${CFLAGS} -pthread"
25144LIBS_save="${LIBS}"
25145LIBS="${LIBS} -pthread"
25146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25147/* end confdefs.h. */
25148
25149#include <pthread.h>
25150
25151int
25152main ()
25153{
25154
25155pthread_create(NULL, NULL, NULL, NULL);
25156
25157 ;
25158 return 0;
25159}
25160_ACEOF
25161if ac_fn_c_try_link "$LINENO"; then :
25162 have_gl_pt="yes"
25163else
25164 have_gl_pt="no"
25165fi
25166rm -f core conftest.err conftest.$ac_objext \
25167 conftest$ac_exeext conftest.$ac_ext
25168CFLAGS=${CFLAGS_save}
25169LIBS=${LIBS_save}
25170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gl_pt}" >&5
25171$as_echo "${have_gl_pt}" >&6; }
25172
25173if test "x$have_gl_pt" = "xyes" ; then
25174 gl_pt_lib=" -pthread"
25175fi
25176
25177if test "x${have_dep}" = "xyes" ; then
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateColormap in -lX11" >&5
25179$as_echo_n "checking for XCreateColormap in -lX11... " >&6; }
25180if test "${ac_cv_lib_X11_XCreateColormap+set}" = set; then :
25181 $as_echo_n "(cached) " >&6
25182else
25183 ac_check_lib_save_LIBS=$LIBS
25184LIBS="-lX11 $LIBS"
25185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25186/* end confdefs.h. */
25187
25188/* Override any GCC internal prototype to avoid an error.
25189 Use char because int might match the return type of a GCC
25190 builtin and then its argument prototype would still apply. */
25191#ifdef __cplusplus
25192extern "C"
25193#endif
25194char XCreateColormap ();
25195int
25196main ()
25197{
25198return XCreateColormap ();
25199 ;
25200 return 0;
25201}
25202_ACEOF
25203if ac_fn_c_try_link "$LINENO"; then :
25204 ac_cv_lib_X11_XCreateColormap=yes
25205else
25206 ac_cv_lib_X11_XCreateColormap=no
25207fi
25208rm -f core conftest.err conftest.$ac_objext \
25209 conftest$ac_exeext conftest.$ac_ext
25210LIBS=$ac_check_lib_save_LIBS
25211fi
25212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateColormap" >&5
25213$as_echo "$ac_cv_lib_X11_XCreateColormap" >&6; }
25214if test "x$ac_cv_lib_X11_XCreateColormap" = x""yes; then :
25215 have_dep="yes"
25216else
25217 have_dep="no"
25218fi
25219
25220fi
25221
25222if test "x${have_dep}" = "xyes" ; then
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreatePicture in -lXrender" >&5
25224$as_echo_n "checking for XRenderCreatePicture in -lXrender... " >&6; }
25225if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then :
25226 $as_echo_n "(cached) " >&6
25227else
25228 ac_check_lib_save_LIBS=$LIBS
25229LIBS="-lXrender $LIBS"
25230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25231/* end confdefs.h. */
25232
25233/* Override any GCC internal prototype to avoid an error.
25234 Use char because int might match the return type of a GCC
25235 builtin and then its argument prototype would still apply. */
25236#ifdef __cplusplus
25237extern "C"
25238#endif
25239char XRenderCreatePicture ();
25240int
25241main ()
25242{
25243return XRenderCreatePicture ();
25244 ;
25245 return 0;
25246}
25247_ACEOF
25248if ac_fn_c_try_link "$LINENO"; then :
25249 ac_cv_lib_Xrender_XRenderCreatePicture=yes
25250else
25251 ac_cv_lib_Xrender_XRenderCreatePicture=no
25252fi
25253rm -f core conftest.err conftest.$ac_objext \
25254 conftest$ac_exeext conftest.$ac_ext
25255LIBS=$ac_check_lib_save_LIBS
25256fi
25257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5
25258$as_echo "$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; }
25259if test "x$ac_cv_lib_Xrender_XRenderCreatePicture" = x""yes; then :
25260 have_dep="yes"
25261else
25262 have_dep="no"
25263fi
25264
25265fi
25266
25267if test "x${have_dep}" = "xyes" ; then
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
25269$as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
25270if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25272else
25273 ac_check_lib_save_LIBS=$LIBS
25274LIBS="-lGL -lX11 -lXext -lXrender -lm $gl_pt_lib $LIBS"
25275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276/* end confdefs.h. */
25277
25278/* Override any GCC internal prototype to avoid an error.
25279 Use char because int might match the return type of a GCC
25280 builtin and then its argument prototype would still apply. */
25281#ifdef __cplusplus
25282extern "C"
25283#endif
25284char glXCreateContext ();
25285int
25286main ()
25287{
25288return glXCreateContext ();
25289 ;
25290 return 0;
25291}
25292_ACEOF
25293if ac_fn_c_try_link "$LINENO"; then :
25294 ac_cv_lib_GL_glXCreateContext=yes
25295else
25296 ac_cv_lib_GL_glXCreateContext=no
25297fi
25298rm -f core conftest.err conftest.$ac_objext \
25299 conftest$ac_exeext conftest.$ac_ext
25300LIBS=$ac_check_lib_save_LIBS
25301fi
25302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
25303$as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
25304if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then :
25305 have_dep="yes"
25306else
25307 have_dep="no"
25308fi
25309
25310fi
25311
25312
25313pkg_failed=no
25314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_GL" >&5
25315$as_echo_n "checking for XCB_GL... " >&6; }
25316
25317if test -n "$XCB_GL_CFLAGS"; then
25318 pkg_cv_XCB_GL_CFLAGS="$XCB_GL_CFLAGS"
25319 elif test -n "$PKG_CONFIG"; then
25320 if test -n "$PKG_CONFIG" && \
25321 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-glx xcb-render xcb-renderutil\""; } >&5
25322 ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil") 2>&5
25323 ac_status=$?
25324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25325 test $ac_status = 0; }; then
25326 pkg_cv_XCB_GL_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>/dev/null`
25327else
25328 pkg_failed=yes
25329fi
25330 else
25331 pkg_failed=untried
25332fi
25333if test -n "$XCB_GL_LIBS"; then
25334 pkg_cv_XCB_GL_LIBS="$XCB_GL_LIBS"
25335 elif test -n "$PKG_CONFIG"; then
25336 if test -n "$PKG_CONFIG" && \
25337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-glx xcb-render xcb-renderutil\""; } >&5
25338 ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil") 2>&5
25339 ac_status=$?
25340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25341 test $ac_status = 0; }; then
25342 pkg_cv_XCB_GL_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>/dev/null`
25343else
25344 pkg_failed=yes
25345fi
25346 else
25347 pkg_failed=untried
25348fi
25349
25350
25351
25352if test $pkg_failed = yes; then
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25354$as_echo "no" >&6; }
25355
25356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25357 _pkg_short_errors_supported=yes
25358else
25359 _pkg_short_errors_supported=no
25360fi
25361 if test $_pkg_short_errors_supported = yes; then
25362 XCB_GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>&1`
25363 else
25364 XCB_GL_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11-xcb xcb xcb-glx xcb-render xcb-renderutil" 2>&1`
25365 fi
25366 # Put the nasty error message in config.log where it belongs
25367 echo "$XCB_GL_PKG_ERRORS" >&5
25368
25369
25370 have_dep="no"
25371
25372
25373elif test $pkg_failed = untried; then
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25375$as_echo "no" >&6; }
25376
25377 have_dep="no"
25378
25379
25380else
25381 XCB_GL_CFLAGS=$pkg_cv_XCB_GL_CFLAGS
25382 XCB_GL_LIBS=$pkg_cv_XCB_GL_LIBS
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25384$as_echo "yes" >&6; }
25385
25386 have_dep="yes"
25387 requirement="x11-xcb xcb xcb-glx xcb-render xcb-renderutil"
25388 evas_engine_gl_xcb_cflags="${XCB_GL_CFLAGS}"
25389 evas_engine_gl_xcb_libs="${XCB_GL_LIBS}"
25390
25391fi
25392
25393if test "x$gl_flavor_gles" = "xyes" ; then
25394 have_dep=no
25395fi
25396
25397if test "x${have_dep}" = "xyes" ; then
25398
25399pkg_failed=no
25400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5
25401$as_echo_n "checking for GL_EET... " >&6; }
25402
25403if test -n "$GL_EET_CFLAGS"; then
25404 pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS"
25405 elif test -n "$PKG_CONFIG"; then
25406 if test -n "$PKG_CONFIG" && \
25407 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
25408 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
25409 ac_status=$?
25410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25411 test $ac_status = 0; }; then
25412 pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null`
25413else
25414 pkg_failed=yes
25415fi
25416 else
25417 pkg_failed=untried
25418fi
25419if test -n "$GL_EET_LIBS"; then
25420 pkg_cv_GL_EET_LIBS="$GL_EET_LIBS"
25421 elif test -n "$PKG_CONFIG"; then
25422 if test -n "$PKG_CONFIG" && \
25423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
25424 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
25425 ac_status=$?
25426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25427 test $ac_status = 0; }; then
25428 pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null`
25429else
25430 pkg_failed=yes
25431fi
25432 else
25433 pkg_failed=untried
25434fi
25435
25436
25437
25438if test $pkg_failed = yes; then
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25440$as_echo "no" >&6; }
25441
25442if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25443 _pkg_short_errors_supported=yes
25444else
25445 _pkg_short_errors_supported=no
25446fi
25447 if test $_pkg_short_errors_supported = yes; then
25448 GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1`
25449 else
25450 GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1`
25451 fi
25452 # Put the nasty error message in config.log where it belongs
25453 echo "$GL_EET_PKG_ERRORS" >&5
25454
25455 have_dep="no"
25456elif test $pkg_failed = untried; then
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25458$as_echo "no" >&6; }
25459 have_dep="no"
25460else
25461 GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS
25462 GL_EET_LIBS=$pkg_cv_GL_EET_LIBS
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25464$as_echo "yes" >&6; }
25465 have_dep="yes"
25466fi
25467 if test "x${have_dep}" = "xyes" ; then
25468 if test "xno" = "xyes" ; then
25469 x_libs="${x_libs} -lX11 -lXext -lXrender"
25470 else
25471 x_dir=${x_dir:-/usr/X11R6}
25472 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
25473 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender"
25474 fi
25475 evas_engine_gl_xcb_cflags="-I/usr/include ${XCB_GL_CFLAGS} ${x_cflags}"
25476 evas_engine_gl_xcb_libs="${XCB_GL_LIBS} ${x_libs} -lGL $gl_pt_lib"
25477 evas_engine_gl_common_libs="-lGL $gl_pt_lib"
25478 fi
25479else
25480 if test "xno" = "xyes" ; then
25481 x_libs="${x_libs} -lX11 -lXext -lXrender"
25482 else
25483 x_dir=${x_dir:-/usr/X11R6}
25484 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
25485 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender"
25486 fi
25487 ac_fn_c_check_header_compile "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "
25488#include <GLES2/gl2.h>
25489#include <GLES2/gl2ext.h>
25490#include <EGL/egl.h>
25491
25492"
25493if test "x$ac_cv_header_GLES2_gl2_h" = x""yes; then :
25494 have_egl="yes"
25495else
25496 have_egl="no"
25497fi
25498
25499
25500 if test "x${have_egl}" = "xyes" ; then
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5
25502$as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; }
25503if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then :
25504 $as_echo_n "(cached) " >&6
25505else
25506 ac_check_lib_save_LIBS=$LIBS
25507LIBS="-lGLESv2 -lEGL ${x_libs} -lm $gl_pt_lib $LIBS"
25508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25509/* end confdefs.h. */
25510
25511/* Override any GCC internal prototype to avoid an error.
25512 Use char because int might match the return type of a GCC
25513 builtin and then its argument prototype would still apply. */
25514#ifdef __cplusplus
25515extern "C"
25516#endif
25517char glTexImage2D ();
25518int
25519main ()
25520{
25521return glTexImage2D ();
25522 ;
25523 return 0;
25524}
25525_ACEOF
25526if ac_fn_c_try_link "$LINENO"; then :
25527 ac_cv_lib_GLESv2_glTexImage2D=yes
25528else
25529 ac_cv_lib_GLESv2_glTexImage2D=no
25530fi
25531rm -f core conftest.err conftest.$ac_objext \
25532 conftest$ac_exeext conftest.$ac_ext
25533LIBS=$ac_check_lib_save_LIBS
25534fi
25535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5
25536$as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; }
25537if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then :
25538 have_glesv2="yes"
25539fi
25540
25541 if test "x${have_glesv2}" = "xyes" ; then
25542
25543pkg_failed=no
25544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5
25545$as_echo_n "checking for GL_EET... " >&6; }
25546
25547if test -n "$GL_EET_CFLAGS"; then
25548 pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS"
25549 elif test -n "$PKG_CONFIG"; then
25550 if test -n "$PKG_CONFIG" && \
25551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
25552 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
25553 ac_status=$?
25554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25555 test $ac_status = 0; }; then
25556 pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null`
25557else
25558 pkg_failed=yes
25559fi
25560 else
25561 pkg_failed=untried
25562fi
25563if test -n "$GL_EET_LIBS"; then
25564 pkg_cv_GL_EET_LIBS="$GL_EET_LIBS"
25565 elif test -n "$PKG_CONFIG"; then
25566 if test -n "$PKG_CONFIG" && \
25567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
25568 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
25569 ac_status=$?
25570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25571 test $ac_status = 0; }; then
25572 pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null`
25573else
25574 pkg_failed=yes
25575fi
25576 else
25577 pkg_failed=untried
25578fi
25579
25580
25581
25582if test $pkg_failed = yes; then
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25584$as_echo "no" >&6; }
25585
25586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25587 _pkg_short_errors_supported=yes
25588else
25589 _pkg_short_errors_supported=no
25590fi
25591 if test $_pkg_short_errors_supported = yes; then
25592 GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1`
25593 else
25594 GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1`
25595 fi
25596 # Put the nasty error message in config.log where it belongs
25597 echo "$GL_EET_PKG_ERRORS" >&5
25598
25599 have_dep="no"
25600elif test $pkg_failed = untried; then
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25602$as_echo "no" >&6; }
25603 have_dep="no"
25604else
25605 GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS
25606 GL_EET_LIBS=$pkg_cv_GL_EET_LIBS
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25608$as_echo "yes" >&6; }
25609 have_dep="yes"
25610fi
25611 if test "x${have_dep}" = "xyes" ; then
25612 evas_engine_gl_xcb_cflags="${XCB_GL_CFLAGS} ${x_cflags}"
25613 evas_engine_gl_xcb_libs="${XCB_GL_LIBS} ${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib"
25614 evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib"
25615 have_dep="yes"
25616 gl_flavor_gles="no"
25617
25618$as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h
25619
25620 gles_variety_sgx="yes"
25621 fi
25622 fi
25623 fi
25624fi
25625
25626
25627
25628
25629if test "x${have_dep}" = "xyes" ; then
25630 have_engine="yes"
25631else
25632 have_engine="no"
25633fi
25634
25635
25636fi
25637
25638if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
25639 as_fn_error $? "OpenGL XCB dependencies not found (strict dependencies checking)" "$LINENO" 5
25640fi
25641
25642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL XCB rendering backend will be built" >&5
25643$as_echo_n "checking whether OpenGL XCB rendering backend will be built... " >&6; }
25644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
25645$as_echo "${have_engine}" >&6; }
25646
25647if test "x${have_engine}" = "xyes" ; then
25648 if test "x${want_engine}" = "xstatic" ; then
25649 have_evas_engine_gl_xcb="static"
25650 want_static_engine="yes"
25651 else
25652 have_evas_engine_gl_xcb="yes"
25653 fi
25654fi
25655
25656if test "x${have_engine}" = "xyes" ; then
25657
25658$as_echo "#define BUILD_ENGINE_GL_XCB 1" >>confdefs.h
25659
25660fi
25661
25662 if test "x${have_engine}" = "xyes"; then
25663 BUILD_ENGINE_GL_XCB_TRUE=
25664 BUILD_ENGINE_GL_XCB_FALSE='#'
25665else
25666 BUILD_ENGINE_GL_XCB_TRUE='#'
25667 BUILD_ENGINE_GL_XCB_FALSE=
25668fi
25669
25670
25671if test "x${want_static_engine}" = "xyes" ; then
25672
25673$as_echo "#define EVAS_STATIC_BUILD_GL_XCB 1" >>confdefs.h
25674
25675 have_static_module="yes"
25676fi
25677
25678 if test "x${want_static_engine}" = "xyes"; then
25679 EVAS_STATIC_BUILD_GL_XCB_TRUE=
25680 EVAS_STATIC_BUILD_GL_XCB_FALSE='#'
25681else
25682 EVAS_STATIC_BUILD_GL_XCB_TRUE='#'
25683 EVAS_STATIC_BUILD_GL_XCB_FALSE=
25684fi
25685
25686
25687
25688
25689
25690
25691 if test "x$have_evas_engine_gl_xcb" != "xno" ; then
25692 build_gl_xcb="yes"
25693 have_evas_engine_gl_x11="yes"
25694
25695$as_echo "#define BUILD_ENGINE_GL_X11 1" >>confdefs.h
25696
25697
25698$as_echo "#define BUILD_ENGINE_GL_XCB 1" >>confdefs.h
25699
25700 if test "x$have_evas_engine_gl_xcb" = "xstatic" ; then
25701
25702$as_echo "#define EVAS_STATIC_BUILD_GL_X11 1" >>confdefs.h
25703
25704 fi
25705 fi
25706
25707else
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25709$as_echo "no" >&6; }
25710 build_gl_xcb="no"
25711fi
25712
25713## If we are not building XCB, then we can build XLib ##
25714
25715if test "x$build_gl_xcb" = "xno" ; then
25716
25717
25718
25719want_engine="${want_evas_engine_gl_xlib}"
25720want_static_engine="no"
25721have_engine="no"
25722have_evas_engine_gl_xlib="no"
25723
25724# Check whether --enable-gl-xlib was given.
25725if test "${enable_gl_xlib+set}" = set; then :
25726 enableval=$enable_gl_xlib;
25727 if test "x${enableval}" = "xyes" ; then
25728 want_engine="yes"
25729 else
25730 if test "x${enableval}" = "xstatic" ; then
25731 want_engine="static"
25732 else
25733 want_engine="no"
25734 fi
25735 fi
25736
25737fi
25738
25739
25740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenGL XLib rendering backend" >&5
25741$as_echo_n "checking whether to enable OpenGL XLib rendering backend... " >&6; }
25742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_engine}" >&5
25743$as_echo "${want_engine}" >&6; }
25744
25745if test "x${want_engine}" = "xyes" -o "x${want_engine}" = "xstatic" -o "x${want_engine}" = "xauto" ; then
25746
25747
25748evas_engine_gl_xlib_cflags=""
25749evas_engine_gl_xlib_libs=""
25750
25751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25752$as_echo_n "checking for X... " >&6; }
25753
25754
25755# Check whether --with-x was given.
25756if test "${with_x+set}" = set; then :
25757 withval=$with_x;
25758fi
25759
25760# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25761if test "x$with_x" = xno; then
25762 # The user explicitly disabled X.
25763 have_x=disabled
25764else
25765 case $x_includes,$x_libraries in #(
25766 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
25767 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
25768 $as_echo_n "(cached) " >&6
25769else
25770 # One or both of the vars are not set, and there is no cached value.
25771ac_x_includes=no ac_x_libraries=no
25772rm -f -r conftest.dir
25773if mkdir conftest.dir; then
25774 cd conftest.dir
25775 cat >Imakefile <<'_ACEOF'
25776incroot:
25777 @echo incroot='${INCROOT}'
25778usrlibdir:
25779 @echo usrlibdir='${USRLIBDIR}'
25780libdir:
25781 @echo libdir='${LIBDIR}'
25782_ACEOF
25783 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25784 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25785 for ac_var in incroot usrlibdir libdir; do
25786 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25787 done
25788 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25789 for ac_extension in a so sl dylib la dll; do
25790 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25791 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25792 ac_im_usrlibdir=$ac_im_libdir; break
25793 fi
25794 done
25795 # Screen out bogus values from the imake configuration. They are
25796 # bogus both because they are the default anyway, and because
25797 # using them would break gcc on systems where it needs fixed includes.
25798 case $ac_im_incroot in
25799 /usr/include) ac_x_includes= ;;
25800 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25801 esac
25802 case $ac_im_usrlibdir in
25803 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25804 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25805 esac
25806 fi
25807 cd ..
25808 rm -f -r conftest.dir
25809fi
25810
25811# Standard set of common directories for X headers.
25812# Check X11 before X11Rn because it is often a symlink to the current release.
25813ac_x_header_dirs='
25814/usr/X11/include
25815/usr/X11R7/include
25816/usr/X11R6/include
25817/usr/X11R5/include
25818/usr/X11R4/include
25819
25820/usr/include/X11
25821/usr/include/X11R7
25822/usr/include/X11R6
25823/usr/include/X11R5
25824/usr/include/X11R4
25825
25826/usr/local/X11/include
25827/usr/local/X11R7/include
25828/usr/local/X11R6/include
25829/usr/local/X11R5/include
25830/usr/local/X11R4/include
25831
25832/usr/local/include/X11
25833/usr/local/include/X11R7
25834/usr/local/include/X11R6
25835/usr/local/include/X11R5
25836/usr/local/include/X11R4
25837
25838/usr/X386/include
25839/usr/x386/include
25840/usr/XFree86/include/X11
25841
25842/usr/include
25843/usr/local/include
25844/usr/unsupported/include
25845/usr/athena/include
25846/usr/local/x11r5/include
25847/usr/lpp/Xamples/include
25848
25849/usr/openwin/include
25850/usr/openwin/share/include'
25851
25852if test "$ac_x_includes" = no; then
25853 # Guess where to find include files, by looking for Xlib.h.
25854 # First, try using that file with no special directory specified.
25855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856/* end confdefs.h. */
25857#include <X11/Xlib.h>
25858_ACEOF
25859if ac_fn_c_try_cpp "$LINENO"; then :
25860 # We can compile using X headers with no special include directory.
25861ac_x_includes=
25862else
25863 for ac_dir in $ac_x_header_dirs; do
25864 if test -r "$ac_dir/X11/Xlib.h"; then
25865 ac_x_includes=$ac_dir
25866 break
25867 fi
25868done
25869fi
25870rm -f conftest.err conftest.i conftest.$ac_ext
25871fi # $ac_x_includes = no
25872
25873if test "$ac_x_libraries" = no; then
25874 # Check for the libraries.
25875 # See if we find them without any special options.
25876 # Don't add to $LIBS permanently.
25877 ac_save_LIBS=$LIBS
25878 LIBS="-lX11 $LIBS"
25879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25880/* end confdefs.h. */
25881#include <X11/Xlib.h>
25882int
25883main ()
25884{
25885XrmInitialize ()
25886 ;
25887 return 0;
25888}
25889_ACEOF
25890if ac_fn_c_try_link "$LINENO"; then :
25891 LIBS=$ac_save_LIBS
25892# We can link X programs with no special library path.
25893ac_x_libraries=
25894else
25895 LIBS=$ac_save_LIBS
25896for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25897do
25898 # Don't even attempt the hair of trying to link an X program!
25899 for ac_extension in a so sl dylib la dll; do
25900 if test -r "$ac_dir/libX11.$ac_extension"; then
25901 ac_x_libraries=$ac_dir
25902 break 2
25903 fi
25904 done
25905done
25906fi
25907rm -f core conftest.err conftest.$ac_objext \
25908 conftest$ac_exeext conftest.$ac_ext
25909fi # $ac_x_libraries = no
25910
25911case $ac_x_includes,$ac_x_libraries in #(
25912 no,* | *,no | *\'*)
25913 # Didn't find X, or a directory has "'" in its name.
25914 ac_cv_have_x="have_x=no";; #(
25915 *)
25916 # Record where we found X for the cache.
25917 ac_cv_have_x="have_x=yes\
25918 ac_x_includes='$ac_x_includes'\
25919 ac_x_libraries='$ac_x_libraries'"
25920esac
25921fi
25922;; #(
25923 *) have_x=yes;;
25924 esac
25925 eval "$ac_cv_have_x"
25926fi # $with_x != no
25927
25928if test "$have_x" != yes; then
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25930$as_echo "$have_x" >&6; }
25931 no_x=yes
25932else
25933 # If each of the values was on the command line, it overrides each guess.
25934 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25935 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25936 # Update the cache value to reflect the command line values.
25937 ac_cv_have_x="have_x=yes\
25938 ac_x_includes='$x_includes'\
25939 ac_x_libraries='$x_libraries'"
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25941$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25942fi
25943
25944if test "$no_x" = yes; then
25945 # Not all programs may use this symbol, but it does not hurt to define it.
25946
25947$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25948
25949 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25950else
25951 if test -n "$x_includes"; then
25952 X_CFLAGS="$X_CFLAGS -I$x_includes"
25953 fi
25954
25955 # It would also be nice to do this for all -L options, not just this one.
25956 if test -n "$x_libraries"; then
25957 X_LIBS="$X_LIBS -L$x_libraries"
25958 # For Solaris; some versions of Sun CC require a space after -R and
25959 # others require no space. Words are not sufficient . . . .
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25961$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25962 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25963 ac_xsave_c_werror_flag=$ac_c_werror_flag
25964 ac_c_werror_flag=yes
25965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966/* end confdefs.h. */
25967
25968int
25969main ()
25970{
25971
25972 ;
25973 return 0;
25974}
25975_ACEOF
25976if ac_fn_c_try_link "$LINENO"; then :
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25978$as_echo "no" >&6; }
25979 X_LIBS="$X_LIBS -R$x_libraries"
25980else
25981 LIBS="$ac_xsave_LIBS -R $x_libraries"
25982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25983/* end confdefs.h. */
25984
25985int
25986main ()
25987{
25988
25989 ;
25990 return 0;
25991}
25992_ACEOF
25993if ac_fn_c_try_link "$LINENO"; then :
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25995$as_echo "yes" >&6; }
25996 X_LIBS="$X_LIBS -R $x_libraries"
25997else
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25999$as_echo "neither works" >&6; }
26000fi
26001rm -f core conftest.err conftest.$ac_objext \
26002 conftest$ac_exeext conftest.$ac_ext
26003fi
26004rm -f core conftest.err conftest.$ac_objext \
26005 conftest$ac_exeext conftest.$ac_ext
26006 ac_c_werror_flag=$ac_xsave_c_werror_flag
26007 LIBS=$ac_xsave_LIBS
26008 fi
26009
26010 # Check for system-dependent libraries X programs must link with.
26011 # Do this before checking for the system-independent R6 libraries
26012 # (-lICE), since we may need -lsocket or whatever for X linking.
26013
26014 if test "$ISC" = yes; then
26015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26016 else
26017 # Martyn Johnson says this is needed for Ultrix, if the X
26018 # libraries were built with DECnet support. And Karl Berry says
26019 # the Alpha needs dnet_stub (dnet does not exist).
26020 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26022/* end confdefs.h. */
26023
26024/* Override any GCC internal prototype to avoid an error.
26025 Use char because int might match the return type of a GCC
26026 builtin and then its argument prototype would still apply. */
26027#ifdef __cplusplus
26028extern "C"
26029#endif
26030char XOpenDisplay ();
26031int
26032main ()
26033{
26034return XOpenDisplay ();
26035 ;
26036 return 0;
26037}
26038_ACEOF
26039if ac_fn_c_try_link "$LINENO"; then :
26040
26041else
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
26043$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
26044if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
26045 $as_echo_n "(cached) " >&6
26046else
26047 ac_check_lib_save_LIBS=$LIBS
26048LIBS="-ldnet $LIBS"
26049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26050/* end confdefs.h. */
26051
26052/* Override any GCC internal prototype to avoid an error.
26053 Use char because int might match the return type of a GCC
26054 builtin and then its argument prototype would still apply. */
26055#ifdef __cplusplus
26056extern "C"
26057#endif
26058char dnet_ntoa ();
26059int
26060main ()
26061{
26062return dnet_ntoa ();
26063 ;
26064 return 0;
26065}
26066_ACEOF
26067if ac_fn_c_try_link "$LINENO"; then :
26068 ac_cv_lib_dnet_dnet_ntoa=yes
26069else
26070 ac_cv_lib_dnet_dnet_ntoa=no
26071fi
26072rm -f core conftest.err conftest.$ac_objext \
26073 conftest$ac_exeext conftest.$ac_ext
26074LIBS=$ac_check_lib_save_LIBS
26075fi
26076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26077$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
26078if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
26079 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26080fi
26081
26082 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
26084$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
26085if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
26086 $as_echo_n "(cached) " >&6
26087else
26088 ac_check_lib_save_LIBS=$LIBS
26089LIBS="-ldnet_stub $LIBS"
26090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26091/* end confdefs.h. */
26092
26093/* Override any GCC internal prototype to avoid an error.
26094 Use char because int might match the return type of a GCC
26095 builtin and then its argument prototype would still apply. */
26096#ifdef __cplusplus
26097extern "C"
26098#endif
26099char dnet_ntoa ();
26100int
26101main ()
26102{
26103return dnet_ntoa ();
26104 ;
26105 return 0;
26106}
26107_ACEOF
26108if ac_fn_c_try_link "$LINENO"; then :
26109 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26110else
26111 ac_cv_lib_dnet_stub_dnet_ntoa=no
26112fi
26113rm -f core conftest.err conftest.$ac_objext \
26114 conftest$ac_exeext conftest.$ac_ext
26115LIBS=$ac_check_lib_save_LIBS
26116fi
26117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26118$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
26119if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
26120 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26121fi
26122
26123 fi
26124fi
26125rm -f core conftest.err conftest.$ac_objext \
26126 conftest$ac_exeext conftest.$ac_ext
26127 LIBS="$ac_xsave_LIBS"
26128
26129 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26130 # to get the SysV transport functions.
26131 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26132 # needs -lnsl.
26133 # The nsl library prevents programs from opening the X display
26134 # on Irix 5.2, according to T.E. Dickey.
26135 # The functions gethostbyname, getservbyname, and inet_addr are
26136 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26137 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26138if test "x$ac_cv_func_gethostbyname" = x""yes; then :
26139
26140fi
26141
26142 if test $ac_cv_func_gethostbyname = no; then
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
26144$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
26145if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
26146 $as_echo_n "(cached) " >&6
26147else
26148 ac_check_lib_save_LIBS=$LIBS
26149LIBS="-lnsl $LIBS"
26150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26151/* end confdefs.h. */
26152
26153/* Override any GCC internal prototype to avoid an error.
26154 Use char because int might match the return type of a GCC
26155 builtin and then its argument prototype would still apply. */
26156#ifdef __cplusplus
26157extern "C"
26158#endif
26159char gethostbyname ();
26160int
26161main ()
26162{
26163return gethostbyname ();
26164 ;
26165 return 0;
26166}
26167_ACEOF
26168if ac_fn_c_try_link "$LINENO"; then :
26169 ac_cv_lib_nsl_gethostbyname=yes
26170else
26171 ac_cv_lib_nsl_gethostbyname=no
26172fi
26173rm -f core conftest.err conftest.$ac_objext \
26174 conftest$ac_exeext conftest.$ac_ext
26175LIBS=$ac_check_lib_save_LIBS
26176fi
26177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
26178$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
26179if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
26180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26181fi
26182
26183 if test $ac_cv_lib_nsl_gethostbyname = no; then
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
26185$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
26186if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
26187 $as_echo_n "(cached) " >&6
26188else
26189 ac_check_lib_save_LIBS=$LIBS
26190LIBS="-lbsd $LIBS"
26191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26192/* end confdefs.h. */
26193
26194/* Override any GCC internal prototype to avoid an error.
26195 Use char because int might match the return type of a GCC
26196 builtin and then its argument prototype would still apply. */
26197#ifdef __cplusplus
26198extern "C"
26199#endif
26200char gethostbyname ();
26201int
26202main ()
26203{
26204return gethostbyname ();
26205 ;
26206 return 0;
26207}
26208_ACEOF
26209if ac_fn_c_try_link "$LINENO"; then :
26210 ac_cv_lib_bsd_gethostbyname=yes
26211else
26212 ac_cv_lib_bsd_gethostbyname=no
26213fi
26214rm -f core conftest.err conftest.$ac_objext \
26215 conftest$ac_exeext conftest.$ac_ext
26216LIBS=$ac_check_lib_save_LIBS
26217fi
26218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
26219$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
26220if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
26221 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26222fi
26223
26224 fi
26225 fi
26226
26227 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26228 # socket/setsockopt and other routines are undefined under SCO ODT
26229 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26230 # on later versions), says Simon Leinen: it contains gethostby*
26231 # variants that don't use the name server (or something). -lsocket
26232 # must be given before -lnsl if both are needed. We assume that
26233 # if connect needs -lnsl, so does gethostbyname.
26234 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
26235if test "x$ac_cv_func_connect" = x""yes; then :
26236
26237fi
26238
26239 if test $ac_cv_func_connect = no; then
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
26241$as_echo_n "checking for connect in -lsocket... " >&6; }
26242if test "${ac_cv_lib_socket_connect+set}" = set; then :
26243 $as_echo_n "(cached) " >&6
26244else
26245 ac_check_lib_save_LIBS=$LIBS
26246LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248/* end confdefs.h. */
26249
26250/* Override any GCC internal prototype to avoid an error.
26251 Use char because int might match the return type of a GCC
26252 builtin and then its argument prototype would still apply. */
26253#ifdef __cplusplus
26254extern "C"
26255#endif
26256char connect ();
26257int
26258main ()
26259{
26260return connect ();
26261 ;
26262 return 0;
26263}
26264_ACEOF
26265if ac_fn_c_try_link "$LINENO"; then :
26266 ac_cv_lib_socket_connect=yes
26267else
26268 ac_cv_lib_socket_connect=no
26269fi
26270rm -f core conftest.err conftest.$ac_objext \
26271 conftest$ac_exeext conftest.$ac_ext
26272LIBS=$ac_check_lib_save_LIBS
26273fi
26274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
26275$as_echo "$ac_cv_lib_socket_connect" >&6; }
26276if test "x$ac_cv_lib_socket_connect" = x""yes; then :
26277 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26278fi
26279
26280 fi
26281
26282 # Guillermo Gomez says -lposix is necessary on A/UX.
26283 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
26284if test "x$ac_cv_func_remove" = x""yes; then :
26285
26286fi
26287
26288 if test $ac_cv_func_remove = no; then
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
26290$as_echo_n "checking for remove in -lposix... " >&6; }
26291if test "${ac_cv_lib_posix_remove+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26293else
26294 ac_check_lib_save_LIBS=$LIBS
26295LIBS="-lposix $LIBS"
26296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26297/* end confdefs.h. */
26298
26299/* Override any GCC internal prototype to avoid an error.
26300 Use char because int might match the return type of a GCC
26301 builtin and then its argument prototype would still apply. */
26302#ifdef __cplusplus
26303extern "C"
26304#endif
26305char remove ();
26306int
26307main ()
26308{
26309return remove ();
26310 ;
26311 return 0;
26312}
26313_ACEOF
26314if ac_fn_c_try_link "$LINENO"; then :
26315 ac_cv_lib_posix_remove=yes
26316else
26317 ac_cv_lib_posix_remove=no
26318fi
26319rm -f core conftest.err conftest.$ac_objext \
26320 conftest$ac_exeext conftest.$ac_ext
26321LIBS=$ac_check_lib_save_LIBS
26322fi
26323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
26324$as_echo "$ac_cv_lib_posix_remove" >&6; }
26325if test "x$ac_cv_lib_posix_remove" = x""yes; then :
26326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26327fi
26328
26329 fi
26330
26331 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26332 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
26333if test "x$ac_cv_func_shmat" = x""yes; then :
26334
26335fi
26336
26337 if test $ac_cv_func_shmat = no; then
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
26339$as_echo_n "checking for shmat in -lipc... " >&6; }
26340if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
26341 $as_echo_n "(cached) " >&6
26342else
26343 ac_check_lib_save_LIBS=$LIBS
26344LIBS="-lipc $LIBS"
26345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26346/* end confdefs.h. */
26347
26348/* Override any GCC internal prototype to avoid an error.
26349 Use char because int might match the return type of a GCC
26350 builtin and then its argument prototype would still apply. */
26351#ifdef __cplusplus
26352extern "C"
26353#endif
26354char shmat ();
26355int
26356main ()
26357{
26358return shmat ();
26359 ;
26360 return 0;
26361}
26362_ACEOF
26363if ac_fn_c_try_link "$LINENO"; then :
26364 ac_cv_lib_ipc_shmat=yes
26365else
26366 ac_cv_lib_ipc_shmat=no
26367fi
26368rm -f core conftest.err conftest.$ac_objext \
26369 conftest$ac_exeext conftest.$ac_ext
26370LIBS=$ac_check_lib_save_LIBS
26371fi
26372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
26373$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
26374if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
26375 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26376fi
26377
26378 fi
26379 fi
26380
26381 # Check for libraries that X11R6 Xt/Xaw programs need.
26382 ac_save_LDFLAGS=$LDFLAGS
26383 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26384 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26385 # check for ICE first), but we must link in the order -lSM -lICE or
26386 # we get undefined symbols. So assume we have SM if we have ICE.
26387 # These have to be linked with before -lX11, unlike the other
26388 # libraries we check for below, so use a different variable.
26389 # John Interrante, Karl Berry
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
26391$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
26392if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
26393 $as_echo_n "(cached) " >&6
26394else
26395 ac_check_lib_save_LIBS=$LIBS
26396LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26398/* end confdefs.h. */
26399
26400/* Override any GCC internal prototype to avoid an error.
26401 Use char because int might match the return type of a GCC
26402 builtin and then its argument prototype would still apply. */
26403#ifdef __cplusplus
26404extern "C"
26405#endif
26406char IceConnectionNumber ();
26407int
26408main ()
26409{
26410return IceConnectionNumber ();
26411 ;
26412 return 0;
26413}
26414_ACEOF
26415if ac_fn_c_try_link "$LINENO"; then :
26416 ac_cv_lib_ICE_IceConnectionNumber=yes
26417else
26418 ac_cv_lib_ICE_IceConnectionNumber=no
26419fi
26420rm -f core conftest.err conftest.$ac_objext \
26421 conftest$ac_exeext conftest.$ac_ext
26422LIBS=$ac_check_lib_save_LIBS
26423fi
26424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26425$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
26426if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
26427 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26428fi
26429
26430 LDFLAGS=$ac_save_LDFLAGS
26431
26432fi
26433
26434
26435ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "
26436#include <GL/gl.h>
26437#include <GL/glext.h>
26438#include <GL/glx.h>
26439#include <X11/Xlib.h>
26440#include <X11/Xatom.h>
26441#include <X11/Xutil.h>
26442#include <X11/extensions/Xrender.h>
26443#include <X11/Xresource.h>
26444
26445"
26446if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
26447 have_dep="yes"
26448else
26449 have_dep="no"
26450fi
26451
26452
26453
26454gl_pt_lib="";
26455have_gl_pt="no"
26456
26457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_create() is supported" >&5
26458$as_echo_n "checking whether pthread_create() is supported... " >&6; }
26459CFLAGS_save="${CFLAGS}"
26460CFLAGS="${CFLAGS} -pthread"
26461LIBS_save="${LIBS}"
26462LIBS="${LIBS} -pthread"
26463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26464/* end confdefs.h. */
26465
26466#include <pthread.h>
26467
26468int
26469main ()
26470{
26471
26472pthread_create(NULL, NULL, NULL, NULL);
26473
26474 ;
26475 return 0;
26476}
26477_ACEOF
26478if ac_fn_c_try_link "$LINENO"; then :
26479 have_gl_pt="yes"
26480else
26481 have_gl_pt="no"
26482fi
26483rm -f core conftest.err conftest.$ac_objext \
26484 conftest$ac_exeext conftest.$ac_ext
26485CFLAGS=${CFLAGS_save}
26486LIBS=${LIBS_save}
26487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_gl_pt}" >&5
26488$as_echo "${have_gl_pt}" >&6; }
26489
26490if test "x$have_gl_pt" = "xyes" ; then
26491 gl_pt_lib=" -pthread"
26492fi
26493
26494if test "x${have_dep}" = "xyes" ; then
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateColormap in -lX11" >&5
26496$as_echo_n "checking for XCreateColormap in -lX11... " >&6; }
26497if test "${ac_cv_lib_X11_XCreateColormap+set}" = set; then :
26498 $as_echo_n "(cached) " >&6
26499else
26500 ac_check_lib_save_LIBS=$LIBS
26501LIBS="-lX11 $LIBS"
26502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503/* end confdefs.h. */
26504
26505/* Override any GCC internal prototype to avoid an error.
26506 Use char because int might match the return type of a GCC
26507 builtin and then its argument prototype would still apply. */
26508#ifdef __cplusplus
26509extern "C"
26510#endif
26511char XCreateColormap ();
26512int
26513main ()
26514{
26515return XCreateColormap ();
26516 ;
26517 return 0;
26518}
26519_ACEOF
26520if ac_fn_c_try_link "$LINENO"; then :
26521 ac_cv_lib_X11_XCreateColormap=yes
26522else
26523 ac_cv_lib_X11_XCreateColormap=no
26524fi
26525rm -f core conftest.err conftest.$ac_objext \
26526 conftest$ac_exeext conftest.$ac_ext
26527LIBS=$ac_check_lib_save_LIBS
26528fi
26529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateColormap" >&5
26530$as_echo "$ac_cv_lib_X11_XCreateColormap" >&6; }
26531if test "x$ac_cv_lib_X11_XCreateColormap" = x""yes; then :
26532 have_dep="yes"
26533else
26534 have_dep="no"
26535fi
26536
26537fi
26538
26539if test "x${have_dep}" = "xyes" ; then
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreatePicture in -lXrender" >&5
26541$as_echo_n "checking for XRenderCreatePicture in -lXrender... " >&6; }
26542if test "${ac_cv_lib_Xrender_XRenderCreatePicture+set}" = set; then :
26543 $as_echo_n "(cached) " >&6
26544else
26545 ac_check_lib_save_LIBS=$LIBS
26546LIBS="-lXrender $LIBS"
26547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26548/* end confdefs.h. */
26549
26550/* Override any GCC internal prototype to avoid an error.
26551 Use char because int might match the return type of a GCC
26552 builtin and then its argument prototype would still apply. */
26553#ifdef __cplusplus
26554extern "C"
26555#endif
26556char XRenderCreatePicture ();
26557int
26558main ()
26559{
26560return XRenderCreatePicture ();
26561 ;
26562 return 0;
26563}
26564_ACEOF
26565if ac_fn_c_try_link "$LINENO"; then :
26566 ac_cv_lib_Xrender_XRenderCreatePicture=yes
26567else
26568 ac_cv_lib_Xrender_XRenderCreatePicture=no
26569fi
26570rm -f core conftest.err conftest.$ac_objext \
26571 conftest$ac_exeext conftest.$ac_ext
26572LIBS=$ac_check_lib_save_LIBS
26573fi
26574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreatePicture" >&5
26575$as_echo "$ac_cv_lib_Xrender_XRenderCreatePicture" >&6; }
26576if test "x$ac_cv_lib_Xrender_XRenderCreatePicture" = x""yes; then :
26577 have_dep="yes"
26578else
26579 have_dep="no"
26580fi
26581
26582fi
26583
26584if test "x${have_dep}" = "xyes" ; then
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXCreateContext in -lGL" >&5
26586$as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
26587if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then :
26588 $as_echo_n "(cached) " >&6
26589else
26590 ac_check_lib_save_LIBS=$LIBS
26591LIBS="-lGL -lX11 -lXext -lXrender -lm $gl_pt_lib $LIBS"
26592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593/* end confdefs.h. */
26594
26595/* Override any GCC internal prototype to avoid an error.
26596 Use char because int might match the return type of a GCC
26597 builtin and then its argument prototype would still apply. */
26598#ifdef __cplusplus
26599extern "C"
26600#endif
26601char glXCreateContext ();
26602int
26603main ()
26604{
26605return glXCreateContext ();
26606 ;
26607 return 0;
26608}
26609_ACEOF
26610if ac_fn_c_try_link "$LINENO"; then :
26611 ac_cv_lib_GL_glXCreateContext=yes
26612else
26613 ac_cv_lib_GL_glXCreateContext=no
26614fi
26615rm -f core conftest.err conftest.$ac_objext \
26616 conftest$ac_exeext conftest.$ac_ext
26617LIBS=$ac_check_lib_save_LIBS
26618fi
26619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glXCreateContext" >&5
26620$as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
26621if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then :
26622 have_dep="yes"
26623else
26624 have_dep="no"
26625fi
26626
26627fi
26628
26629if test "x$gl_flavor_gles" = "xyes" ; then
26630 have_dep=no
26631fi
26632
26633if test "x${have_dep}" = "xyes" ; then
26634
26635pkg_failed=no
26636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5
26637$as_echo_n "checking for GL_EET... " >&6; }
26638
26639if test -n "$GL_EET_CFLAGS"; then
26640 pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS"
26641 elif test -n "$PKG_CONFIG"; then
26642 if test -n "$PKG_CONFIG" && \
26643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
26644 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
26645 ac_status=$?
26646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26647 test $ac_status = 0; }; then
26648 pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null`
26649else
26650 pkg_failed=yes
26651fi
26652 else
26653 pkg_failed=untried
26654fi
26655if test -n "$GL_EET_LIBS"; then
26656 pkg_cv_GL_EET_LIBS="$GL_EET_LIBS"
26657 elif test -n "$PKG_CONFIG"; then
26658 if test -n "$PKG_CONFIG" && \
26659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
26660 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
26661 ac_status=$?
26662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26663 test $ac_status = 0; }; then
26664 pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null`
26665else
26666 pkg_failed=yes
26667fi
26668 else
26669 pkg_failed=untried
26670fi
26671
26672
26673
26674if test $pkg_failed = yes; then
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26676$as_echo "no" >&6; }
26677
26678if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26679 _pkg_short_errors_supported=yes
26680else
26681 _pkg_short_errors_supported=no
26682fi
26683 if test $_pkg_short_errors_supported = yes; then
26684 GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1`
26685 else
26686 GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1`
26687 fi
26688 # Put the nasty error message in config.log where it belongs
26689 echo "$GL_EET_PKG_ERRORS" >&5
26690
26691 have_dep="no"
26692elif test $pkg_failed = untried; then
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26694$as_echo "no" >&6; }
26695 have_dep="no"
26696else
26697 GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS
26698 GL_EET_LIBS=$pkg_cv_GL_EET_LIBS
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26700$as_echo "yes" >&6; }
26701 have_dep="yes"
26702fi
26703 if test "x${have_dep}" = "xyes" ; then
26704 if test "xno" = "xyes" ; then
26705 x_libs="${x_libs} -lX11 -lXext -lXrender"
26706 else
26707 x_dir=${x_dir:-/usr/X11R6}
26708 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
26709 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender"
26710 fi
26711 evas_engine_gl_xlib_cflags="-I/usr/include ${x_cflags}"
26712 evas_engine_gl_xlib_libs="${x_libs} -lGL $gl_pt_lib"
26713 evas_engine_gl_common_libs="-lGL $gl_pt_lib"
26714 fi
26715else
26716 if test "xno" = "xyes" ; then
26717 x_libs="${x_libs} -lX11 -lXext -lXrender"
26718 else
26719 x_dir=${x_dir:-/usr/X11R6}
26720 x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
26721 x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext -lXrender"
26722 fi
26723 ac_fn_c_check_header_compile "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "
26724#include <GLES2/gl2.h>
26725#include <GLES2/gl2ext.h>
26726#include <EGL/egl.h>
26727#include <X11/Xlib.h>
26728#include <X11/Xatom.h>
26729#include <X11/Xutil.h>
26730#include <X11/extensions/Xrender.h>
26731#include <X11/Xresource.h>
26732
26733"
26734if test "x$ac_cv_header_GLES2_gl2_h" = x""yes; then :
26735 have_egl="yes"
26736else
26737 have_egl="no"
26738fi
26739
26740
26741 if test "x${have_egl}" = "xyes" ; then
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5
26743$as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; }
26744if test "${ac_cv_lib_GLESv2_glTexImage2D+set}" = set; then :
26745 $as_echo_n "(cached) " >&6
26746else
26747 ac_check_lib_save_LIBS=$LIBS
26748LIBS="-lGLESv2 -lEGL ${x_libs} -lm $gl_pt_lib $LIBS"
26749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26750/* end confdefs.h. */
26751
26752/* Override any GCC internal prototype to avoid an error.
26753 Use char because int might match the return type of a GCC
26754 builtin and then its argument prototype would still apply. */
26755#ifdef __cplusplus
26756extern "C"
26757#endif
26758char glTexImage2D ();
26759int
26760main ()
26761{
26762return glTexImage2D ();
26763 ;
26764 return 0;
26765}
26766_ACEOF
26767if ac_fn_c_try_link "$LINENO"; then :
26768 ac_cv_lib_GLESv2_glTexImage2D=yes
26769else
26770 ac_cv_lib_GLESv2_glTexImage2D=no
26771fi
26772rm -f core conftest.err conftest.$ac_objext \
26773 conftest$ac_exeext conftest.$ac_ext
26774LIBS=$ac_check_lib_save_LIBS
26775fi
26776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5
26777$as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; }
26778if test "x$ac_cv_lib_GLESv2_glTexImage2D" = x""yes; then :
26779 have_glesv2="yes"
26780fi
26781
26782 if test "x${have_glesv2}" = "xyes" ; then
26783
26784pkg_failed=no
26785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_EET" >&5
26786$as_echo_n "checking for GL_EET... " >&6; }
26787
26788if test -n "$GL_EET_CFLAGS"; then
26789 pkg_cv_GL_EET_CFLAGS="$GL_EET_CFLAGS"
26790 elif test -n "$PKG_CONFIG"; then
26791 if test -n "$PKG_CONFIG" && \
26792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
26793 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
26794 ac_status=$?
26795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26796 test $ac_status = 0; }; then
26797 pkg_cv_GL_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null`
26798else
26799 pkg_failed=yes
26800fi
26801 else
26802 pkg_failed=untried
26803fi
26804if test -n "$GL_EET_LIBS"; then
26805 pkg_cv_GL_EET_LIBS="$GL_EET_LIBS"
26806 elif test -n "$PKG_CONFIG"; then
26807 if test -n "$PKG_CONFIG" && \
26808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
26809 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
26810 ac_status=$?
26811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26812 test $ac_status = 0; }; then
26813 pkg_cv_GL_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null`
26814else
26815 pkg_failed=yes
26816fi
26817 else
26818 pkg_failed=untried
26819fi
26820
26821
26822
26823if test $pkg_failed = yes; then
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26825$as_echo "no" >&6; }
26826
26827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26828 _pkg_short_errors_supported=yes
26829else
26830 _pkg_short_errors_supported=no
26831fi
26832 if test $_pkg_short_errors_supported = yes; then
26833 GL_EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1`
26834 else
26835 GL_EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1`
26836 fi
26837 # Put the nasty error message in config.log where it belongs
26838 echo "$GL_EET_PKG_ERRORS" >&5
26839
26840 have_dep="no"
26841elif test $pkg_failed = untried; then
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26843$as_echo "no" >&6; }
26844 have_dep="no"
26845else
26846 GL_EET_CFLAGS=$pkg_cv_GL_EET_CFLAGS
26847 GL_EET_LIBS=$pkg_cv_GL_EET_LIBS
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26849$as_echo "yes" >&6; }
26850 have_dep="yes"
26851fi
26852 if test "x${have_dep}" = "xyes" ; then
26853 evas_engine_gl_xlib_cflags="${x_cflags}"
26854 evas_engine_gl_xlib_libs="${x_libs} -lGLESv2 -lEGL -lm $gl_pt_lib"
26855 evas_engine_gl_common_libs="-lGLESv2 -lm $gl_pt_lib"
26856 have_dep="yes"
26857 gl_flavor_gles="no"
26858
26859$as_echo "#define GLES_VARIETY_SGX 1" >>confdefs.h
26860
26861 gles_variety_sgx="yes"
26862 fi
26863 fi
26864 fi
26865fi
26866
26867
26868
26869
26870
26871if test "x${have_dep}" = "xyes" ; then
26872 have_engine="yes"
26873else
26874 have_engine="no"
26875fi
26876
26877
26878fi
26879
26880if test "x${have_engine}" = "xno" -a "x${want_engine}" = "xyes" -a "x${use_strict}" = "xyes" ; then
26881 as_fn_error $? "OpenGL XLib dependencies not found (strict dependencies checking)" "$LINENO" 5
26882fi
26883
26884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenGL XLib rendering backend will be built" >&5
26885$as_echo_n "checking whether OpenGL XLib rendering backend will be built... " >&6; }
26886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_engine}" >&5
26887$as_echo "${have_engine}" >&6; }
26888
26889if test "x${have_engine}" = "xyes" ; then
26890 if test "x${want_engine}" = "xstatic" ; then
26891 have_evas_engine_gl_xlib="static"
26892 want_static_engine="yes"
26893 else
26894 have_evas_engine_gl_xlib="yes"
26895 fi
26896fi
26897
26898if test "x${have_engine}" = "xyes" ; then
26899
26900$as_echo "#define BUILD_ENGINE_GL_XLIB 1" >>confdefs.h
26901
26902fi
26903
26904 if test "x${have_engine}" = "xyes"; then
26905 BUILD_ENGINE_GL_XLIB_TRUE=
26906 BUILD_ENGINE_GL_XLIB_FALSE='#'
26907else
26908 BUILD_ENGINE_GL_XLIB_TRUE='#'
26909 BUILD_ENGINE_GL_XLIB_FALSE=
26910fi
26911
26912
26913if test "x${want_static_engine}" = "xyes" ; then
26914
26915$as_echo "#define EVAS_STATIC_BUILD_GL_XLIB 1" >>confdefs.h
26916
26917 have_static_module="yes"
26918fi
26919
26920 if test "x${want_static_engine}" = "xyes"; then
26921 EVAS_STATIC_BUILD_GL_XLIB_TRUE=
26922 EVAS_STATIC_BUILD_GL_XLIB_FALSE='#'
26923else
26924 EVAS_STATIC_BUILD_GL_XLIB_TRUE='#'
26925 EVAS_STATIC_BUILD_GL_XLIB_FALSE=
26926fi
26927
26928
26929
26930
26931
26932
26933 if test "x$have_evas_engine_gl_xlib" != "xno" ; then
26934 have_evas_engine_gl_x11="yes"
26935
26936cat >>confdefs.h <<_ACEOF
26937#define BUILD_ENGINE_GL_X11 1
26938_ACEOF
26939
26940
26941cat >>confdefs.h <<_ACEOF
26942#define BUILD_ENGINE_GL_XLIB 1
26943_ACEOF
26944
26945 if test "x$have_evas_engine_gl_xlib" = "xstatic" ; then
26946
26947cat >>confdefs.h <<_ACEOF
26948#define EVAS_STATIC_BUILD_GL_X11 1
26949_ACEOF
26950
26951 fi
26952 fi
26953else
26954 have_evas_engine_gl_xlib="no"
26955fi
26956
26957
26958 if test "x${have_evas_engine_gl_xlib}" != "xno"; then
26959 BUILD_ENGINE_GL_XLIB_TRUE=
26960 BUILD_ENGINE_GL_XLIB_FALSE='#'
26961else
26962 BUILD_ENGINE_GL_XLIB_TRUE='#'
26963 BUILD_ENGINE_GL_XLIB_FALSE=
26964fi
26965
26966 if test "x${have_evas_engine_gl_xcb}" != "xno"; then
26967 BUILD_ENGINE_GL_XCB_TRUE=
26968 BUILD_ENGINE_GL_XCB_FALSE='#'
26969else
26970 BUILD_ENGINE_GL_XCB_TRUE='#'
26971 BUILD_ENGINE_GL_XCB_FALSE=
26972fi
26973
26974 if test "x${have_evas_engine_gl_x11}" != "xno"; then
26975 BUILD_ENGINE_GL_X11_TRUE=
26976 BUILD_ENGINE_GL_X11_FALSE='#'
26977else
26978 BUILD_ENGINE_GL_X11_TRUE='#'
26979 BUILD_ENGINE_GL_X11_FALSE=
26980fi
26981
26982
26983 if test "x${have_evas_engine_gl_xcb}" = "xstatic" -o "x${have_evas_engine_gl_xlib}" = "xstatic"; then
26984 EVAS_STATIC_BUILD_GL_X11_TRUE=
26985 EVAS_STATIC_BUILD_GL_X11_FALSE='#'
26986else
26987 EVAS_STATIC_BUILD_GL_X11_TRUE='#'
26988 EVAS_STATIC_BUILD_GL_X11_FALSE=
26989fi
26990
26991 if test "x${have_evas_engine_gl_xlib}" = "xstatic"; then
26992 EVAS_STATIC_BUILD_GL_XLIB_TRUE=
26993 EVAS_STATIC_BUILD_GL_XLIB_FALSE='#'
26994else
26995 EVAS_STATIC_BUILD_GL_XLIB_TRUE='#'
26996 EVAS_STATIC_BUILD_GL_XLIB_FALSE=
26997fi
26998
26999 if test "x${have_evas_engine_gl_xcb}" = "xstatic"; then
27000 EVAS_STATIC_BUILD_GL_XCB_TRUE=
27001 EVAS_STATIC_BUILD_GL_XCB_FALSE='#'
27002else
27003 EVAS_STATIC_BUILD_GL_XCB_TRUE='#'
27004 EVAS_STATIC_BUILD_GL_XCB_FALSE=
27005fi
27006
27007
27008
27009
27010# common gl
27011have_evas_engine_gl_common="no"
27012have_static_evas_engine_gl_common="no"
27013if test "x$have_evas_engine_gl_xlib" = "xyes" \
27014 || test "x$have_evas_engine_gl_xcb" = "xyes" \
27015 || test "x$have_evas_engine_gl_sdl" = "xyes" \
27016 || test "x$have_evas_engine_gl_cocoa" = "xyes"; then
27017 have_evas_engine_gl_common="yes"
27018fi
27019if test "x$have_evas_engine_gl_xlib" = "xstatic" \
27020 || test "x$have_evas_engine_gl_xcb" = "xstatic" \
27021 || test "x$have_evas_engine_gl_sdl" = "xstatic" \
27022 || test "x$have_evas_engine_gl_cocoa" = "xstatic"; then
27023 have_evas_engine_gl_common="yes"
27024 have_static_evas_engine_gl_common="yes"
27025fi
27026
27027if test "x$have_evas_engine_gl_common" = "xyes"; then
27028 evas_engine_gl_common_libs=""
27029
27030$as_echo "#define BUILD_ENGINE_GL_COMMON 1" >>confdefs.h
27031
27032fi
27033
27034
27035
27036 if test "x$have_evas_engine_gl_common" = "xyes"; then
27037 BUILD_ENGINE_GL_COMMON_TRUE=
27038 BUILD_ENGINE_GL_COMMON_FALSE='#'
27039else
27040 BUILD_ENGINE_GL_COMMON_TRUE='#'
27041 BUILD_ENGINE_GL_COMMON_FALSE=
27042fi
27043
27044
27045 if test "x${have_static_evas_engine_gl_common}" = "xyes"; then
27046 EVAS_STATIC_BUILD_GL_COMMON_TRUE=
27047 EVAS_STATIC_BUILD_GL_COMMON_FALSE='#'
27048else
27049 EVAS_STATIC_BUILD_GL_COMMON_TRUE='#'
27050 EVAS_STATIC_BUILD_GL_COMMON_FALSE=
27051fi
27052
27053if test "x${have_static_evas_engine_gl_common}" = "xyes"; then
27054
27055$as_echo "#define EVAS_STATIC_BUILD_GL_COMMON 1" >>confdefs.h
27056
27057fi
27058
27059# gl_sdl
27060if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then
27061 ac_fn_c_check_decl "$LINENO" "SDL_GL_CONTEXT_MAJOR_VERSION" "ac_cv_have_decl_SDL_GL_CONTEXT_MAJOR_VERSION" "#include <SDL/SDL_video.h>
27062"
27063if test "x$ac_cv_have_decl_SDL_GL_CONTEXT_MAJOR_VERSION" = x""yes; then :
27064
27065$as_echo "#define HAVE_SDL_GL_CONTEXT_VERSION 1" >>confdefs.h
27066
27067fi
27068
27069fi
27070
27071if test "x$gl_flavor_gles" = "xyes"; then
27072 ac_fn_c_check_decl "$LINENO" "SDL_OPENGLES" "ac_cv_have_decl_SDL_OPENGLES" "#include <SDL/SDL_video.h>
27073"
27074if test "x$ac_cv_have_decl_SDL_OPENGLES" = x""yes; then :
27075
27076$as_echo "#define HAVE_SDL_FLAG_OPENGLES 1" >>confdefs.h
27077
27078fi
27079
27080fi
27081
27082# if software 16 x11 is enabled - build software_16 (the generic 16bit
27083# engine). later enable it fb_16 or other "16" bit engines are enabled.
27084have_evas_engine_software_16="no"
27085if test "x$have_evas_engine_software_16_x11" = "xyes" -o "x$have_evas_engine_software_16_x11" = "xstatic"; then
27086 have_evas_engine_software_16="yes"
27087fi
27088if test "x$have_evas_engine_software_16_sdl" = "xyes" -o "x$have_evas_engine_software_16_sdl" = "xstatic"; then
27089 have_evas_engine_software_16="yes"
27090fi
27091if test "x$have_evas_engine_software_16_ddraw" = "xyes" -o "x$have_evas_engine_software_16_ddraw" = "xstatic"; then
27092 have_evas_engine_software_16="yes"
27093fi
27094if test "x$have_evas_engine_software_16_wince" = "xyes" -o "x$have_evas_engine_software_16_wince" = "xstatic"; then
27095 have_evas_engine_software_16="yes"
27096fi
27097 if test "x$have_evas_engine_software_16" = "xyes"; then
27098 BUILD_ENGINE_SOFTWARE_16_TRUE=
27099 BUILD_ENGINE_SOFTWARE_16_FALSE='#'
27100else
27101 BUILD_ENGINE_SOFTWARE_16_TRUE='#'
27102 BUILD_ENGINE_SOFTWARE_16_FALSE=
27103fi
27104
27105
27106# if software 16 need to be build as part of libevas.so
27107have_static_software_16="no"
27108# Check whether --enable-static-software-16 was given.
27109if test "${enable_static_software_16+set}" = set; then :
27110 enableval=$enable_static_software_16; have_static_software_16=${enableval}
27111
27112fi
27113
27114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build software 16 engine as part of libevas" >&5
27115$as_echo_n "checking Whether to build software 16 engine as part of libevas... " >&6; }
27116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_static_software_16}" >&5
27117$as_echo "${have_static_software_16}" >&6; }
27118
27119 if test "x${have_static_software_16}" = "xyes"; then
27120 EVAS_STATIC_BUILD_SOFTWARE_16_TRUE=
27121 EVAS_STATIC_BUILD_SOFTWARE_16_FALSE='#'
27122else
27123 EVAS_STATIC_BUILD_SOFTWARE_16_TRUE='#'
27124 EVAS_STATIC_BUILD_SOFTWARE_16_FALSE=
27125fi
27126
27127if test "x${have_static_software_16}" = "xyes"; then
27128
27129$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_16 1" >>confdefs.h
27130
27131fi
27132
27133# if software 8 x11 is enabled - build software_8 (the generic 8bit
27134# engine).
27135have_evas_engine_software_8="no"
27136if test "x$have_evas_engine_software_8_x11" = "xyes" -o "x$have_evas_engine_software_8_x11" = "xstatic"; then
27137 have_evas_engine_software_8="yes"
27138fi
27139 if test "x$have_evas_engine_software_8" = "xyes"; then
27140 BUILD_ENGINE_SOFTWARE_8_TRUE=
27141 BUILD_ENGINE_SOFTWARE_8_FALSE='#'
27142else
27143 BUILD_ENGINE_SOFTWARE_8_TRUE='#'
27144 BUILD_ENGINE_SOFTWARE_8_FALSE=
27145fi
27146
27147
27148# if software 8 need to be build as part of libevas.so
27149have_static_software_8="no"
27150# Check whether --enable-static-software-8 was given.
27151if test "${enable_static_software_8+set}" = set; then :
27152 enableval=$enable_static_software_8; have_static_software_8=${enableval}
27153
27154fi
27155
27156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Whether to build software 8 engine as part of libevas" >&5
27157$as_echo_n "checking Whether to build software 8 engine as part of libevas... " >&6; }
27158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_static_software_8}" >&5
27159$as_echo "${have_static_software_8}" >&6; }
27160
27161 if test "x${have_static_software_8}" = "xyes"; then
27162 EVAS_STATIC_BUILD_SOFTWARE_8_TRUE=
27163 EVAS_STATIC_BUILD_SOFTWARE_8_FALSE='#'
27164else
27165 EVAS_STATIC_BUILD_SOFTWARE_8_TRUE='#'
27166 EVAS_STATIC_BUILD_SOFTWARE_8_FALSE=
27167fi
27168
27169if test "x${have_static_software_8}" = "xyes"; then
27170
27171$as_echo "#define EVAS_STATIC_BUILD_SOFTWARE_8 1" >>confdefs.h
27172
27173fi
27174
27175#####################################################################
27176## Image loaders
27177
27178
27179
27180
27181
27182
27183want_loader="${want_evas_image_loader_edb}"
27184want_static_loader="no"
27185have_loader="no"
27186have_evas_image_loader_edb="no"
27187
27188# Check whether --enable-image-loader-edb was given.
27189if test "${enable_image_loader_edb+set}" = set; then :
27190 enableval=$enable_image_loader_edb;
27191 if test "x${enableval}" = "xyes" ; then
27192 want_loader="yes"
27193 else
27194 if test "x${enableval}" = "xstatic" ; then
27195 want_loader="static"
27196 else
27197 want_loader="no"
27198 fi
27199 fi
27200
27201
27202fi
27203
27204
27205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Edb image loader" >&5
27206$as_echo_n "checking whether to enable Edb image loader... " >&6; }
27207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
27208$as_echo "${want_loader}" >&6; }
27209
27210if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
27211
27212
27213requirement=""
27214have_dep="no"
27215evas_image_loader_edb_cflags=""
27216evas_image_loader_edb_libs=""
27217
27218
27219pkg_failed=no
27220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDB" >&5
27221$as_echo_n "checking for EDB... " >&6; }
27222
27223if test -n "$EDB_CFLAGS"; then
27224 pkg_cv_EDB_CFLAGS="$EDB_CFLAGS"
27225 elif test -n "$PKG_CONFIG"; then
27226 if test -n "$PKG_CONFIG" && \
27227 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edb\""; } >&5
27228 ($PKG_CONFIG --exists --print-errors "edb") 2>&5
27229 ac_status=$?
27230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27231 test $ac_status = 0; }; then
27232 pkg_cv_EDB_CFLAGS=`$PKG_CONFIG --cflags "edb" 2>/dev/null`
27233else
27234 pkg_failed=yes
27235fi
27236 else
27237 pkg_failed=untried
27238fi
27239if test -n "$EDB_LIBS"; then
27240 pkg_cv_EDB_LIBS="$EDB_LIBS"
27241 elif test -n "$PKG_CONFIG"; then
27242 if test -n "$PKG_CONFIG" && \
27243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edb\""; } >&5
27244 ($PKG_CONFIG --exists --print-errors "edb") 2>&5
27245 ac_status=$?
27246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27247 test $ac_status = 0; }; then
27248 pkg_cv_EDB_LIBS=`$PKG_CONFIG --libs "edb" 2>/dev/null`
27249else
27250 pkg_failed=yes
27251fi
27252 else
27253 pkg_failed=untried
27254fi
27255
27256
27257
27258if test $pkg_failed = yes; then
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27260$as_echo "no" >&6; }
27261
27262if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27263 _pkg_short_errors_supported=yes
27264else
27265 _pkg_short_errors_supported=no
27266fi
27267 if test $_pkg_short_errors_supported = yes; then
27268 EDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "edb" 2>&1`
27269 else
27270 EDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "edb" 2>&1`
27271 fi
27272 # Put the nasty error message in config.log where it belongs
27273 echo "$EDB_PKG_ERRORS" >&5
27274
27275 have_dep="no"
27276elif test $pkg_failed = untried; then
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27278$as_echo "no" >&6; }
27279 have_dep="no"
27280else
27281 EDB_CFLAGS=$pkg_cv_EDB_CFLAGS
27282 EDB_LIBS=$pkg_cv_EDB_LIBS
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27284$as_echo "yes" >&6; }
27285 have_dep="yes" requirement="edb"
27286fi
27287evas_image_loader_edb_cflags="${EDB_CFLAGS}"
27288evas_image_loader_edb_libs="${EDB_LIBS}"
27289
27290
27291
27292
27293if test "x${want_loader}" = "xstatic" ; then
27294 requirement_evas="${requirement} ${requirement_evas}"
27295fi
27296
27297if test "x${have_dep}" = "xyes" ; then
27298 have_loader="yes"
27299else
27300 have_loader="no"
27301fi
27302
27303
27304fi
27305
27306if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
27307 as_fn_error $? "Edb dependencies not found (strict dependencies checking)" "$LINENO" 5
27308fi
27309
27310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Edb image loader will be built" >&5
27311$as_echo_n "checking whether Edb image loader will be built... " >&6; }
27312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
27313$as_echo "${have_loader}" >&6; }
27314
27315if test "x${have_loader}" = "xyes" ; then
27316 if test "x${want_loader}" = "xstatic" ; then
27317 have_evas_image_loader_edb="static"
27318 want_static_loader="yes"
27319 else
27320 have_evas_image_loader_edb="yes"
27321 fi
27322fi
27323
27324if test "x${have_loader}" = "xyes" ; then
27325
27326$as_echo "#define BUILD_LOADER_EDB 1" >>confdefs.h
27327
27328fi
27329
27330 if test "x${have_loader}" = "xyes"; then
27331 BUILD_LOADER_EDB_TRUE=
27332 BUILD_LOADER_EDB_FALSE='#'
27333else
27334 BUILD_LOADER_EDB_TRUE='#'
27335 BUILD_LOADER_EDB_FALSE=
27336fi
27337
27338
27339if test "x${want_static_loader}" = "xyes" ; then
27340
27341$as_echo "#define EVAS_STATIC_BUILD_EDB 1" >>confdefs.h
27342
27343 have_static_module="yes"
27344fi
27345
27346 if test "x${want_static_loader}" = "xyes"; then
27347 EVAS_STATIC_BUILD_EDB_TRUE=
27348 EVAS_STATIC_BUILD_EDB_FALSE='#'
27349else
27350 EVAS_STATIC_BUILD_EDB_TRUE='#'
27351 EVAS_STATIC_BUILD_EDB_FALSE=
27352fi
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365want_loader="${want_evas_image_loader_eet}"
27366want_static_loader="no"
27367have_loader="no"
27368have_evas_image_loader_eet="no"
27369
27370# Check whether --enable-image-loader-eet was given.
27371if test "${enable_image_loader_eet+set}" = set; then :
27372 enableval=$enable_image_loader_eet;
27373 if test "x${enableval}" = "xyes" ; then
27374 want_loader="yes"
27375 else
27376 if test "x${enableval}" = "xstatic" ; then
27377 want_loader="static"
27378 else
27379 want_loader="no"
27380 fi
27381 fi
27382
27383
27384fi
27385
27386
27387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Eet image loader" >&5
27388$as_echo_n "checking whether to enable Eet image loader... " >&6; }
27389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
27390$as_echo "${want_loader}" >&6; }
27391
27392if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
27393
27394
27395requirement=""
27396have_dep="no"
27397evas_image_loader_eet_cflags=""
27398evas_image_loader_eet_libs=""
27399
27400
27401pkg_failed=no
27402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EET" >&5
27403$as_echo_n "checking for EET... " >&6; }
27404
27405if test -n "$EET_CFLAGS"; then
27406 pkg_cv_EET_CFLAGS="$EET_CFLAGS"
27407 elif test -n "$PKG_CONFIG"; then
27408 if test -n "$PKG_CONFIG" && \
27409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
27410 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
27411 ac_status=$?
27412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27413 test $ac_status = 0; }; then
27414 pkg_cv_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null`
27415else
27416 pkg_failed=yes
27417fi
27418 else
27419 pkg_failed=untried
27420fi
27421if test -n "$EET_LIBS"; then
27422 pkg_cv_EET_LIBS="$EET_LIBS"
27423 elif test -n "$PKG_CONFIG"; then
27424 if test -n "$PKG_CONFIG" && \
27425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
27426 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
27427 ac_status=$?
27428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27429 test $ac_status = 0; }; then
27430 pkg_cv_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null`
27431else
27432 pkg_failed=yes
27433fi
27434 else
27435 pkg_failed=untried
27436fi
27437
27438
27439
27440if test $pkg_failed = yes; then
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27442$as_echo "no" >&6; }
27443
27444if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27445 _pkg_short_errors_supported=yes
27446else
27447 _pkg_short_errors_supported=no
27448fi
27449 if test $_pkg_short_errors_supported = yes; then
27450 EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1`
27451 else
27452 EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1`
27453 fi
27454 # Put the nasty error message in config.log where it belongs
27455 echo "$EET_PKG_ERRORS" >&5
27456
27457 have_dep="no"
27458elif test $pkg_failed = untried; then
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27460$as_echo "no" >&6; }
27461 have_dep="no"
27462else
27463 EET_CFLAGS=$pkg_cv_EET_CFLAGS
27464 EET_LIBS=$pkg_cv_EET_LIBS
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27466$as_echo "yes" >&6; }
27467 have_dep="yes" requirement="eet >= 1.4.0"
27468fi
27469evas_image_loader_eet_cflags="${EET_CFLAGS}"
27470evas_image_loader_eet_libs="${EET_LIBS}"
27471
27472
27473
27474
27475if test "x${want_loader}" = "xstatic" ; then
27476 requirement_evas="${requirement} ${requirement_evas}"
27477fi
27478
27479if test "x${have_dep}" = "xyes" ; then
27480 have_loader="yes"
27481else
27482 have_loader="no"
27483fi
27484
27485
27486fi
27487
27488if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
27489 as_fn_error $? "Eet dependencies not found (strict dependencies checking)" "$LINENO" 5
27490fi
27491
27492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Eet image loader will be built" >&5
27493$as_echo_n "checking whether Eet image loader will be built... " >&6; }
27494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
27495$as_echo "${have_loader}" >&6; }
27496
27497if test "x${have_loader}" = "xyes" ; then
27498 if test "x${want_loader}" = "xstatic" ; then
27499 have_evas_image_loader_eet="static"
27500 want_static_loader="yes"
27501 else
27502 have_evas_image_loader_eet="yes"
27503 fi
27504fi
27505
27506if test "x${have_loader}" = "xyes" ; then
27507
27508$as_echo "#define BUILD_LOADER_EET 1" >>confdefs.h
27509
27510fi
27511
27512 if test "x${have_loader}" = "xyes"; then
27513 BUILD_LOADER_EET_TRUE=
27514 BUILD_LOADER_EET_FALSE='#'
27515else
27516 BUILD_LOADER_EET_TRUE='#'
27517 BUILD_LOADER_EET_FALSE=
27518fi
27519
27520
27521if test "x${want_static_loader}" = "xyes" ; then
27522
27523$as_echo "#define EVAS_STATIC_BUILD_EET 1" >>confdefs.h
27524
27525 have_static_module="yes"
27526fi
27527
27528 if test "x${want_static_loader}" = "xyes"; then
27529 EVAS_STATIC_BUILD_EET_TRUE=
27530 EVAS_STATIC_BUILD_EET_FALSE='#'
27531else
27532 EVAS_STATIC_BUILD_EET_TRUE='#'
27533 EVAS_STATIC_BUILD_EET_FALSE=
27534fi
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544want_loader="${want_evas_font_loader_eet}"
27545have_evas_font_loader_eet="no"
27546
27547# Check whether --enable-font-loader-eet was given.
27548if test "${enable_font_loader_eet+set}" = set; then :
27549 enableval=$enable_font_loader_eet; want_loader=${enableval}
27550
27551fi
27552
27553
27554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Eet font loader" >&5
27555$as_echo_n "checking whether to enable Eet font loader... " >&6; }
27556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
27557$as_echo "${want_loader}" >&6; }
27558
27559if test "x$want_loader" = "xyes" -o "x$want_loader" = "xauto"; then
27560
27561pkg_failed=no
27562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EET" >&5
27563$as_echo_n "checking for EET... " >&6; }
27564
27565if test -n "$EET_CFLAGS"; then
27566 pkg_cv_EET_CFLAGS="$EET_CFLAGS"
27567 elif test -n "$PKG_CONFIG"; then
27568 if test -n "$PKG_CONFIG" && \
27569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
27570 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
27571 ac_status=$?
27572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27573 test $ac_status = 0; }; then
27574 pkg_cv_EET_CFLAGS=`$PKG_CONFIG --cflags "eet >= 1.5.0" 2>/dev/null`
27575else
27576 pkg_failed=yes
27577fi
27578 else
27579 pkg_failed=untried
27580fi
27581if test -n "$EET_LIBS"; then
27582 pkg_cv_EET_LIBS="$EET_LIBS"
27583 elif test -n "$PKG_CONFIG"; then
27584 if test -n "$PKG_CONFIG" && \
27585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eet >= 1.5.0\""; } >&5
27586 ($PKG_CONFIG --exists --print-errors "eet >= 1.5.0") 2>&5
27587 ac_status=$?
27588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27589 test $ac_status = 0; }; then
27590 pkg_cv_EET_LIBS=`$PKG_CONFIG --libs "eet >= 1.5.0" 2>/dev/null`
27591else
27592 pkg_failed=yes
27593fi
27594 else
27595 pkg_failed=untried
27596fi
27597
27598
27599
27600if test $pkg_failed = yes; then
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27602$as_echo "no" >&6; }
27603
27604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27605 _pkg_short_errors_supported=yes
27606else
27607 _pkg_short_errors_supported=no
27608fi
27609 if test $_pkg_short_errors_supported = yes; then
27610 EET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eet >= 1.5.0" 2>&1`
27611 else
27612 EET_PKG_ERRORS=`$PKG_CONFIG --print-errors "eet >= 1.5.0" 2>&1`
27613 fi
27614 # Put the nasty error message in config.log where it belongs
27615 echo "$EET_PKG_ERRORS" >&5
27616
27617 have_evas_font_loader_eet="no"
27618elif test $pkg_failed = untried; then
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27620$as_echo "no" >&6; }
27621 have_evas_font_loader_eet="no"
27622else
27623 EET_CFLAGS=$pkg_cv_EET_CFLAGS
27624 EET_LIBS=$pkg_cv_EET_LIBS
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27626$as_echo "yes" >&6; }
27627 have_evas_font_loader_eet="yes"
27628fi
27629fi
27630
27631if test "x${have_evas_font_loader_eet}" = "xno" -a "x$want_loader" = "xyes" -a "x$use_strict" = "xyes" ; then
27632 as_fn_error $? "Eet dependencies not found (strict dependencies checking)" "$LINENO" 5
27633fi
27634
27635if test "x$have_evas_font_loader_eet" = "xyes" ; then
27636
27637$as_echo "#define BUILD_FONT_LOADER_EET 1" >>confdefs.h
27638
27639 requirement_evas="eet >= 1.5.0 ${requirement_evas}"
27640fi
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652want_loader="${want_evas_image_loader_gif}"
27653want_static_loader="no"
27654have_loader="no"
27655have_evas_image_loader_gif="no"
27656
27657# Check whether --enable-image-loader-gif was given.
27658if test "${enable_image_loader_gif+set}" = set; then :
27659 enableval=$enable_image_loader_gif;
27660 if test "x${enableval}" = "xyes" ; then
27661 want_loader="yes"
27662 else
27663 if test "x${enableval}" = "xstatic" ; then
27664 want_loader="static"
27665 else
27666 want_loader="no"
27667 fi
27668 fi
27669
27670
27671fi
27672
27673
27674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Gif image loader" >&5
27675$as_echo_n "checking whether to enable Gif image loader... " >&6; }
27676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
27677$as_echo "${want_loader}" >&6; }
27678
27679if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
27680
27681
27682have_dep="no"
27683evas_image_loader_gif_cflags=""
27684evas_image_loader_gif_libs=""
27685
27686ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
27687if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
27688 have_dep="yes"
27689fi
27690
27691
27692
27693if test "x${have_dep}" = "xyes" ; then
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lgif" >&5
27695$as_echo_n "checking for DGifOpenFileName in -lgif... " >&6; }
27696if test "${ac_cv_lib_gif_DGifOpenFileName+set}" = set; then :
27697 $as_echo_n "(cached) " >&6
27698else
27699 ac_check_lib_save_LIBS=$LIBS
27700LIBS="-lgif $LIBS"
27701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27702/* end confdefs.h. */
27703
27704/* Override any GCC internal prototype to avoid an error.
27705 Use char because int might match the return type of a GCC
27706 builtin and then its argument prototype would still apply. */
27707#ifdef __cplusplus
27708extern "C"
27709#endif
27710char DGifOpenFileName ();
27711int
27712main ()
27713{
27714return DGifOpenFileName ();
27715 ;
27716 return 0;
27717}
27718_ACEOF
27719if ac_fn_c_try_link "$LINENO"; then :
27720 ac_cv_lib_gif_DGifOpenFileName=yes
27721else
27722 ac_cv_lib_gif_DGifOpenFileName=no
27723fi
27724rm -f core conftest.err conftest.$ac_objext \
27725 conftest$ac_exeext conftest.$ac_ext
27726LIBS=$ac_check_lib_save_LIBS
27727fi
27728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileName" >&5
27729$as_echo "$ac_cv_lib_gif_DGifOpenFileName" >&6; }
27730if test "x$ac_cv_lib_gif_DGifOpenFileName" = x""yes; then :
27731
27732 evas_image_loader_gif_libs="-lgif"
27733
27734else
27735 have_dep="no"
27736
27737fi
27738
27739
27740 if test "x${have_dep}" = "xno" ; then
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileName in -lungif" >&5
27742$as_echo_n "checking for DGifOpenFileName in -lungif... " >&6; }
27743if test "${ac_cv_lib_ungif_DGifOpenFileName+set}" = set; then :
27744 $as_echo_n "(cached) " >&6
27745else
27746 ac_check_lib_save_LIBS=$LIBS
27747LIBS="-lungif $LIBS"
27748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27749/* end confdefs.h. */
27750
27751/* Override any GCC internal prototype to avoid an error.
27752 Use char because int might match the return type of a GCC
27753 builtin and then its argument prototype would still apply. */
27754#ifdef __cplusplus
27755extern "C"
27756#endif
27757char DGifOpenFileName ();
27758int
27759main ()
27760{
27761return DGifOpenFileName ();
27762 ;
27763 return 0;
27764}
27765_ACEOF
27766if ac_fn_c_try_link "$LINENO"; then :
27767 ac_cv_lib_ungif_DGifOpenFileName=yes
27768else
27769 ac_cv_lib_ungif_DGifOpenFileName=no
27770fi
27771rm -f core conftest.err conftest.$ac_objext \
27772 conftest$ac_exeext conftest.$ac_ext
27773LIBS=$ac_check_lib_save_LIBS
27774fi
27775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_DGifOpenFileName" >&5
27776$as_echo "$ac_cv_lib_ungif_DGifOpenFileName" >&6; }
27777if test "x$ac_cv_lib_ungif_DGifOpenFileName" = x""yes; then :
27778
27779 have_dep="yes"
27780 evas_image_loader_gif_libs="-lungif"
27781
27782
27783fi
27784
27785 fi
27786fi
27787
27788
27789
27790
27791if test "x${have_dep}" = "xyes" ; then
27792 have_loader="yes"
27793else
27794 have_loader="no"
27795fi
27796
27797
27798fi
27799
27800if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
27801 as_fn_error $? "Gif dependencies not found (strict dependencies checking)" "$LINENO" 5
27802fi
27803
27804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Gif image loader will be built" >&5
27805$as_echo_n "checking whether Gif image loader will be built... " >&6; }
27806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
27807$as_echo "${have_loader}" >&6; }
27808
27809if test "x${have_loader}" = "xyes" ; then
27810 if test "x${want_loader}" = "xstatic" ; then
27811 have_evas_image_loader_gif="static"
27812 want_static_loader="yes"
27813 else
27814 have_evas_image_loader_gif="yes"
27815 fi
27816fi
27817
27818if test "x${have_loader}" = "xyes" ; then
27819
27820$as_echo "#define BUILD_LOADER_GIF 1" >>confdefs.h
27821
27822fi
27823
27824 if test "x${have_loader}" = "xyes"; then
27825 BUILD_LOADER_GIF_TRUE=
27826 BUILD_LOADER_GIF_FALSE='#'
27827else
27828 BUILD_LOADER_GIF_TRUE='#'
27829 BUILD_LOADER_GIF_FALSE=
27830fi
27831
27832
27833if test "x${want_static_loader}" = "xyes" ; then
27834
27835$as_echo "#define EVAS_STATIC_BUILD_GIF 1" >>confdefs.h
27836
27837 have_static_module="yes"
27838fi
27839
27840 if test "x${want_static_loader}" = "xyes"; then
27841 EVAS_STATIC_BUILD_GIF_TRUE=
27842 EVAS_STATIC_BUILD_GIF_FALSE='#'
27843else
27844 EVAS_STATIC_BUILD_GIF_TRUE='#'
27845 EVAS_STATIC_BUILD_GIF_FALSE=
27846fi
27847
27848
27849
27850
27851
27852
27853
27854have_evas_image_saver_jpeg="no"
27855
27856
27857
27858
27859
27860want_loader="${want_evas_image_loader_jpeg}"
27861want_static_loader="no"
27862have_loader="no"
27863have_evas_image_loader_jpeg="no"
27864
27865# Check whether --enable-image-loader-jpeg was given.
27866if test "${enable_image_loader_jpeg+set}" = set; then :
27867 enableval=$enable_image_loader_jpeg;
27868 if test "x${enableval}" = "xyes" ; then
27869 want_loader="yes"
27870 else
27871 if test "x${enableval}" = "xstatic" ; then
27872 want_loader="static"
27873 else
27874 want_loader="no"
27875 fi
27876 fi
27877
27878
27879fi
27880
27881
27882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Jpeg image loader" >&5
27883$as_echo_n "checking whether to enable Jpeg image loader... " >&6; }
27884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
27885$as_echo "${want_loader}" >&6; }
27886
27887if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
27888
27889
27890have_dep="no"
27891evas_image_loader_jpeg_cflags=""
27892evas_image_loader_jpeg_libs=""
27893
27894ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27895if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27896 have_dep="yes"
27897fi
27898
27899
27900
27901if test "x${have_dep}" = "xyes" ; then
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5
27903$as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; }
27904if test "${ac_cv_lib_jpeg_jpeg_CreateDecompress+set}" = set; then :
27905 $as_echo_n "(cached) " >&6
27906else
27907 ac_check_lib_save_LIBS=$LIBS
27908LIBS="-ljpeg $LIBS"
27909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27910/* end confdefs.h. */
27911
27912/* Override any GCC internal prototype to avoid an error.
27913 Use char because int might match the return type of a GCC
27914 builtin and then its argument prototype would still apply. */
27915#ifdef __cplusplus
27916extern "C"
27917#endif
27918char jpeg_CreateDecompress ();
27919int
27920main ()
27921{
27922return jpeg_CreateDecompress ();
27923 ;
27924 return 0;
27925}
27926_ACEOF
27927if ac_fn_c_try_link "$LINENO"; then :
27928 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes
27929else
27930 ac_cv_lib_jpeg_jpeg_CreateDecompress=no
27931fi
27932rm -f core conftest.err conftest.$ac_objext \
27933 conftest$ac_exeext conftest.$ac_ext
27934LIBS=$ac_check_lib_save_LIBS
27935fi
27936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5
27937$as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; }
27938if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = x""yes; then :
27939
27940 evas_image_loader_jpeg_libs="-ljpeg"
27941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27942/* end confdefs.h. */
27943
27944#include <stdio.h>
27945#include <jpeglib.h>
27946#include <setjmp.h>
27947
27948int
27949main ()
27950{
27951
27952struct jpeg_decompress_struct decomp;
27953decomp.region_x = 0;
27954
27955 ;
27956 return 0;
27957}
27958_ACEOF
27959if ac_fn_c_try_compile "$LINENO"; then :
27960 have_jpeg_region="yes"
27961else
27962 have_jpeg_region="no"
27963fi
27964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27965
27966else
27967 have_dep="no"
27968
27969fi
27970
27971 if test "x${have_jpeg_region}" = "xyes" ; then
27972
27973$as_echo "#define BUILD_LOADER_JPEG_REGION 1" >>confdefs.h
27974
27975 fi
27976fi
27977
27978
27979
27980
27981if test "x${have_dep}" = "xyes" ; then
27982 have_loader="yes"
27983else
27984 have_loader="no"
27985fi
27986
27987
27988fi
27989
27990if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
27991 as_fn_error $? "Jpeg dependencies not found (strict dependencies checking)" "$LINENO" 5
27992fi
27993
27994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Jpeg image loader will be built" >&5
27995$as_echo_n "checking whether Jpeg image loader will be built... " >&6; }
27996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
27997$as_echo "${have_loader}" >&6; }
27998
27999if test "x${have_loader}" = "xyes" ; then
28000 if test "x${want_loader}" = "xstatic" ; then
28001 have_evas_image_loader_jpeg="static"
28002 want_static_loader="yes"
28003 else
28004 have_evas_image_loader_jpeg="yes"
28005 fi
28006fi
28007
28008if test "x${have_loader}" = "xyes" ; then
28009
28010$as_echo "#define BUILD_LOADER_JPEG 1" >>confdefs.h
28011
28012fi
28013
28014 if test "x${have_loader}" = "xyes"; then
28015 BUILD_LOADER_JPEG_TRUE=
28016 BUILD_LOADER_JPEG_FALSE='#'
28017else
28018 BUILD_LOADER_JPEG_TRUE='#'
28019 BUILD_LOADER_JPEG_FALSE=
28020fi
28021
28022
28023if test "x${want_static_loader}" = "xyes" ; then
28024
28025$as_echo "#define EVAS_STATIC_BUILD_JPEG 1" >>confdefs.h
28026
28027 have_static_module="yes"
28028fi
28029
28030 if test "x${want_static_loader}" = "xyes"; then
28031 EVAS_STATIC_BUILD_JPEG_TRUE=
28032 EVAS_STATIC_BUILD_JPEG_FALSE='#'
28033else
28034 EVAS_STATIC_BUILD_JPEG_TRUE='#'
28035 EVAS_STATIC_BUILD_JPEG_FALSE=
28036fi
28037
28038
28039
28040
28041
28042
28043
28044case "$host_os" in
28045 mingw*)
28046 ;;
28047 *)
28048 if test "x${have_evas_image_loader_jpeg}" = "xyes" ; then
28049
28050$as_echo "#define EVAS_BUILD_SAVER_JPEG 1" >>confdefs.h
28051
28052 have_evas_image_saver_jpeg="yes"
28053 fi
28054 ;;
28055esac
28056 if test "x${have_evas_image_saver_jpeg}" = "xyes"; then
28057 BUILD_SAVER_JPEG_TRUE=
28058 BUILD_SAVER_JPEG_FALSE='#'
28059else
28060 BUILD_SAVER_JPEG_TRUE='#'
28061 BUILD_SAVER_JPEG_FALSE=
28062fi
28063
28064
28065
28066
28067
28068
28069
28070want_loader="${want_evas_image_loader_pmaps}"
28071want_static_loader="no"
28072have_loader="no"
28073have_evas_image_loader_pmaps="no"
28074
28075# Check whether --enable-image-loader-pmaps was given.
28076if test "${enable_image_loader_pmaps+set}" = set; then :
28077 enableval=$enable_image_loader_pmaps;
28078 if test "x${enableval}" = "xyes" ; then
28079 want_loader="yes"
28080 else
28081 if test "x${enableval}" = "xstatic" ; then
28082 want_loader="static"
28083 else
28084 want_loader="no"
28085 fi
28086 fi
28087
28088
28089fi
28090
28091
28092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PMAPS image loader" >&5
28093$as_echo_n "checking whether to enable PMAPS image loader... " >&6; }
28094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
28095$as_echo "${want_loader}" >&6; }
28096
28097if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
28098
28099
28100have_dep="yes"
28101evas_image_loader_pmaps_cflags=""
28102evas_image_loader_pmaps_libs=""
28103
28104
28105
28106
28107if test "x${have_dep}" = "xyes" ; then
28108 have_loader="yes"
28109else
28110 have_loader="no"
28111fi
28112
28113
28114fi
28115
28116if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
28117 as_fn_error $? "PMAPS dependencies not found (strict dependencies checking)" "$LINENO" 5
28118fi
28119
28120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PMAPS image loader will be built" >&5
28121$as_echo_n "checking whether PMAPS image loader will be built... " >&6; }
28122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
28123$as_echo "${have_loader}" >&6; }
28124
28125if test "x${have_loader}" = "xyes" ; then
28126 if test "x${want_loader}" = "xstatic" ; then
28127 have_evas_image_loader_pmaps="static"
28128 want_static_loader="yes"
28129 else
28130 have_evas_image_loader_pmaps="yes"
28131 fi
28132fi
28133
28134if test "x${have_loader}" = "xyes" ; then
28135
28136$as_echo "#define BUILD_LOADER_PMAPS 1" >>confdefs.h
28137
28138fi
28139
28140 if test "x${have_loader}" = "xyes"; then
28141 BUILD_LOADER_PMAPS_TRUE=
28142 BUILD_LOADER_PMAPS_FALSE='#'
28143else
28144 BUILD_LOADER_PMAPS_TRUE='#'
28145 BUILD_LOADER_PMAPS_FALSE=
28146fi
28147
28148
28149if test "x${want_static_loader}" = "xyes" ; then
28150
28151$as_echo "#define EVAS_STATIC_BUILD_PMAPS 1" >>confdefs.h
28152
28153 have_static_module="yes"
28154fi
28155
28156 if test "x${want_static_loader}" = "xyes"; then
28157 EVAS_STATIC_BUILD_PMAPS_TRUE=
28158 EVAS_STATIC_BUILD_PMAPS_FALSE='#'
28159else
28160 EVAS_STATIC_BUILD_PMAPS_TRUE='#'
28161 EVAS_STATIC_BUILD_PMAPS_FALSE=
28162fi
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175want_loader="${want_evas_image_loader_png}"
28176want_static_loader="no"
28177have_loader="no"
28178have_evas_image_loader_png="no"
28179
28180# Check whether --enable-image-loader-png was given.
28181if test "${enable_image_loader_png+set}" = set; then :
28182 enableval=$enable_image_loader_png;
28183 if test "x${enableval}" = "xyes" ; then
28184 want_loader="yes"
28185 else
28186 if test "x${enableval}" = "xstatic" ; then
28187 want_loader="static"
28188 else
28189 want_loader="no"
28190 fi
28191 fi
28192
28193
28194fi
28195
28196
28197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PNG image loader" >&5
28198$as_echo_n "checking whether to enable PNG image loader... " >&6; }
28199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
28200$as_echo "${want_loader}" >&6; }
28201
28202if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
28203
28204
28205requirement=""
28206have_dep="no"
28207evas_image_loader_png_cflags=""
28208evas_image_loader_png_libs=""
28209
28210
28211pkg_failed=no
28212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28213$as_echo_n "checking for PNG... " >&6; }
28214
28215if test -n "$PNG_CFLAGS"; then
28216 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
28217 elif test -n "$PKG_CONFIG"; then
28218 if test -n "$PKG_CONFIG" && \
28219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.10\""; } >&5
28220 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.10") 2>&5
28221 ac_status=$?
28222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28223 test $ac_status = 0; }; then
28224 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.10" 2>/dev/null`
28225else
28226 pkg_failed=yes
28227fi
28228 else
28229 pkg_failed=untried
28230fi
28231if test -n "$PNG_LIBS"; then
28232 pkg_cv_PNG_LIBS="$PNG_LIBS"
28233 elif test -n "$PKG_CONFIG"; then
28234 if test -n "$PKG_CONFIG" && \
28235 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.10\""; } >&5
28236 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.10") 2>&5
28237 ac_status=$?
28238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28239 test $ac_status = 0; }; then
28240 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.10" 2>/dev/null`
28241else
28242 pkg_failed=yes
28243fi
28244 else
28245 pkg_failed=untried
28246fi
28247
28248
28249
28250if test $pkg_failed = yes; then
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28252$as_echo "no" >&6; }
28253
28254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28255 _pkg_short_errors_supported=yes
28256else
28257 _pkg_short_errors_supported=no
28258fi
28259 if test $_pkg_short_errors_supported = yes; then
28260 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng >= 1.2.10" 2>&1`
28261 else
28262 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng >= 1.2.10" 2>&1`
28263 fi
28264 # Put the nasty error message in config.log where it belongs
28265 echo "$PNG_PKG_ERRORS" >&5
28266
28267 have_dep="no"
28268elif test $pkg_failed = untried; then
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28270$as_echo "no" >&6; }
28271 have_dep="no"
28272else
28273 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
28274 PNG_LIBS=$pkg_cv_PNG_LIBS
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28276$as_echo "yes" >&6; }
28277 have_dep="yes" requirement="libpng"
28278fi
28279
28280if test "x${have_dep}" = "xno" ; then
28281
28282pkg_failed=no
28283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28284$as_echo_n "checking for PNG... " >&6; }
28285
28286if test -n "$PNG_CFLAGS"; then
28287 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
28288 elif test -n "$PKG_CONFIG"; then
28289 if test -n "$PKG_CONFIG" && \
28290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15\""; } >&5
28291 ($PKG_CONFIG --exists --print-errors "libpng15") 2>&5
28292 ac_status=$?
28293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28294 test $ac_status = 0; }; then
28295 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng15" 2>/dev/null`
28296else
28297 pkg_failed=yes
28298fi
28299 else
28300 pkg_failed=untried
28301fi
28302if test -n "$PNG_LIBS"; then
28303 pkg_cv_PNG_LIBS="$PNG_LIBS"
28304 elif test -n "$PKG_CONFIG"; then
28305 if test -n "$PKG_CONFIG" && \
28306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15\""; } >&5
28307 ($PKG_CONFIG --exists --print-errors "libpng15") 2>&5
28308 ac_status=$?
28309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28310 test $ac_status = 0; }; then
28311 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng15" 2>/dev/null`
28312else
28313 pkg_failed=yes
28314fi
28315 else
28316 pkg_failed=untried
28317fi
28318
28319
28320
28321if test $pkg_failed = yes; then
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28323$as_echo "no" >&6; }
28324
28325if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28326 _pkg_short_errors_supported=yes
28327else
28328 _pkg_short_errors_supported=no
28329fi
28330 if test $_pkg_short_errors_supported = yes; then
28331 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng15" 2>&1`
28332 else
28333 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng15" 2>&1`
28334 fi
28335 # Put the nasty error message in config.log where it belongs
28336 echo "$PNG_PKG_ERRORS" >&5
28337
28338 have_dep="no"
28339elif test $pkg_failed = untried; then
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28341$as_echo "no" >&6; }
28342 have_dep="no"
28343else
28344 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
28345 PNG_LIBS=$pkg_cv_PNG_LIBS
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28347$as_echo "yes" >&6; }
28348 have_dep="yes" requirement="libpng15"
28349fi
28350fi
28351
28352if test "x${have_dep}" = "xno" ; then
28353
28354pkg_failed=no
28355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28356$as_echo_n "checking for PNG... " >&6; }
28357
28358if test -n "$PNG_CFLAGS"; then
28359 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
28360 elif test -n "$PKG_CONFIG"; then
28361 if test -n "$PKG_CONFIG" && \
28362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14\""; } >&5
28363 ($PKG_CONFIG --exists --print-errors "libpng14") 2>&5
28364 ac_status=$?
28365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28366 test $ac_status = 0; }; then
28367 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14" 2>/dev/null`
28368else
28369 pkg_failed=yes
28370fi
28371 else
28372 pkg_failed=untried
28373fi
28374if test -n "$PNG_LIBS"; then
28375 pkg_cv_PNG_LIBS="$PNG_LIBS"
28376 elif test -n "$PKG_CONFIG"; then
28377 if test -n "$PKG_CONFIG" && \
28378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14\""; } >&5
28379 ($PKG_CONFIG --exists --print-errors "libpng14") 2>&5
28380 ac_status=$?
28381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28382 test $ac_status = 0; }; then
28383 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14" 2>/dev/null`
28384else
28385 pkg_failed=yes
28386fi
28387 else
28388 pkg_failed=untried
28389fi
28390
28391
28392
28393if test $pkg_failed = yes; then
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28395$as_echo "no" >&6; }
28396
28397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28398 _pkg_short_errors_supported=yes
28399else
28400 _pkg_short_errors_supported=no
28401fi
28402 if test $_pkg_short_errors_supported = yes; then
28403 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14" 2>&1`
28404 else
28405 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14" 2>&1`
28406 fi
28407 # Put the nasty error message in config.log where it belongs
28408 echo "$PNG_PKG_ERRORS" >&5
28409
28410 have_dep="no"
28411elif test $pkg_failed = untried; then
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28413$as_echo "no" >&6; }
28414 have_dep="no"
28415else
28416 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
28417 PNG_LIBS=$pkg_cv_PNG_LIBS
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28419$as_echo "yes" >&6; }
28420 have_dep="yes" requirement="libpng14"
28421fi
28422fi
28423
28424if test "x${have_dep}" = "xno" ; then
28425
28426pkg_failed=no
28427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28428$as_echo_n "checking for PNG... " >&6; }
28429
28430if test -n "$PNG_CFLAGS"; then
28431 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
28432 elif test -n "$PKG_CONFIG"; then
28433 if test -n "$PKG_CONFIG" && \
28434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 >= 1.2.10\""; } >&5
28435 ($PKG_CONFIG --exists --print-errors "libpng12 >= 1.2.10") 2>&5
28436 ac_status=$?
28437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28438 test $ac_status = 0; }; then
28439 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 >= 1.2.10" 2>/dev/null`
28440else
28441 pkg_failed=yes
28442fi
28443 else
28444 pkg_failed=untried
28445fi
28446if test -n "$PNG_LIBS"; then
28447 pkg_cv_PNG_LIBS="$PNG_LIBS"
28448 elif test -n "$PKG_CONFIG"; then
28449 if test -n "$PKG_CONFIG" && \
28450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 >= 1.2.10\""; } >&5
28451 ($PKG_CONFIG --exists --print-errors "libpng12 >= 1.2.10") 2>&5
28452 ac_status=$?
28453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28454 test $ac_status = 0; }; then
28455 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 >= 1.2.10" 2>/dev/null`
28456else
28457 pkg_failed=yes
28458fi
28459 else
28460 pkg_failed=untried
28461fi
28462
28463
28464
28465if test $pkg_failed = yes; then
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28467$as_echo "no" >&6; }
28468
28469if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28470 _pkg_short_errors_supported=yes
28471else
28472 _pkg_short_errors_supported=no
28473fi
28474 if test $_pkg_short_errors_supported = yes; then
28475 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 >= 1.2.10" 2>&1`
28476 else
28477 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 >= 1.2.10" 2>&1`
28478 fi
28479 # Put the nasty error message in config.log where it belongs
28480 echo "$PNG_PKG_ERRORS" >&5
28481
28482 have_dep="no"
28483elif test $pkg_failed = untried; then
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28485$as_echo "no" >&6; }
28486 have_dep="no"
28487else
28488 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
28489 PNG_LIBS=$pkg_cv_PNG_LIBS
28490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28491$as_echo "yes" >&6; }
28492 have_dep="yes" requirement="libpng12"
28493fi
28494fi
28495
28496evas_image_loader_png_cflags="${PNG_CFLAGS}"
28497evas_image_loader_png_libs="${PNG_LIBS}"
28498
28499
28500
28501
28502if test "x${want_loader}" = "xstatic" ; then
28503 requirement_evas="${requirement} ${requirement_evas}"
28504fi
28505
28506if test "x${have_dep}" = "xyes" ; then
28507 have_loader="yes"
28508else
28509 have_loader="no"
28510fi
28511
28512
28513fi
28514
28515if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
28516 as_fn_error $? "PNG dependencies not found (strict dependencies checking)" "$LINENO" 5
28517fi
28518
28519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG image loader will be built" >&5
28520$as_echo_n "checking whether PNG image loader will be built... " >&6; }
28521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
28522$as_echo "${have_loader}" >&6; }
28523
28524if test "x${have_loader}" = "xyes" ; then
28525 if test "x${want_loader}" = "xstatic" ; then
28526 have_evas_image_loader_png="static"
28527 want_static_loader="yes"
28528 else
28529 have_evas_image_loader_png="yes"
28530 fi
28531fi
28532
28533if test "x${have_loader}" = "xyes" ; then
28534
28535$as_echo "#define BUILD_LOADER_PNG 1" >>confdefs.h
28536
28537fi
28538
28539 if test "x${have_loader}" = "xyes"; then
28540 BUILD_LOADER_PNG_TRUE=
28541 BUILD_LOADER_PNG_FALSE='#'
28542else
28543 BUILD_LOADER_PNG_TRUE='#'
28544 BUILD_LOADER_PNG_FALSE=
28545fi
28546
28547
28548if test "x${want_static_loader}" = "xyes" ; then
28549
28550$as_echo "#define EVAS_STATIC_BUILD_PNG 1" >>confdefs.h
28551
28552 have_static_module="yes"
28553fi
28554
28555 if test "x${want_static_loader}" = "xyes"; then
28556 EVAS_STATIC_BUILD_PNG_TRUE=
28557 EVAS_STATIC_BUILD_PNG_FALSE='#'
28558else
28559 EVAS_STATIC_BUILD_PNG_TRUE='#'
28560 EVAS_STATIC_BUILD_PNG_FALSE=
28561fi
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574want_loader="${want_evas_image_loader_svg}"
28575want_static_loader="no"
28576have_loader="no"
28577have_evas_image_loader_svg="no"
28578
28579# Check whether --enable-image-loader-svg was given.
28580if test "${enable_image_loader_svg+set}" = set; then :
28581 enableval=$enable_image_loader_svg;
28582 if test "x${enableval}" = "xyes" ; then
28583 want_loader="yes"
28584 else
28585 if test "x${enableval}" = "xstatic" ; then
28586 want_loader="static"
28587 else
28588 want_loader="no"
28589 fi
28590 fi
28591
28592
28593fi
28594
28595
28596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SVG image loader" >&5
28597$as_echo_n "checking whether to enable SVG image loader... " >&6; }
28598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
28599$as_echo "${want_loader}" >&6; }
28600
28601if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
28602
28603
28604requirement=""
28605have_dep="no"
28606evas_image_loader_svg_cflags=""
28607evas_image_loader_svg_libs=""
28608
28609
28610pkg_failed=no
28611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVG" >&5
28612$as_echo_n "checking for SVG... " >&6; }
28613
28614if test -n "$SVG_CFLAGS"; then
28615 pkg_cv_SVG_CFLAGS="$SVG_CFLAGS"
28616 elif test -n "$PKG_CONFIG"; then
28617 if test -n "$PKG_CONFIG" && \
28618 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14.0
28619 cairo >= 1.0.0\""; } >&5
28620 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14.0
28621 cairo >= 1.0.0") 2>&5
28622 ac_status=$?
28623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28624 test $ac_status = 0; }; then
28625 pkg_cv_SVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.14.0
28626 cairo >= 1.0.0" 2>/dev/null`
28627else
28628 pkg_failed=yes
28629fi
28630 else
28631 pkg_failed=untried
28632fi
28633if test -n "$SVG_LIBS"; then
28634 pkg_cv_SVG_LIBS="$SVG_LIBS"
28635 elif test -n "$PKG_CONFIG"; then
28636 if test -n "$PKG_CONFIG" && \
28637 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.14.0
28638 cairo >= 1.0.0\""; } >&5
28639 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.14.0
28640 cairo >= 1.0.0") 2>&5
28641 ac_status=$?
28642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28643 test $ac_status = 0; }; then
28644 pkg_cv_SVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.14.0
28645 cairo >= 1.0.0" 2>/dev/null`
28646else
28647 pkg_failed=yes
28648fi
28649 else
28650 pkg_failed=untried
28651fi
28652
28653
28654
28655if test $pkg_failed = yes; then
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28657$as_echo "no" >&6; }
28658
28659if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28660 _pkg_short_errors_supported=yes
28661else
28662 _pkg_short_errors_supported=no
28663fi
28664 if test $_pkg_short_errors_supported = yes; then
28665 SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.14.0
28666 cairo >= 1.0.0" 2>&1`
28667 else
28668 SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.14.0
28669 cairo >= 1.0.0" 2>&1`
28670 fi
28671 # Put the nasty error message in config.log where it belongs
28672 echo "$SVG_PKG_ERRORS" >&5
28673
28674 have_svg="no"
28675
28676elif test $pkg_failed = untried; then
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28678$as_echo "no" >&6; }
28679 have_svg="no"
28680
28681else
28682 SVG_CFLAGS=$pkg_cv_SVG_CFLAGS
28683 SVG_LIBS=$pkg_cv_SVG_LIBS
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28685$as_echo "yes" >&6; }
28686 have_dep="yes" requirement="librsvg-2.0 cairo"
28687fi
28688
28689if test "x${have_dep}" = "xyes" ; then
28690 evas_image_loader_svg_cflags="${SVG_CFLAGS}"
28691 evas_image_loader_svg_libs="${SVG_LIBS}"
28692fi
28693
28694
28695
28696
28697if test "x${want_loader}" = "xstatic" ; then
28698 requirement_evas="${requirement} ${requirement_evas}"
28699fi
28700
28701if test "x${have_dep}" = "xyes" ; then
28702 have_loader="yes"
28703else
28704 have_loader="no"
28705fi
28706
28707
28708fi
28709
28710if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
28711 as_fn_error $? "SVG dependencies not found (strict dependencies checking)" "$LINENO" 5
28712fi
28713
28714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SVG image loader will be built" >&5
28715$as_echo_n "checking whether SVG image loader will be built... " >&6; }
28716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
28717$as_echo "${have_loader}" >&6; }
28718
28719if test "x${have_loader}" = "xyes" ; then
28720 if test "x${want_loader}" = "xstatic" ; then
28721 have_evas_image_loader_svg="static"
28722 want_static_loader="yes"
28723 else
28724 have_evas_image_loader_svg="yes"
28725 fi
28726fi
28727
28728if test "x${have_loader}" = "xyes" ; then
28729
28730$as_echo "#define BUILD_LOADER_SVG 1" >>confdefs.h
28731
28732fi
28733
28734 if test "x${have_loader}" = "xyes"; then
28735 BUILD_LOADER_SVG_TRUE=
28736 BUILD_LOADER_SVG_FALSE='#'
28737else
28738 BUILD_LOADER_SVG_TRUE='#'
28739 BUILD_LOADER_SVG_FALSE=
28740fi
28741
28742
28743if test "x${want_static_loader}" = "xyes" ; then
28744
28745$as_echo "#define EVAS_STATIC_BUILD_SVG 1" >>confdefs.h
28746
28747 have_static_module="yes"
28748fi
28749
28750 if test "x${want_static_loader}" = "xyes"; then
28751 EVAS_STATIC_BUILD_SVG_TRUE=
28752 EVAS_STATIC_BUILD_SVG_FALSE='#'
28753else
28754 EVAS_STATIC_BUILD_SVG_TRUE='#'
28755 EVAS_STATIC_BUILD_SVG_FALSE=
28756fi
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769want_loader="${want_evas_image_loader_tiff}"
28770want_static_loader="no"
28771have_loader="no"
28772have_evas_image_loader_tiff="no"
28773
28774# Check whether --enable-image-loader-tiff was given.
28775if test "${enable_image_loader_tiff+set}" = set; then :
28776 enableval=$enable_image_loader_tiff;
28777 if test "x${enableval}" = "xyes" ; then
28778 want_loader="yes"
28779 else
28780 if test "x${enableval}" = "xstatic" ; then
28781 want_loader="static"
28782 else
28783 want_loader="no"
28784 fi
28785 fi
28786
28787
28788fi
28789
28790
28791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Tiff image loader" >&5
28792$as_echo_n "checking whether to enable Tiff image loader... " >&6; }
28793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
28794$as_echo "${want_loader}" >&6; }
28795
28796if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
28797
28798
28799have_dep="no"
28800evas_image_loader_tiff_cflags=""
28801evas_image_loader_tiff_libs=""
28802
28803ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28804if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28805 have_dep="yes"
28806fi
28807
28808
28809
28810if test "x${have_dep}" = "xyes" ; then
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5
28812$as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; }
28813if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then :
28814 $as_echo_n "(cached) " >&6
28815else
28816 ac_check_lib_save_LIBS=$LIBS
28817LIBS="-ltiff $LIBS"
28818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28819/* end confdefs.h. */
28820
28821/* Override any GCC internal prototype to avoid an error.
28822 Use char because int might match the return type of a GCC
28823 builtin and then its argument prototype would still apply. */
28824#ifdef __cplusplus
28825extern "C"
28826#endif
28827char TIFFReadScanline ();
28828int
28829main ()
28830{
28831return TIFFReadScanline ();
28832 ;
28833 return 0;
28834}
28835_ACEOF
28836if ac_fn_c_try_link "$LINENO"; then :
28837 ac_cv_lib_tiff_TIFFReadScanline=yes
28838else
28839 ac_cv_lib_tiff_TIFFReadScanline=no
28840fi
28841rm -f core conftest.err conftest.$ac_objext \
28842 conftest$ac_exeext conftest.$ac_ext
28843LIBS=$ac_check_lib_save_LIBS
28844fi
28845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
28846$as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; }
28847if test "x$ac_cv_lib_tiff_TIFFReadScanline" = x""yes; then :
28848
28849 evas_image_loader_tiff_libs="-ltiff"
28850
28851else
28852 have_dep="no"
28853
28854fi
28855
28856
28857 if test "x${have_dep}" = "xno" ; then
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5
28859$as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; }
28860if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then :
28861 $as_echo_n "(cached) " >&6
28862else
28863 ac_check_lib_save_LIBS=$LIBS
28864LIBS="-ltiff $LIBS"
28865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28866/* end confdefs.h. */
28867
28868/* Override any GCC internal prototype to avoid an error.
28869 Use char because int might match the return type of a GCC
28870 builtin and then its argument prototype would still apply. */
28871#ifdef __cplusplus
28872extern "C"
28873#endif
28874char TIFFReadScanline ();
28875int
28876main ()
28877{
28878return TIFFReadScanline ();
28879 ;
28880 return 0;
28881}
28882_ACEOF
28883if ac_fn_c_try_link "$LINENO"; then :
28884 ac_cv_lib_tiff_TIFFReadScanline=yes
28885else
28886 ac_cv_lib_tiff_TIFFReadScanline=no
28887fi
28888rm -f core conftest.err conftest.$ac_objext \
28889 conftest$ac_exeext conftest.$ac_ext
28890LIBS=$ac_check_lib_save_LIBS
28891fi
28892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
28893$as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; }
28894if test "x$ac_cv_lib_tiff_TIFFReadScanline" = x""yes; then :
28895
28896 have_dep="yes"
28897 evas_image_loader_tiff_libs="-ltiff -ljpeg -lz -lm"
28898
28899
28900fi
28901
28902 fi
28903
28904 if test "x${have_dep}" = "xno" ; then
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff34" >&5
28906$as_echo_n "checking for TIFFReadScanline in -ltiff34... " >&6; }
28907if test "${ac_cv_lib_tiff34_TIFFReadScanline+set}" = set; then :
28908 $as_echo_n "(cached) " >&6
28909else
28910 ac_check_lib_save_LIBS=$LIBS
28911LIBS="-ltiff34 $LIBS"
28912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28913/* end confdefs.h. */
28914
28915/* Override any GCC internal prototype to avoid an error.
28916 Use char because int might match the return type of a GCC
28917 builtin and then its argument prototype would still apply. */
28918#ifdef __cplusplus
28919extern "C"
28920#endif
28921char TIFFReadScanline ();
28922int
28923main ()
28924{
28925return TIFFReadScanline ();
28926 ;
28927 return 0;
28928}
28929_ACEOF
28930if ac_fn_c_try_link "$LINENO"; then :
28931 ac_cv_lib_tiff34_TIFFReadScanline=yes
28932else
28933 ac_cv_lib_tiff34_TIFFReadScanline=no
28934fi
28935rm -f core conftest.err conftest.$ac_objext \
28936 conftest$ac_exeext conftest.$ac_ext
28937LIBS=$ac_check_lib_save_LIBS
28938fi
28939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff34_TIFFReadScanline" >&5
28940$as_echo "$ac_cv_lib_tiff34_TIFFReadScanline" >&6; }
28941if test "x$ac_cv_lib_tiff34_TIFFReadScanline" = x""yes; then :
28942
28943 have_dep="yes"
28944 evas_image_loader_tiff_libs="-ltiff34 -ljpeg -lz -lm"
28945
28946
28947fi
28948
28949 fi
28950fi
28951
28952
28953
28954
28955if test "x${have_dep}" = "xyes" ; then
28956 have_loader="yes"
28957else
28958 have_loader="no"
28959fi
28960
28961
28962fi
28963
28964if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
28965 as_fn_error $? "Tiff dependencies not found (strict dependencies checking)" "$LINENO" 5
28966fi
28967
28968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Tiff image loader will be built" >&5
28969$as_echo_n "checking whether Tiff image loader will be built... " >&6; }
28970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
28971$as_echo "${have_loader}" >&6; }
28972
28973if test "x${have_loader}" = "xyes" ; then
28974 if test "x${want_loader}" = "xstatic" ; then
28975 have_evas_image_loader_tiff="static"
28976 want_static_loader="yes"
28977 else
28978 have_evas_image_loader_tiff="yes"
28979 fi
28980fi
28981
28982if test "x${have_loader}" = "xyes" ; then
28983
28984$as_echo "#define BUILD_LOADER_TIFF 1" >>confdefs.h
28985
28986fi
28987
28988 if test "x${have_loader}" = "xyes"; then
28989 BUILD_LOADER_TIFF_TRUE=
28990 BUILD_LOADER_TIFF_FALSE='#'
28991else
28992 BUILD_LOADER_TIFF_TRUE='#'
28993 BUILD_LOADER_TIFF_FALSE=
28994fi
28995
28996
28997if test "x${want_static_loader}" = "xyes" ; then
28998
28999$as_echo "#define EVAS_STATIC_BUILD_TIFF 1" >>confdefs.h
29000
29001 have_static_module="yes"
29002fi
29003
29004 if test "x${want_static_loader}" = "xyes"; then
29005 EVAS_STATIC_BUILD_TIFF_TRUE=
29006 EVAS_STATIC_BUILD_TIFF_FALSE='#'
29007else
29008 EVAS_STATIC_BUILD_TIFF_TRUE='#'
29009 EVAS_STATIC_BUILD_TIFF_FALSE=
29010fi
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023want_loader="${want_evas_image_loader_xpm}"
29024want_static_loader="no"
29025have_loader="no"
29026have_evas_image_loader_xpm="no"
29027
29028# Check whether --enable-image-loader-xpm was given.
29029if test "${enable_image_loader_xpm+set}" = set; then :
29030 enableval=$enable_image_loader_xpm;
29031 if test "x${enableval}" = "xyes" ; then
29032 want_loader="yes"
29033 else
29034 if test "x${enableval}" = "xstatic" ; then
29035 want_loader="static"
29036 else
29037 want_loader="no"
29038 fi
29039 fi
29040
29041
29042fi
29043
29044
29045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XPM image loader" >&5
29046$as_echo_n "checking whether to enable XPM image loader... " >&6; }
29047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
29048$as_echo "${want_loader}" >&6; }
29049
29050if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
29051
29052
29053have_dep="yes"
29054evas_image_loader_xpm_cflags=""
29055evas_image_loader_xpm_libs=""
29056
29057
29058
29059
29060if test "x${have_dep}" = "xyes" ; then
29061 have_loader="yes"
29062else
29063 have_loader="no"
29064fi
29065
29066
29067fi
29068
29069if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
29070 as_fn_error $? "XPM dependencies not found (strict dependencies checking)" "$LINENO" 5
29071fi
29072
29073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether XPM image loader will be built" >&5
29074$as_echo_n "checking whether XPM image loader will be built... " >&6; }
29075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
29076$as_echo "${have_loader}" >&6; }
29077
29078if test "x${have_loader}" = "xyes" ; then
29079 if test "x${want_loader}" = "xstatic" ; then
29080 have_evas_image_loader_xpm="static"
29081 want_static_loader="yes"
29082 else
29083 have_evas_image_loader_xpm="yes"
29084 fi
29085fi
29086
29087if test "x${have_loader}" = "xyes" ; then
29088
29089$as_echo "#define BUILD_LOADER_XPM 1" >>confdefs.h
29090
29091fi
29092
29093 if test "x${have_loader}" = "xyes"; then
29094 BUILD_LOADER_XPM_TRUE=
29095 BUILD_LOADER_XPM_FALSE='#'
29096else
29097 BUILD_LOADER_XPM_TRUE='#'
29098 BUILD_LOADER_XPM_FALSE=
29099fi
29100
29101
29102if test "x${want_static_loader}" = "xyes" ; then
29103
29104$as_echo "#define EVAS_STATIC_BUILD_XPM 1" >>confdefs.h
29105
29106 have_static_module="yes"
29107fi
29108
29109 if test "x${want_static_loader}" = "xyes"; then
29110 EVAS_STATIC_BUILD_XPM_TRUE=
29111 EVAS_STATIC_BUILD_XPM_FALSE='#'
29112else
29113 EVAS_STATIC_BUILD_XPM_TRUE='#'
29114 EVAS_STATIC_BUILD_XPM_FALSE=
29115fi
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128want_loader="${want_evas_image_loader_bmp}"
29129want_static_loader="no"
29130have_loader="no"
29131have_evas_image_loader_bmp="no"
29132
29133# Check whether --enable-image-loader-bmp was given.
29134if test "${enable_image_loader_bmp+set}" = set; then :
29135 enableval=$enable_image_loader_bmp;
29136 if test "x${enableval}" = "xyes" ; then
29137 want_loader="yes"
29138 else
29139 if test "x${enableval}" = "xstatic" ; then
29140 want_loader="static"
29141 else
29142 want_loader="no"
29143 fi
29144 fi
29145
29146
29147fi
29148
29149
29150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable BMP image loader" >&5
29151$as_echo_n "checking whether to enable BMP image loader... " >&6; }
29152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
29153$as_echo "${want_loader}" >&6; }
29154
29155if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
29156
29157
29158have_dep="yes"
29159evas_image_loader_bmp_cflags=""
29160evas_image_loader_bmp_libs=""
29161
29162
29163
29164
29165if test "x${have_dep}" = "xyes" ; then
29166 have_loader="yes"
29167else
29168 have_loader="no"
29169fi
29170
29171
29172fi
29173
29174if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
29175 as_fn_error $? "BMP dependencies not found (strict dependencies checking)" "$LINENO" 5
29176fi
29177
29178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BMP image loader will be built" >&5
29179$as_echo_n "checking whether BMP image loader will be built... " >&6; }
29180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
29181$as_echo "${have_loader}" >&6; }
29182
29183if test "x${have_loader}" = "xyes" ; then
29184 if test "x${want_loader}" = "xstatic" ; then
29185 have_evas_image_loader_bmp="static"
29186 want_static_loader="yes"
29187 else
29188 have_evas_image_loader_bmp="yes"
29189 fi
29190fi
29191
29192if test "x${have_loader}" = "xyes" ; then
29193
29194$as_echo "#define BUILD_LOADER_BMP 1" >>confdefs.h
29195
29196fi
29197
29198 if test "x${have_loader}" = "xyes"; then
29199 BUILD_LOADER_BMP_TRUE=
29200 BUILD_LOADER_BMP_FALSE='#'
29201else
29202 BUILD_LOADER_BMP_TRUE='#'
29203 BUILD_LOADER_BMP_FALSE=
29204fi
29205
29206
29207if test "x${want_static_loader}" = "xyes" ; then
29208
29209$as_echo "#define EVAS_STATIC_BUILD_BMP 1" >>confdefs.h
29210
29211 have_static_module="yes"
29212fi
29213
29214 if test "x${want_static_loader}" = "xyes"; then
29215 EVAS_STATIC_BUILD_BMP_TRUE=
29216 EVAS_STATIC_BUILD_BMP_FALSE='#'
29217else
29218 EVAS_STATIC_BUILD_BMP_TRUE='#'
29219 EVAS_STATIC_BUILD_BMP_FALSE=
29220fi
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233want_loader="${want_evas_image_loader_tga}"
29234want_static_loader="no"
29235have_loader="no"
29236have_evas_image_loader_tga="no"
29237
29238# Check whether --enable-image-loader-tga was given.
29239if test "${enable_image_loader_tga+set}" = set; then :
29240 enableval=$enable_image_loader_tga;
29241 if test "x${enableval}" = "xyes" ; then
29242 want_loader="yes"
29243 else
29244 if test "x${enableval}" = "xstatic" ; then
29245 want_loader="static"
29246 else
29247 want_loader="no"
29248 fi
29249 fi
29250
29251
29252fi
29253
29254
29255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TGA image loader" >&5
29256$as_echo_n "checking whether to enable TGA image loader... " >&6; }
29257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
29258$as_echo "${want_loader}" >&6; }
29259
29260if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
29261
29262
29263have_dep="yes"
29264evas_image_loader_tga_cflags=""
29265evas_image_loader_tga_libs=""
29266
29267
29268
29269
29270if test "x${have_dep}" = "xyes" ; then
29271 have_loader="yes"
29272else
29273 have_loader="no"
29274fi
29275
29276
29277fi
29278
29279if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
29280 as_fn_error $? "TGA dependencies not found (strict dependencies checking)" "$LINENO" 5
29281fi
29282
29283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TGA image loader will be built" >&5
29284$as_echo_n "checking whether TGA image loader will be built... " >&6; }
29285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
29286$as_echo "${have_loader}" >&6; }
29287
29288if test "x${have_loader}" = "xyes" ; then
29289 if test "x${want_loader}" = "xstatic" ; then
29290 have_evas_image_loader_tga="static"
29291 want_static_loader="yes"
29292 else
29293 have_evas_image_loader_tga="yes"
29294 fi
29295fi
29296
29297if test "x${have_loader}" = "xyes" ; then
29298
29299$as_echo "#define BUILD_LOADER_TGA 1" >>confdefs.h
29300
29301fi
29302
29303 if test "x${have_loader}" = "xyes"; then
29304 BUILD_LOADER_TGA_TRUE=
29305 BUILD_LOADER_TGA_FALSE='#'
29306else
29307 BUILD_LOADER_TGA_TRUE='#'
29308 BUILD_LOADER_TGA_FALSE=
29309fi
29310
29311
29312if test "x${want_static_loader}" = "xyes" ; then
29313
29314$as_echo "#define EVAS_STATIC_BUILD_TGA 1" >>confdefs.h
29315
29316 have_static_module="yes"
29317fi
29318
29319 if test "x${want_static_loader}" = "xyes"; then
29320 EVAS_STATIC_BUILD_TGA_TRUE=
29321 EVAS_STATIC_BUILD_TGA_FALSE='#'
29322else
29323 EVAS_STATIC_BUILD_TGA_TRUE='#'
29324 EVAS_STATIC_BUILD_TGA_FALSE=
29325fi
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338want_loader="${want_evas_image_loader_wbmp}"
29339want_static_loader="no"
29340have_loader="no"
29341have_evas_image_loader_wbmp="no"
29342
29343# Check whether --enable-image-loader-wbmp was given.
29344if test "${enable_image_loader_wbmp+set}" = set; then :
29345 enableval=$enable_image_loader_wbmp;
29346 if test "x${enableval}" = "xyes" ; then
29347 want_loader="yes"
29348 else
29349 if test "x${enableval}" = "xstatic" ; then
29350 want_loader="static"
29351 else
29352 want_loader="no"
29353 fi
29354 fi
29355
29356
29357fi
29358
29359
29360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WBMP image loader" >&5
29361$as_echo_n "checking whether to enable WBMP image loader... " >&6; }
29362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
29363$as_echo "${want_loader}" >&6; }
29364
29365if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
29366
29367
29368have_dep="yes"
29369evas_image_loader_wbmp_cflags=""
29370evas_image_loader_wbmp_libs=""
29371
29372
29373
29374
29375if test "x${have_dep}" = "xyes" ; then
29376 have_loader="yes"
29377else
29378 have_loader="no"
29379fi
29380
29381
29382fi
29383
29384if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
29385 as_fn_error $? "WBMP dependencies not found (strict dependencies checking)" "$LINENO" 5
29386fi
29387
29388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WBMP image loader will be built" >&5
29389$as_echo_n "checking whether WBMP image loader will be built... " >&6; }
29390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
29391$as_echo "${have_loader}" >&6; }
29392
29393if test "x${have_loader}" = "xyes" ; then
29394 if test "x${want_loader}" = "xstatic" ; then
29395 have_evas_image_loader_wbmp="static"
29396 want_static_loader="yes"
29397 else
29398 have_evas_image_loader_wbmp="yes"
29399 fi
29400fi
29401
29402if test "x${have_loader}" = "xyes" ; then
29403
29404$as_echo "#define BUILD_LOADER_WBMP 1" >>confdefs.h
29405
29406fi
29407
29408 if test "x${have_loader}" = "xyes"; then
29409 BUILD_LOADER_WBMP_TRUE=
29410 BUILD_LOADER_WBMP_FALSE='#'
29411else
29412 BUILD_LOADER_WBMP_TRUE='#'
29413 BUILD_LOADER_WBMP_FALSE=
29414fi
29415
29416
29417if test "x${want_static_loader}" = "xyes" ; then
29418
29419$as_echo "#define EVAS_STATIC_BUILD_WBMP 1" >>confdefs.h
29420
29421 have_static_module="yes"
29422fi
29423
29424 if test "x${want_static_loader}" = "xyes"; then
29425 EVAS_STATIC_BUILD_WBMP_TRUE=
29426 EVAS_STATIC_BUILD_WBMP_FALSE='#'
29427else
29428 EVAS_STATIC_BUILD_WBMP_TRUE='#'
29429 EVAS_STATIC_BUILD_WBMP_FALSE=
29430fi
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443want_loader="${want_evas_image_loader_ico}"
29444want_static_loader="no"
29445have_loader="no"
29446have_evas_image_loader_ico="no"
29447
29448# Check whether --enable-image-loader-ico was given.
29449if test "${enable_image_loader_ico+set}" = set; then :
29450 enableval=$enable_image_loader_ico;
29451 if test "x${enableval}" = "xyes" ; then
29452 want_loader="yes"
29453 else
29454 if test "x${enableval}" = "xstatic" ; then
29455 want_loader="static"
29456 else
29457 want_loader="no"
29458 fi
29459 fi
29460
29461
29462fi
29463
29464
29465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ICO image loader" >&5
29466$as_echo_n "checking whether to enable ICO image loader... " >&6; }
29467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
29468$as_echo "${want_loader}" >&6; }
29469
29470if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
29471
29472
29473have_dep="yes"
29474evas_image_loader_ico_cflags=""
29475evas_image_loader_ico_libs=""
29476
29477
29478
29479
29480if test "x${have_dep}" = "xyes" ; then
29481 have_loader="yes"
29482else
29483 have_loader="no"
29484fi
29485
29486
29487fi
29488
29489if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
29490 as_fn_error $? "ICO dependencies not found (strict dependencies checking)" "$LINENO" 5
29491fi
29492
29493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ICO image loader will be built" >&5
29494$as_echo_n "checking whether ICO image loader will be built... " >&6; }
29495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
29496$as_echo "${have_loader}" >&6; }
29497
29498if test "x${have_loader}" = "xyes" ; then
29499 if test "x${want_loader}" = "xstatic" ; then
29500 have_evas_image_loader_ico="static"
29501 want_static_loader="yes"
29502 else
29503 have_evas_image_loader_ico="yes"
29504 fi
29505fi
29506
29507if test "x${have_loader}" = "xyes" ; then
29508
29509$as_echo "#define BUILD_LOADER_ICO 1" >>confdefs.h
29510
29511fi
29512
29513 if test "x${have_loader}" = "xyes"; then
29514 BUILD_LOADER_ICO_TRUE=
29515 BUILD_LOADER_ICO_FALSE='#'
29516else
29517 BUILD_LOADER_ICO_TRUE='#'
29518 BUILD_LOADER_ICO_FALSE=
29519fi
29520
29521
29522if test "x${want_static_loader}" = "xyes" ; then
29523
29524$as_echo "#define EVAS_STATIC_BUILD_ICO 1" >>confdefs.h
29525
29526 have_static_module="yes"
29527fi
29528
29529 if test "x${want_static_loader}" = "xyes"; then
29530 EVAS_STATIC_BUILD_ICO_TRUE=
29531 EVAS_STATIC_BUILD_ICO_FALSE='#'
29532else
29533 EVAS_STATIC_BUILD_ICO_TRUE='#'
29534 EVAS_STATIC_BUILD_ICO_FALSE=
29535fi
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548want_loader="${want_evas_image_loader_psd}"
29549want_static_loader="no"
29550have_loader="no"
29551have_evas_image_loader_psd="no"
29552
29553# Check whether --enable-image-loader-psd was given.
29554if test "${enable_image_loader_psd+set}" = set; then :
29555 enableval=$enable_image_loader_psd;
29556 if test "x${enableval}" = "xyes" ; then
29557 want_loader="yes"
29558 else
29559 if test "x${enableval}" = "xstatic" ; then
29560 want_loader="static"
29561 else
29562 want_loader="no"
29563 fi
29564 fi
29565
29566
29567fi
29568
29569
29570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PSD image loader" >&5
29571$as_echo_n "checking whether to enable PSD image loader... " >&6; }
29572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
29573$as_echo "${want_loader}" >&6; }
29574
29575if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
29576
29577
29578have_dep="yes"
29579evas_image_loader_psd_cflags=""
29580evas_image_loader_psd_libs=""
29581
29582
29583
29584
29585if test "x${have_dep}" = "xyes" ; then
29586 have_loader="yes"
29587else
29588 have_loader="no"
29589fi
29590
29591
29592fi
29593
29594if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
29595 as_fn_error $? "PSD dependencies not found (strict dependencies checking)" "$LINENO" 5
29596fi
29597
29598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PSD image loader will be built" >&5
29599$as_echo_n "checking whether PSD image loader will be built... " >&6; }
29600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
29601$as_echo "${have_loader}" >&6; }
29602
29603if test "x${have_loader}" = "xyes" ; then
29604 if test "x${want_loader}" = "xstatic" ; then
29605 have_evas_image_loader_psd="static"
29606 want_static_loader="yes"
29607 else
29608 have_evas_image_loader_psd="yes"
29609 fi
29610fi
29611
29612if test "x${have_loader}" = "xyes" ; then
29613
29614$as_echo "#define BUILD_LOADER_PSD 1" >>confdefs.h
29615
29616fi
29617
29618 if test "x${have_loader}" = "xyes"; then
29619 BUILD_LOADER_PSD_TRUE=
29620 BUILD_LOADER_PSD_FALSE='#'
29621else
29622 BUILD_LOADER_PSD_TRUE='#'
29623 BUILD_LOADER_PSD_FALSE=
29624fi
29625
29626
29627if test "x${want_static_loader}" = "xyes" ; then
29628
29629$as_echo "#define EVAS_STATIC_BUILD_PSD 1" >>confdefs.h
29630
29631 have_static_module="yes"
29632fi
29633
29634 if test "x${want_static_loader}" = "xyes"; then
29635 EVAS_STATIC_BUILD_PSD_TRUE=
29636 EVAS_STATIC_BUILD_PSD_FALSE='#'
29637else
29638 EVAS_STATIC_BUILD_PSD_TRUE='#'
29639 EVAS_STATIC_BUILD_PSD_FALSE=
29640fi
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653want_loader="${want_evas_image_loader_generic}"
29654want_static_loader="no"
29655have_loader="no"
29656have_evas_image_loader_generic="no"
29657
29658# Check whether --enable-image-loader-generic was given.
29659if test "${enable_image_loader_generic+set}" = set; then :
29660 enableval=$enable_image_loader_generic;
29661 if test "x${enableval}" = "xyes" ; then
29662 want_loader="yes"
29663 else
29664 if test "x${enableval}" = "xstatic" ; then
29665 want_loader="static"
29666 else
29667 want_loader="no"
29668 fi
29669 fi
29670
29671
29672fi
29673
29674
29675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GENERIC image loader" >&5
29676$as_echo_n "checking whether to enable GENERIC image loader... " >&6; }
29677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_loader}" >&5
29678$as_echo "${want_loader}" >&6; }
29679
29680if test "x${want_loader}" = "xyes" -o "x${want_loader}" = "xstatic" -o "x${want_loader}" = "xauto"; then
29681
29682
29683have_dep="yes"
29684evas_image_loader_generic_cflags=""
29685evas_image_loader_generic_libs=""
29686
29687
29688
29689
29690if test "x${have_dep}" = "xyes" ; then
29691 have_loader="yes"
29692else
29693 have_loader="no"
29694fi
29695
29696
29697fi
29698
29699if test "x${have_loader}" = "xno" -a "x${want_loader}" = "xyes" -a "x${use_strict}" = "xyes" ; then
29700 as_fn_error $? "GENERIC dependencies not found (strict dependencies checking)" "$LINENO" 5
29701fi
29702
29703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GENERIC image loader will be built" >&5
29704$as_echo_n "checking whether GENERIC image loader will be built... " >&6; }
29705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_loader}" >&5
29706$as_echo "${have_loader}" >&6; }
29707
29708if test "x${have_loader}" = "xyes" ; then
29709 if test "x${want_loader}" = "xstatic" ; then
29710 have_evas_image_loader_generic="static"
29711 want_static_loader="yes"
29712 else
29713 have_evas_image_loader_generic="yes"
29714 fi
29715fi
29716
29717if test "x${have_loader}" = "xyes" ; then
29718
29719$as_echo "#define BUILD_LOADER_GENERIC 1" >>confdefs.h
29720
29721fi
29722
29723 if test "x${have_loader}" = "xyes"; then
29724 BUILD_LOADER_GENERIC_TRUE=
29725 BUILD_LOADER_GENERIC_FALSE='#'
29726else
29727 BUILD_LOADER_GENERIC_TRUE='#'
29728 BUILD_LOADER_GENERIC_FALSE=
29729fi
29730
29731
29732if test "x${want_static_loader}" = "xyes" ; then
29733
29734$as_echo "#define EVAS_STATIC_BUILD_GENERIC 1" >>confdefs.h
29735
29736 have_static_module="yes"
29737fi
29738
29739 if test "x${want_static_loader}" = "xyes"; then
29740 EVAS_STATIC_BUILD_GENERIC_TRUE=
29741 EVAS_STATIC_BUILD_GENERIC_FALSE='#'
29742else
29743 EVAS_STATIC_BUILD_GENERIC_TRUE='#'
29744 EVAS_STATIC_BUILD_GENERIC_FALSE=
29745fi
29746
29747
29748
29749
29750
29751
29752
29753#####################################################################
29754## Cpu based optimizations
29755
29756#######################################
29757## PTHREADS
29758pthread_cflags=""
29759pthread_libs=""
29760build_pthreads="no"
29761has_pthreads="no"
29762need_pthreads="no"
29763# basic pthread support
29764ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
29765if test "x$ac_cv_header_pthread_h" = x""yes; then :
29766
29767 has_pthreads="yes"
29768
29769else
29770
29771 has_pthreads="no"
29772
29773
29774fi
29775
29776
29777
29778# sched_getaffinity pthread_attr_setaffinity_np
29779for ac_header in pthread.h sched.h
29780do :
29781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29782ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29783if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29784 cat >>confdefs.h <<_ACEOF
29785#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29786_ACEOF
29787
29788 CFLAGS_save="${CFLAGS}"
29789 CFLAGS="${CFLAGS} -pthread"
29790 LIBS_save="${LIBS}"
29791 LIBS="${LIBS} -pthread"
29792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29793/* end confdefs.h. */
29794
29795#include <pthread.h>
29796#include <sched.h>
29797
29798int
29799main ()
29800{
29801
29802pthread_attr_setaffinity_np(NULL, 0, NULL);
29803pthread_barrier_wait(NULL);
29804
29805 ;
29806 return 0;
29807}
29808_ACEOF
29809if ac_fn_c_try_link "$LINENO"; then :
29810 build_pthreads="yes"
29811else
29812 build_pthreads="no"
29813fi
29814rm -f core conftest.err conftest.$ac_objext \
29815 conftest$ac_exeext conftest.$ac_ext
29816 CFLAGS=${CFLAGS_save}
29817 LIBS=${LIBS_save}
29818
29819else
29820 build_pthreads="no"
29821fi
29822
29823done
29824
29825
29826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_setaffinity_np() and pthread_barrier_wait() are supported" >&5
29827$as_echo_n "checking whether pthread_attr_setaffinity_np() and pthread_barrier_wait() are supported... " >&6; }
29828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_pthreads}" >&5
29829$as_echo "${build_pthreads}" >&6; }
29830
29831#######################################
29832## Pthread
29833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build pthread code" >&5
29834$as_echo_n "checking whether to build pthread code... " >&6; }
29835# Check whether --enable-pthreads was given.
29836if test "${enable_pthreads+set}" = set; then :
29837 enableval=$enable_pthreads;
29838 if test "x$enableval" = "xyes" ; then
29839 if test "x$build_pthreads" = "xyes"; then
29840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29841$as_echo "yes" >&6; }
29842
29843$as_echo "#define BUILD_PTHREAD 1" >>confdefs.h
29844
29845 build_pthreads="yes"
29846 need_pthreads="yes"
29847 else
29848 if "x$use_strict" = "xyes"; then
29849 as_fn_error $? "pthreads headers or functions not found (strict dependencies checking)" "$LINENO" 5
29850 else
29851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: pthread headers or functions not found" >&5
29852$as_echo "no: pthread headers or functions not found" >&6; }
29853 fi
29854 fi
29855 else
29856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29857$as_echo "no" >&6; }
29858 build_pthreads="no"
29859 fi
29860
29861else
29862
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_pthreads" >&5
29864$as_echo "$build_pthreads" >&6; }
29865 if test "x$build_pthreads" = "xyes" ; then
29866
29867$as_echo "#define BUILD_PTHREAD 1" >>confdefs.h
29868
29869 need_pthreads="yes"
29870 fi
29871
29872
29873fi
29874
29875
29876#######################################
29877## Pipe Renderer
29878build_pipe_render="no"
29879
29880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Threaded Pipe Rendering support" >&5
29881$as_echo_n "checking whether to build Threaded Pipe Rendering support... " >&6; }
29882# Check whether --enable-pipe-render was given.
29883if test "${enable_pipe_render+set}" = set; then :
29884 enableval=$enable_pipe_render; build_pipe_render=$enableval
29885
29886fi
29887
29888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_pipe_render" >&5
29889$as_echo "$build_pipe_render" >&6; }
29890
29891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Threaded Pipe Rendering support" >&5
29892$as_echo_n "checking whether we can build Threaded Pipe Rendering support... " >&6; }
29893if test \( "x$build_pipe_render" = "xyes" -o "x$build_pipe_render" = "xauto" \); then
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29895$as_echo "yes" >&6; }
29896
29897$as_echo "#define BUILD_PIPE_RENDER 1" >>confdefs.h
29898
29899 build_pipe_render="yes"
29900 need_pthreads="yes"
29901else
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29903$as_echo "no" >&6; }
29904 build_pipe_render="no"
29905fi
29906
29907#######################################
29908## Async Renderer
29909build_async_render="no"
29910
29911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Asynchronously Threaded Pipe Rendering support" >&5
29912$as_echo_n "checking whether to build Asynchronously Threaded Pipe Rendering support... " >&6; }
29913# Check whether --enable-async-render was given.
29914if test "${enable_async_render+set}" = set; then :
29915 enableval=$enable_async_render; build_async_render=$enableval
29916
29917fi
29918
29919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_async_render" >&5
29920$as_echo "$build_async_render" >&6; }
29921
29922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Asynchronously Threaded Pipe Rendering support" >&5
29923$as_echo_n "checking whether we can build Asynchronously Threaded Pipe Rendering support... " >&6; }
29924if test \( "x$build_async_render" = "xyes" \); then
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29926$as_echo "yes" >&6; }
29927
29928$as_echo "#define EVAS_FRAME_QUEUING 1" >>confdefs.h
29929
29930 build_async_render="yes"
29931
29932$as_echo "#define BUILD_PIPE_RENDER 1" >>confdefs.h
29933
29934 build_pipe_render="yes"
29935 need_pthreads="yes"
29936
29937
29938pkg_failed=no
29939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
29940$as_echo_n "checking for XEXT... " >&6; }
29941
29942if test -n "$XEXT_CFLAGS"; then
29943 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
29944 elif test -n "$PKG_CONFIG"; then
29945 if test -n "$PKG_CONFIG" && \
29946 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext < 1.1.1\""; } >&5
29947 ($PKG_CONFIG --exists --print-errors "xext < 1.1.1") 2>&5
29948 ac_status=$?
29949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29950 test $ac_status = 0; }; then
29951 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext < 1.1.1" 2>/dev/null`
29952else
29953 pkg_failed=yes
29954fi
29955 else
29956 pkg_failed=untried
29957fi
29958if test -n "$XEXT_LIBS"; then
29959 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
29960 elif test -n "$PKG_CONFIG"; then
29961 if test -n "$PKG_CONFIG" && \
29962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext < 1.1.1\""; } >&5
29963 ($PKG_CONFIG --exists --print-errors "xext < 1.1.1") 2>&5
29964 ac_status=$?
29965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29966 test $ac_status = 0; }; then
29967 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext < 1.1.1" 2>/dev/null`
29968else
29969 pkg_failed=yes
29970fi
29971 else
29972 pkg_failed=untried
29973fi
29974
29975
29976
29977if test $pkg_failed = yes; then
29978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29979$as_echo "no" >&6; }
29980
29981if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29982 _pkg_short_errors_supported=yes
29983else
29984 _pkg_short_errors_supported=no
29985fi
29986 if test $_pkg_short_errors_supported = yes; then
29987 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext < 1.1.1" 2>&1`
29988 else
29989 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext < 1.1.1" 2>&1`
29990 fi
29991 # Put the nasty error message in config.log where it belongs
29992 echo "$XEXT_PKG_ERRORS" >&5
29993
29994 build_avoid_libXext_bug=no
29995
29996elif test $pkg_failed = untried; then
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29998$as_echo "no" >&6; }
29999 build_avoid_libXext_bug=no
30000
30001else
30002 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
30003 XEXT_LIBS=$pkg_cv_XEXT_LIBS
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30005$as_echo "yes" >&6; }
30006 build_avoid_libXext_bug=yes
30007fi
30008 if test \( "x$build_avoid_libXext_bug" = "xyes" \); then
30009
30010$as_echo "#define LIBXEXT_VERSION_LOW 1" >>confdefs.h
30011
30012 fi
30013else
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30015$as_echo "no" >&6; }
30016 build_async_render="no"
30017fi
30018
30019#######################################
30020## Async events
30021build_async_events="auto"
30022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Async Events support" >&5
30023$as_echo_n "checking whether to build Async Events support... " >&6; }
30024# Check whether --enable-async-events was given.
30025if test "${enable_async_events+set}" = set; then :
30026 enableval=$enable_async_events; build_async_events=$enableval
30027
30028fi
30029
30030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_async_events" >&5
30031$as_echo "$build_async_events" >&6; }
30032
30033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Async Events support" >&5
30034$as_echo_n "checking whether we can build Async Events support... " >&6; }
30035if test "x$build_async_events" = "xyes" || test "x$build_async_events" = "xauto" ; then
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30037$as_echo "yes" >&6; }
30038
30039$as_echo "#define BUILD_ASYNC_EVENTS 1" >>confdefs.h
30040
30041 build_async_events="yes"
30042else
30043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30044$as_echo "no" >&6; }
30045 build_async_events="no"
30046fi
30047
30048#######################################
30049## Async image preload
30050build_async_preload="auto"
30051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Async Image Preload support" >&5
30052$as_echo_n "checking whether to build Async Image Preload support... " >&6; }
30053# Check whether --enable-async-preload was given.
30054if test "${enable_async_preload+set}" = set; then :
30055 enableval=$enable_async_preload; build_async_preload=$enableval
30056
30057fi
30058
30059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_async_preload" >&5
30060$as_echo "$build_async_preload" >&6; }
30061
30062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build Async Image Preload support" >&5
30063$as_echo_n "checking whether we can build Async Image Preload support... " >&6; }
30064if test \( "x$build_async_preload" = "xyes" -o "x$build_async_preload" = "xauto" \) -a "x$build_async_events" = "xyes"; then
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30066$as_echo "yes" >&6; }
30067
30068$as_echo "#define BUILD_ASYNC_PRELOAD 1" >>confdefs.h
30069
30070 build_async_preload="yes"
30071 need_pthreads="yes"
30072else
30073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30074$as_echo "no" >&6; }
30075 build_async_preload="no"
30076fi
30077
30078#######################################
30079## Link with pthread if needed
30080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should link with pthread" >&5
30081$as_echo_n "checking whether we should link with pthread... " >&6; }
30082if test "x$need_pthreads" = "xyes"; then
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30084$as_echo "yes" >&6; }
30085 pthread_cflags="-pthread"
30086 pthread_libs="-pthread"
30087else
30088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30089$as_echo "no" >&6; }
30090fi
30091
30092#######################################
30093## MMX
30094build_cpu_mmx="no"
30095case $host_cpu in
30096 i*86)
30097 build_cpu_mmx="yes"
30098 ;;
30099 x86_64)
30100 build_cpu_mmx="yes"
30101 ;;
30102 amd64)
30103 build_cpu_mmx="yes"
30104 ;;
30105esac
30106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build mmx code" >&5
30107$as_echo_n "checking whether to build mmx code... " >&6; }
30108# Check whether --enable-cpu-mmx was given.
30109if test "${enable_cpu_mmx+set}" = set; then :
30110 enableval=$enable_cpu_mmx;
30111 if test "x$enableval" = "xyes" ; then
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30113$as_echo "yes" >&6; }
30114
30115$as_echo "#define BUILD_MMX 1" >>confdefs.h
30116
30117 build_cpu_mmx="yes"
30118 else
30119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30120$as_echo "no" >&6; }
30121 build_cpu_mmx="no"
30122 fi
30123
30124else
30125
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_mmx" >&5
30127$as_echo "$build_cpu_mmx" >&6; }
30128 if test "x$build_cpu_mmx" = "xyes" ; then
30129
30130$as_echo "#define BUILD_MMX 1" >>confdefs.h
30131
30132 fi
30133
30134
30135fi
30136
30137
30138#######################################
30139## SSE
30140build_cpu_sse="no"
30141case $host_cpu in
30142 i*86)
30143 build_cpu_sse="yes"
30144 ;;
30145 x86_64)
30146 build_cpu_sse="yes"
30147 ;;
30148 amd64)
30149 build_cpu_sse="yes"
30150 ;;
30151esac
30152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse code" >&5
30153$as_echo_n "checking whether to build sse code... " >&6; }
30154# Check whether --enable-cpu-sse was given.
30155if test "${enable_cpu_sse+set}" = set; then :
30156 enableval=$enable_cpu_sse;
30157 if test "x$enableval" = "xyes" ; then
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30159$as_echo "yes" >&6; }
30160
30161$as_echo "#define BUILD_SSE 1" >>confdefs.h
30162
30163 build_cpu_sse="yes"
30164 else
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30166$as_echo "no" >&6; }
30167 build_cpu_sse="no"
30168 fi
30169
30170else
30171
30172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_sse" >&5
30173$as_echo "$build_cpu_sse" >&6; }
30174 if test "x$build_cpu_sse" = "xyes" ; then
30175
30176$as_echo "#define BUILD_SSE 1" >>confdefs.h
30177
30178 fi
30179
30180
30181fi
30182
30183
30184#######################################
30185## SSE3
30186build_cpu_sse3="no"
30187case $host_cpu in
30188 i*86)
30189 build_cpu_sse3="yes"
30190 ;;
30191 x86_64)
30192 build_cpu_sse3="yes"
30193 ;;
30194 amd64)
30195 build_cpu_sse3="yes"
30196 ;;
30197esac
30198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sse3 code" >&5
30199$as_echo_n "checking whether to build sse3 code... " >&6; }
30200# Check whether --enable-cpu-sse3 was given.
30201if test "${enable_cpu_sse3+set}" = set; then :
30202 enableval=$enable_cpu_sse3;
30203 if test "x$enableval" = "xyes" ; then
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30205$as_echo "yes" >&6; }
30206
30207$as_echo "#define BUILD_SSE3 1" >>confdefs.h
30208
30209 build_cpu_sse3="yes"
30210 else
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30212$as_echo "no" >&6; }
30213 build_cpu_sse3="no"
30214 fi
30215
30216else
30217
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_sse3" >&5
30219$as_echo "$build_cpu_sse3" >&6; }
30220 if test "x$build_cpu_sse3" = "xyes" ; then
30221
30222$as_echo "#define BUILD_SSE3 1" >>confdefs.h
30223
30224 fi
30225
30226
30227fi
30228
30229
30230
30231# as a big warning flag to anyone doing stuff like this...
30232# NEVER EVER EVER EVER put **OPTIMIZATION** flags in
30233# build flags in makefiles (from configure or anywhere else)
30234# EVER as this screws your ability to build 1 binary and
30235# cover ALL x86 arch's. This is the HEIGHT of WRONG. If the
30236# person building choses to add optimization flags themselves
30237# and decide the minimum baseline cpu arch is X then that's
30238# their business, but NEVER should it be done here. NEVER.
30239# I now have to do this due to the way this sse3 code was done - using
30240# intrinsics and "functions" (opcodes) and types that only compile *IF*
30241# you compile with -msse3. this ALSO tries to optimize REGULAR c code
30242# with sse3 asm.. and this breaks things so badly. so... sse3 will be
30243# off until further notice for 32bit x86.
30244EVAS_SSE3_CFLAGS=" "
30245if test "x$build_cpu_sse3" = "xyes" ; then
30246 EVAS_SSE3_CFLAGS="-msse3 "
30247# CFLAGS="${CFLAGS} ${EVAS_SSE3_CFLAGS}"
30248fi
30249
30250
30251
30252
30253#######################################
30254## ALTIVEC
30255build_cpu_altivec="no"
30256case $host_cpu in
30257 *power* | *ppc*)
30258 build_cpu_altivec="auto"
30259 ;;
30260esac
30261altivec_cflags=""
30262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build altivec code" >&5
30263$as_echo_n "checking whether to build altivec code... " >&6; }
30264# Check whether --enable-cpu-altivec was given.
30265if test "${enable_cpu_altivec+set}" = set; then :
30266 enableval=$enable_cpu_altivec; build_cpu_altivec=$enableval
30267else
30268
30269 if test ! "x$build_cpu_altivec" = "xauto"; then
30270 build_cpu_altivec="no"
30271 fi
30272
30273
30274fi
30275
30276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_altivec" >&5
30277$as_echo "$build_cpu_altivec" >&6; }
30278
30279if test "x$build_cpu_altivec" = "xyes"; then
30280 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
30281if test "x$ac_cv_header_altivec_h" = x""yes; then :
30282
30283
30284$as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h
30285
30286
30287$as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
30288
30289 build_cpu_altivec="yes"
30290
30291else
30292
30293 save_CFLAGS=$CFLAGS
30294 save_CPPFLAGS=$CPPFLAGS
30295 CFLAGS=$CFLAGS" -maltivec"
30296 CPPFLAGS=$CPPFLAGS" -maltivec"
30297 unset ac_cv_header_altivec_h
30298 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
30299if test "x$ac_cv_header_altivec_h" = x""yes; then :
30300
30301
30302$as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h
30303
30304
30305$as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
30306
30307 build_cpu_altivec="yes"
30308
30309else
30310
30311 if test "x$build_cpu_altivec" = "xyes" -a "x$use_strict" = "xyes" ; then
30312 as_fn_error $? "Altivec not found (strict dependencies checking)" "$LINENO" 5
30313 fi
30314 build_cpu_altivec="no"
30315
30316
30317fi
30318
30319
30320 CFLAGS=$save_CFLAGS
30321 CPPFLAGS=$save_CPPFLAGS
30322
30323
30324fi
30325
30326
30327fi
30328
30329if test "x$build_cpu_altivec" = "xyes"; then
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use altivec compiler flag" >&5
30331$as_echo_n "checking whether to use altivec compiler flag... " >&6; }
30332 if test "x$GCC" = "xyes"; then
30333 if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then
30334 altivec_cflags="-faltivec"
30335
30336$as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h
30337
30338 elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then
30339 altivec_cflags="-maltivec"
30340
30341$as_echo "#define BUILD_ALTIVEC 1" >>confdefs.h
30342
30343 fi
30344 fi
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $altivec_cflags" >&5
30346$as_echo "$altivec_cflags" >&6; }
30347 CFLAGS="$CFLAGS $altivec_cflags"
30348fi
30349
30350#######################################
30351## NEON
30352build_cpu_neon="no"
30353case $host_cpu in
30354 arm*)
30355 build_cpu_neon="yes"
30356 ;;
30357esac
30358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build neon code" >&5
30359$as_echo_n "checking whether to build neon code... " >&6; }
30360# Check whether --enable-cpu-neon was given.
30361if test "${enable_cpu_neon+set}" = set; then :
30362 enableval=$enable_cpu_neon;
30363 if test "x$enableval" = "xyes" ; then
30364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30365/* end confdefs.h. */
30366
30367int
30368main ()
30369{
30370asm volatile (".fpu neon\nvqadd.u8 d0, d1, d0\n")
30371 ;
30372 return 0;
30373}
30374_ACEOF
30375if ac_fn_c_try_compile "$LINENO"; then :
30376
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30378$as_echo "yes" >&6; }
30379
30380$as_echo "#define BUILD_NEON 1" >>confdefs.h
30381
30382 build_cpu_neon="yes"
30383
30384else
30385
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30387$as_echo "no" >&6; }
30388 build_cpu_neon="no"
30389
30390fi
30391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30392 else
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30394$as_echo "no" >&6; }
30395 build_cpu_neon="no"
30396 fi
30397
30398else
30399
30400 if test "x$build_cpu_neon" = "xyes" ; then
30401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30402/* end confdefs.h. */
30403#include <arm_neon.h>
30404int
30405main ()
30406{
30407asm volatile ("vqadd.u8 d0, d1, d0\n")
30408 ;
30409 return 0;
30410}
30411_ACEOF
30412if ac_fn_c_try_compile "$LINENO"; then :
30413
30414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30415$as_echo "yes" >&6; }
30416
30417$as_echo "#define BUILD_NEON 1" >>confdefs.h
30418
30419 build_cpu_neon="yes"
30420
30421else
30422
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30424$as_echo "no" >&6; }
30425 build_cpu_neon="no"
30426
30427fi
30428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30429 fi
30430
30431
30432fi
30433
30434
30435#######################################
30436## C
30437build_cpu_c="yes"
30438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build c code" >&5
30439$as_echo_n "checking whether to build c code... " >&6; }
30440# Check whether --enable-cpu-c was given.
30441if test "${enable_cpu_c+set}" = set; then :
30442 enableval=$enable_cpu_c;
30443 if test "x$enableval" = "xyes" ; then
30444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30445$as_echo "yes" >&6; }
30446
30447$as_echo "#define BUILD_C 1" >>confdefs.h
30448
30449 build_cpu_c="yes"
30450 else
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30452$as_echo "no" >&6; }
30453 build_cpu_c="no"
30454 fi
30455
30456else
30457
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_cpu_c" >&5
30459$as_echo "$build_cpu_c" >&6; }
30460 if test "x$build_cpu_c" = "xyes" ; then
30461
30462$as_echo "#define BUILD_C 1" >>confdefs.h
30463
30464 fi
30465
30466
30467fi
30468
30469
30470#######################################
30471## MAGIC_DEBUG
30472want_evas_magic_debug="yes"
30473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check magic for evas object" >&5
30474$as_echo_n "checking whether to check magic for evas object... " >&6; }
30475# Check whether --enable-evas-magic-debug was given.
30476if test "${enable_evas_magic_debug+set}" = set; then :
30477 enableval=$enable_evas_magic_debug; want_evas_magic_debug="$enableval"
30478
30479fi
30480
30481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_evas_magic_debug" >&5
30482$as_echo "$want_evas_magic_debug" >&6; }
30483
30484 if test "x$want_evas_magic_debug" = "xyes"; then
30485 EVAS_MAGIC_DEBUG_TRUE=
30486 EVAS_MAGIC_DEBUG_FALSE='#'
30487else
30488 EVAS_MAGIC_DEBUG_TRUE='#'
30489 EVAS_MAGIC_DEBUG_FALSE=
30490fi
30491
30492if test "x$want_evas_magic_debug" = "xyes"; then
30493
30494$as_echo "#define EVAS_MAGIC_DEBUG 1" >>confdefs.h
30495
30496fi
30497
30498
30499#######################################
30500## Word Caching
30501want_word_cache="no"
30502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable caching of rendered words" >&5
30503$as_echo_n "checking whether to enable caching of rendered words... " >&6; }
30504# Check whether --enable-word-cache was given.
30505if test "${enable_word_cache+set}" = set; then :
30506 enableval=$enable_word_cache; want_word_cache="$enableval"
30507
30508fi
30509
30510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_word_cache" >&5
30511$as_echo "$want_word_cache" >&6; }
30512
30513 if test "x$want_word_cache" = "xyes"; then
30514 WORD_CACHE_TRUE=
30515 WORD_CACHE_FALSE='#'
30516else
30517 WORD_CACHE_TRUE='#'
30518 WORD_CACHE_FALSE=
30519fi
30520
30521if test "x$want_word_cache" = "xyes"; then
30522
30523$as_echo "#define WORD_CACHE 1" >>confdefs.h
30524
30525fi
30526
30527#######################################
30528## Metric Caching
30529want_metric_cache="no"
30530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable caching of rendered metrics" >&5
30531$as_echo_n "checking whether to enable caching of rendered metrics... " >&6; }
30532# Check whether --enable-metric-cache was given.
30533if test "${enable_metric_cache+set}" = set; then :
30534 enableval=$enable_metric_cache; want_metric_cache="$enableval"
30535
30536fi
30537
30538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_metric_cache" >&5
30539$as_echo "$want_metric_cache" >&6; }
30540
30541 if test "x$want_metric_cache" = "xyes"; then
30542 METRIC_CACHE_TRUE=
30543 METRIC_CACHE_FALSE='#'
30544else
30545 METRIC_CACHE_TRUE='#'
30546 METRIC_CACHE_FALSE=
30547fi
30548
30549if test "x$want_metric_cache" = "xyes"; then
30550
30551$as_echo "#define METRIC_CACHE 1" >>confdefs.h
30552
30553fi
30554
30555
30556
30557#####################################################################
30558## ARGB engine options
30559
30560#######################################
30561## Nearest sampling scaler
30562
30563
30564# Check whether --enable-scale-sample was given.
30565if test "${enable_scale_sample+set}" = set; then :
30566 enableval=$enable_scale_sample;
30567 if test "x${enableval}" = "xyes" ; then
30568 _efl_enable_scaler_option_scale_sample="yes"
30569 else
30570 _efl_enable_scaler_option_scale_sample="no"
30571 fi
30572
30573else
30574 _efl_enable_scaler_option_scale_sample="yes"
30575fi
30576
30577
30578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build sampling scaler" >&5
30579$as_echo_n "checking whether to build sampling scaler... " >&6; }
30580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_scaler_option_scale_sample}" >&5
30581$as_echo "${_efl_enable_scaler_option_scale_sample}" >&6; }
30582
30583if test "x${_efl_enable_scaler_option_scale_sample}" = "xyes" ; then
30584
30585$as_echo "#define BUILD_SCALE_SAMPLE 1" >>confdefs.h
30586
30587fi
30588
30589if test "x${_efl_enable_scaler_option_scale_sample}" = "xyes" ; then
30590 scaler_sample="yes"
30591else
30592 scaler_sample="no"
30593fi
30594
30595
30596
30597
30598## Smooth super and sub sampling scaler
30599
30600
30601# Check whether --enable-scale-smooth was given.
30602if test "${enable_scale_smooth+set}" = set; then :
30603 enableval=$enable_scale_smooth;
30604 if test "x${enableval}" = "xyes" ; then
30605 _efl_enable_scaler_option_scale_smooth="yes"
30606 else
30607 _efl_enable_scaler_option_scale_smooth="no"
30608 fi
30609
30610else
30611 _efl_enable_scaler_option_scale_smooth="yes"
30612fi
30613
30614
30615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build smooth scaler" >&5
30616$as_echo_n "checking whether to build smooth scaler... " >&6; }
30617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_scaler_option_scale_smooth}" >&5
30618$as_echo "${_efl_enable_scaler_option_scale_smooth}" >&6; }
30619
30620if test "x${_efl_enable_scaler_option_scale_smooth}" = "xyes" ; then
30621
30622$as_echo "#define BUILD_SCALE_SMOOTH 1" >>confdefs.h
30623
30624fi
30625
30626if test "x${_efl_enable_scaler_option_scale_smooth}" = "xyes" ; then
30627 scaler_smooth="yes"
30628else
30629 scaler_smooth="no"
30630fi
30631
30632
30633
30634
30635
30636#######################################
30637## YUV -> ARGB converter
30638conv_yuv="no"
30639conv_yuv="yes"
30640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build yuv converter code" >&5
30641$as_echo_n "checking whether to build yuv converter code... " >&6; }
30642# Check whether --enable-convert-yuv was given.
30643if test "${enable_convert_yuv+set}" = set; then :
30644 enableval=$enable_convert_yuv;
30645 if test "x$enableval" = "xyes" ; then
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30647$as_echo "yes" >&6; }
30648
30649$as_echo "#define BUILD_CONVERT_YUV 1" >>confdefs.h
30650
30651 conv_yuv="yes"
30652 else
30653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30654$as_echo "no" >&6; }
30655 conv_yuv="no"
30656 fi
30657
30658else
30659
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_yuv" >&5
30661$as_echo "$conv_yuv" >&6; }
30662 if test "x$conv_yuv" = "xyes" ; then
30663
30664$as_echo "#define BUILD_CONVERT_YUV 1" >>confdefs.h
30665
30666 fi
30667
30668
30669fi
30670
30671
30672#####################################################################
30673## Output rendering features
30674
30675#######################################
30676## Small dither mask instead of big one (lower quality)
30677
30678
30679# Check whether --enable-small-dither-mask was given.
30680if test "${enable_small_dither_mask+set}" = set; then :
30681 enableval=$enable_small_dither_mask;
30682 if test "x${enableval}" = "xyes" ; then
30683 _efl_enable_dither_option_small_dither_mask="yes"
30684 else
30685 _efl_enable_dither_option_small_dither_mask="no"
30686 fi
30687
30688else
30689 _efl_enable_dither_option_small_dither_mask="no"
30690fi
30691
30692
30693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build small dither mask" >&5
30694$as_echo_n "checking whether to build small dither mask... " >&6; }
30695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_dither_option_small_dither_mask}" >&5
30696$as_echo "${_efl_enable_dither_option_small_dither_mask}" >&6; }
30697
30698if test "x${_efl_enable_dither_option_small_dither_mask}" = "xyes" ; then
30699
30700$as_echo "#define BUILD_SMALL_DITHER_MASK 1" >>confdefs.h
30701
30702fi
30703
30704if test "x${_efl_enable_dither_option_small_dither_mask}" = "xyes" ; then
30705 conv_small_dither="yes"
30706else
30707 conv_small_dither="no"
30708fi
30709
30710
30711
30712
30713## Alternate Line dither mask instead of big one (lower quality - but fastest)
30714
30715
30716# Check whether --enable-line-dither-mask was given.
30717if test "${enable_line_dither_mask+set}" = set; then :
30718 enableval=$enable_line_dither_mask;
30719 if test "x${enableval}" = "xyes" ; then
30720 _efl_enable_dither_option_line_dither_mask="yes"
30721 else
30722 _efl_enable_dither_option_line_dither_mask="no"
30723 fi
30724
30725else
30726 _efl_enable_dither_option_line_dither_mask="no"
30727fi
30728
30729
30730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build line dither mask" >&5
30731$as_echo_n "checking whether to build line dither mask... " >&6; }
30732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_dither_option_line_dither_mask}" >&5
30733$as_echo "${_efl_enable_dither_option_line_dither_mask}" >&6; }
30734
30735if test "x${_efl_enable_dither_option_line_dither_mask}" = "xyes" ; then
30736
30737$as_echo "#define BUILD_LINE_DITHER_MASK 1" >>confdefs.h
30738
30739fi
30740
30741if test "x${_efl_enable_dither_option_line_dither_mask}" = "xyes" ; then
30742 conv_line_dither="yes"
30743else
30744 conv_line_dither="no"
30745fi
30746
30747
30748
30749
30750## No dither mask at all for 16bpp
30751
30752
30753# Check whether --enable-no-dither-mask was given.
30754if test "${enable_no_dither_mask+set}" = set; then :
30755 enableval=$enable_no_dither_mask;
30756 if test "x${enableval}" = "xyes" ; then
30757 _efl_enable_dither_option_no_dither_mask="yes"
30758 else
30759 _efl_enable_dither_option_no_dither_mask="no"
30760 fi
30761
30762else
30763 _efl_enable_dither_option_no_dither_mask="no"
30764fi
30765
30766
30767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build conversion to 16bpp without dither mask" >&5
30768$as_echo_n "checking whether to build conversion to 16bpp without dither mask... " >&6; }
30769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_dither_option_no_dither_mask}" >&5
30770$as_echo "${_efl_enable_dither_option_no_dither_mask}" >&6; }
30771
30772if test "x${_efl_enable_dither_option_no_dither_mask}" = "xyes" ; then
30773
30774$as_echo "#define BUILD_NO_DITHER_MASK 1" >>confdefs.h
30775
30776fi
30777
30778if test "x${_efl_enable_dither_option_no_dither_mask}" = "xyes" ; then
30779 conv_no_dither="yes"
30780else
30781 conv_no_dither="no"
30782fi
30783
30784
30785
30786
30787
30788#######################################
30789## Convert to 8bpp RGB 332
30790
30791
30792conv_8_rgb_332="no"
30793
30794
30795 # Check whether --enable-convert-8-rgb-332 was given.
30796if test "${enable_convert_8_rgb_332+set}" = set; then :
30797 enableval=$enable_convert_8_rgb_332; conv_8_rgb_332=$enableval
30798else
30799 conv_8_rgb_332=yes
30800
30801fi
30802
30803
30804
30805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 332 converter code" >&5
30806$as_echo_n "checking whether to build 8bpp RGB 332 converter code... " >&6; }
30807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_332" >&5
30808$as_echo "$conv_8_rgb_332" >&6; }
30809
30810if test "x$conv_8_rgb_332" = "xyes" ; then
30811
30812$as_echo "#define BUILD_CONVERT_8_RGB_332 1" >>confdefs.h
30813
30814fi
30815
30816
30817
30818
30819
30820## Convert to 8bpp RGB 666
30821
30822
30823conv_8_rgb_666="no"
30824
30825
30826 # Check whether --enable-convert-8-rgb-666 was given.
30827if test "${enable_convert_8_rgb_666+set}" = set; then :
30828 enableval=$enable_convert_8_rgb_666; conv_8_rgb_666=$enableval
30829else
30830 conv_8_rgb_666=yes
30831
30832fi
30833
30834
30835
30836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 666 converter code" >&5
30837$as_echo_n "checking whether to build 8bpp RGB 666 converter code... " >&6; }
30838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_666" >&5
30839$as_echo "$conv_8_rgb_666" >&6; }
30840
30841if test "x$conv_8_rgb_666" = "xyes" ; then
30842
30843$as_echo "#define BUILD_CONVERT_8_RGB_666 1" >>confdefs.h
30844
30845fi
30846
30847
30848
30849
30850
30851## Convert to 8bpp RGB 232
30852
30853
30854conv_8_rgb_232="no"
30855
30856
30857 # Check whether --enable-convert-8-rgb-232 was given.
30858if test "${enable_convert_8_rgb_232+set}" = set; then :
30859 enableval=$enable_convert_8_rgb_232; conv_8_rgb_232=$enableval
30860else
30861 conv_8_rgb_232=yes
30862
30863fi
30864
30865
30866
30867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 232 converter code" >&5
30868$as_echo_n "checking whether to build 8bpp RGB 232 converter code... " >&6; }
30869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_232" >&5
30870$as_echo "$conv_8_rgb_232" >&6; }
30871
30872if test "x$conv_8_rgb_232" = "xyes" ; then
30873
30874$as_echo "#define BUILD_CONVERT_8_RGB_232 1" >>confdefs.h
30875
30876fi
30877
30878
30879
30880
30881
30882## Convert to 8bpp RGB 222
30883
30884
30885conv_8_rgb_222="no"
30886
30887
30888 # Check whether --enable-convert-8-rgb-222 was given.
30889if test "${enable_convert_8_rgb_222+set}" = set; then :
30890 enableval=$enable_convert_8_rgb_222; conv_8_rgb_222=$enableval
30891else
30892 conv_8_rgb_222=yes
30893
30894fi
30895
30896
30897
30898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 222 converter code" >&5
30899$as_echo_n "checking whether to build 8bpp RGB 222 converter code... " >&6; }
30900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_222" >&5
30901$as_echo "$conv_8_rgb_222" >&6; }
30902
30903if test "x$conv_8_rgb_222" = "xyes" ; then
30904
30905$as_echo "#define BUILD_CONVERT_8_RGB_222 1" >>confdefs.h
30906
30907fi
30908
30909
30910
30911
30912
30913## Convert to 8bpp RGB 221
30914
30915
30916conv_8_rgb_221="no"
30917
30918
30919 # Check whether --enable-convert-8-rgb-221 was given.
30920if test "${enable_convert_8_rgb_221+set}" = set; then :
30921 enableval=$enable_convert_8_rgb_221; conv_8_rgb_221=$enableval
30922else
30923 conv_8_rgb_221=yes
30924
30925fi
30926
30927
30928
30929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 221 converter code" >&5
30930$as_echo_n "checking whether to build 8bpp RGB 221 converter code... " >&6; }
30931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_221" >&5
30932$as_echo "$conv_8_rgb_221" >&6; }
30933
30934if test "x$conv_8_rgb_221" = "xyes" ; then
30935
30936$as_echo "#define BUILD_CONVERT_8_RGB_221 1" >>confdefs.h
30937
30938fi
30939
30940
30941
30942
30943
30944## Convert to 8bpp RGB 121
30945
30946
30947conv_8_rgb_121="no"
30948
30949
30950 # Check whether --enable-convert-8-rgb-121 was given.
30951if test "${enable_convert_8_rgb_121+set}" = set; then :
30952 enableval=$enable_convert_8_rgb_121; conv_8_rgb_121=$enableval
30953else
30954 conv_8_rgb_121=yes
30955
30956fi
30957
30958
30959
30960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 121 converter code" >&5
30961$as_echo_n "checking whether to build 8bpp RGB 121 converter code... " >&6; }
30962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_121" >&5
30963$as_echo "$conv_8_rgb_121" >&6; }
30964
30965if test "x$conv_8_rgb_121" = "xyes" ; then
30966
30967$as_echo "#define BUILD_CONVERT_8_RGB_121 1" >>confdefs.h
30968
30969fi
30970
30971
30972
30973
30974
30975## Convert to 8bpp RGB 111
30976
30977
30978conv_8_rgb_111="no"
30979
30980
30981 # Check whether --enable-convert-8-rgb-111 was given.
30982if test "${enable_convert_8_rgb_111+set}" = set; then :
30983 enableval=$enable_convert_8_rgb_111; conv_8_rgb_111=$enableval
30984else
30985 conv_8_rgb_111=yes
30986
30987fi
30988
30989
30990
30991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp RGB 111 converter code" >&5
30992$as_echo_n "checking whether to build 8bpp RGB 111 converter code... " >&6; }
30993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_rgb_111" >&5
30994$as_echo "$conv_8_rgb_111" >&6; }
30995
30996if test "x$conv_8_rgb_111" = "xyes" ; then
30997
30998$as_echo "#define BUILD_CONVERT_8_RGB_111 1" >>confdefs.h
30999
31000fi
31001
31002
31003
31004
31005
31006## Convert to 16bpp RGB 565
31007
31008
31009conv_16_rgb_565="no"
31010
31011
31012 # Check whether --enable-convert-16-rgb-565 was given.
31013if test "${enable_convert_16_rgb_565+set}" = set; then :
31014 enableval=$enable_convert_16_rgb_565; conv_16_rgb_565=$enableval
31015else
31016 conv_16_rgb_565=yes
31017
31018fi
31019
31020
31021
31022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB 565 converter code" >&5
31023$as_echo_n "checking whether to build 16bpp RGB 565 converter code... " >&6; }
31024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_565" >&5
31025$as_echo "$conv_16_rgb_565" >&6; }
31026
31027if test "x$conv_16_rgb_565" = "xyes" ; then
31028
31029$as_echo "#define BUILD_CONVERT_16_RGB_565 1" >>confdefs.h
31030
31031fi
31032
31033
31034
31035
31036
31037## Convert to 16bpp BGR 565
31038
31039
31040conv_16_bgr_565="no"
31041
31042
31043 # Check whether --enable-convert-16-bgr-565 was given.
31044if test "${enable_convert_16_bgr_565+set}" = set; then :
31045 enableval=$enable_convert_16_bgr_565; conv_16_bgr_565=$enableval
31046else
31047 conv_16_bgr_565=yes
31048
31049fi
31050
31051
31052
31053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp BGR 565 converter code" >&5
31054$as_echo_n "checking whether to build 16bpp BGR 565 converter code... " >&6; }
31055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_bgr_565" >&5
31056$as_echo "$conv_16_bgr_565" >&6; }
31057
31058if test "x$conv_16_bgr_565" = "xyes" ; then
31059
31060$as_echo "#define BUILD_CONVERT_16_BGR_565 1" >>confdefs.h
31061
31062fi
31063
31064
31065
31066
31067
31068## Convert to 16bpp RGB 555
31069
31070
31071conv_16_rgb_555="no"
31072
31073
31074 # Check whether --enable-convert-16-rgb-555 was given.
31075if test "${enable_convert_16_rgb_555+set}" = set; then :
31076 enableval=$enable_convert_16_rgb_555; conv_16_rgb_555=$enableval
31077else
31078 conv_16_rgb_555=yes
31079
31080fi
31081
31082
31083
31084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB 555 converter code" >&5
31085$as_echo_n "checking whether to build 16bpp RGB 555 converter code... " >&6; }
31086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_555" >&5
31087$as_echo "$conv_16_rgb_555" >&6; }
31088
31089if test "x$conv_16_rgb_555" = "xyes" ; then
31090
31091$as_echo "#define BUILD_CONVERT_16_RGB_555 1" >>confdefs.h
31092
31093fi
31094
31095
31096
31097
31098
31099## Convert to 16bpp RGB 444
31100
31101
31102conv_16_rgb_444="no"
31103
31104
31105 # Check whether --enable-convert-16-rgb-444 was given.
31106if test "${enable_convert_16_rgb_444+set}" = set; then :
31107 enableval=$enable_convert_16_rgb_444; conv_16_rgb_444=$enableval
31108else
31109 conv_16_rgb_444=yes
31110
31111fi
31112
31113
31114
31115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB 444 converter code" >&5
31116$as_echo_n "checking whether to build 16bpp RGB 444 converter code... " >&6; }
31117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_444" >&5
31118$as_echo "$conv_16_rgb_444" >&6; }
31119
31120if test "x$conv_16_rgb_444" = "xyes" ; then
31121
31122$as_echo "#define BUILD_CONVERT_16_RGB_444 1" >>confdefs.h
31123
31124fi
31125
31126
31127
31128
31129
31130
31131#######################################
31132## Convert to 16bpp RGB 565 (444 ipaq)
31133conv_16_rgb_ipq="yes"
31134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp 565 (444 ipaq) converter code" >&5
31135$as_echo_n "checking whether to build 16bpp 565 (444 ipaq) converter code... " >&6; }
31136# Check whether --enable-convert-16-rgb-ipq was given.
31137if test "${enable_convert_16_rgb_ipq+set}" = set; then :
31138 enableval=$enable_convert_16_rgb_ipq;
31139 if test "x$enableval" = "xyes" ; then
31140
31141$as_echo "#define BUILD_CONVERT_16_RGB_454645 1" >>confdefs.h
31142
31143 conv_16_rgb_ipq="yes"
31144 else
31145 conv_16_rgb_ipq="no"
31146 fi
31147
31148else
31149
31150 if test "x$conv_16_rgb_ipq" = "xyes" ; then
31151
31152$as_echo "#define BUILD_CONVERT_16_RGB_454645 1" >>confdefs.h
31153
31154 fi
31155
31156
31157fi
31158
31159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_ipq" >&5
31160$as_echo "$conv_16_rgb_ipq" >&6; }
31161
31162#######################################
31163## Convert to 16bpp RGB with rotation of 0
31164
31165
31166conv_16_rgb_rot_0="no"
31167
31168
31169 # Check whether --enable-convert-16-rgb-rot-0 was given.
31170if test "${enable_convert_16_rgb_rot_0+set}" = set; then :
31171 enableval=$enable_convert_16_rgb_rot_0; conv_16_rgb_rot_0=$enableval
31172else
31173 conv_16_rgb_rot_0=yes
31174
31175fi
31176
31177
31178
31179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 0 converter code" >&5
31180$as_echo_n "checking whether to build 16bpp RGB rotation 0 converter code... " >&6; }
31181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_0" >&5
31182$as_echo "$conv_16_rgb_rot_0" >&6; }
31183
31184if test "x$conv_16_rgb_rot_0" = "xyes" ; then
31185
31186$as_echo "#define BUILD_CONVERT_16_RGB_ROT0 1" >>confdefs.h
31187
31188fi
31189
31190
31191
31192
31193
31194## Convert to 16bpp RGB with rotation of 180
31195
31196
31197conv_16_rgb_rot_180="no"
31198
31199
31200 # Check whether --enable-convert-16-rgb-rot-180 was given.
31201if test "${enable_convert_16_rgb_rot_180+set}" = set; then :
31202 enableval=$enable_convert_16_rgb_rot_180; conv_16_rgb_rot_180=$enableval
31203else
31204 conv_16_rgb_rot_180=yes
31205
31206fi
31207
31208
31209
31210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 180 converter code" >&5
31211$as_echo_n "checking whether to build 16bpp RGB rotation 180 converter code... " >&6; }
31212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_180" >&5
31213$as_echo "$conv_16_rgb_rot_180" >&6; }
31214
31215if test "x$conv_16_rgb_rot_180" = "xyes" ; then
31216
31217$as_echo "#define BUILD_CONVERT_16_RGB_ROT180 1" >>confdefs.h
31218
31219fi
31220
31221
31222
31223
31224
31225## Convert to 16bpp RGB with rotation of 270
31226
31227
31228conv_16_rgb_rot_270="no"
31229
31230
31231 # Check whether --enable-convert-16-rgb-rot-270 was given.
31232if test "${enable_convert_16_rgb_rot_270+set}" = set; then :
31233 enableval=$enable_convert_16_rgb_rot_270; conv_16_rgb_rot_270=$enableval
31234else
31235 conv_16_rgb_rot_270=yes
31236
31237fi
31238
31239
31240
31241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 270 converter code" >&5
31242$as_echo_n "checking whether to build 16bpp RGB rotation 270 converter code... " >&6; }
31243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_270" >&5
31244$as_echo "$conv_16_rgb_rot_270" >&6; }
31245
31246if test "x$conv_16_rgb_rot_270" = "xyes" ; then
31247
31248$as_echo "#define BUILD_CONVERT_16_RGB_ROT270 1" >>confdefs.h
31249
31250fi
31251
31252
31253
31254
31255
31256## Convert to 16bpp RGB with rotation of 90
31257
31258
31259conv_16_rgb_rot_90="no"
31260
31261
31262 # Check whether --enable-convert-16-rgb-rot-90 was given.
31263if test "${enable_convert_16_rgb_rot_90+set}" = set; then :
31264 enableval=$enable_convert_16_rgb_rot_90; conv_16_rgb_rot_90=$enableval
31265else
31266 conv_16_rgb_rot_90=yes
31267
31268fi
31269
31270
31271
31272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 16bpp RGB rotation 90 converter code" >&5
31273$as_echo_n "checking whether to build 16bpp RGB rotation 90 converter code... " >&6; }
31274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_16_rgb_rot_90" >&5
31275$as_echo "$conv_16_rgb_rot_90" >&6; }
31276
31277if test "x$conv_16_rgb_rot_90" = "xyes" ; then
31278
31279$as_echo "#define BUILD_CONVERT_16_RGB_ROT90 1" >>confdefs.h
31280
31281fi
31282
31283
31284
31285
31286
31287
31288#######################################
31289## Convert to 24bpp RGB 888
31290
31291
31292conv_24_rgb_888="no"
31293
31294
31295 # Check whether --enable-convert-24-rgb-888 was given.
31296if test "${enable_convert_24_rgb_888+set}" = set; then :
31297 enableval=$enable_convert_24_rgb_888; conv_24_rgb_888=$enableval
31298else
31299 conv_24_rgb_888=yes
31300
31301fi
31302
31303
31304
31305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 24bpp RGB 888 converter code" >&5
31306$as_echo_n "checking whether to build 24bpp RGB 888 converter code... " >&6; }
31307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_24_rgb_888" >&5
31308$as_echo "$conv_24_rgb_888" >&6; }
31309
31310if test "x$conv_24_rgb_888" = "xyes" ; then
31311
31312$as_echo "#define BUILD_CONVERT_24_RGB_888 1" >>confdefs.h
31313
31314fi
31315
31316
31317
31318
31319
31320## Convert to 24bpp BGR 888
31321
31322
31323conv_24_bgr_888="no"
31324
31325
31326 # Check whether --enable-convert-24-bgr-888 was given.
31327if test "${enable_convert_24_bgr_888+set}" = set; then :
31328 enableval=$enable_convert_24_bgr_888; conv_24_bgr_888=$enableval
31329else
31330 conv_24_bgr_888=yes
31331
31332fi
31333
31334
31335
31336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 24bpp BGR 888 converter code" >&5
31337$as_echo_n "checking whether to build 24bpp BGR 888 converter code... " >&6; }
31338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_24_bgr_888" >&5
31339$as_echo "$conv_24_bgr_888" >&6; }
31340
31341if test "x$conv_24_bgr_888" = "xyes" ; then
31342
31343$as_echo "#define BUILD_CONVERT_24_BGR_888 1" >>confdefs.h
31344
31345fi
31346
31347
31348
31349
31350
31351## Convert to 32bpp RGB 8888
31352
31353
31354conv_32_rgb_8888="no"
31355
31356
31357 # Check whether --enable-convert-32-rgb-8888 was given.
31358if test "${enable_convert_32_rgb_8888+set}" = set; then :
31359 enableval=$enable_convert_32_rgb_8888; conv_32_rgb_8888=$enableval
31360else
31361 conv_32_rgb_8888=yes
31362
31363fi
31364
31365
31366
31367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB 8888 converter code" >&5
31368$as_echo_n "checking whether to build 32bpp RGB 8888 converter code... " >&6; }
31369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_8888" >&5
31370$as_echo "$conv_32_rgb_8888" >&6; }
31371
31372if test "x$conv_32_rgb_8888" = "xyes" ; then
31373
31374$as_echo "#define BUILD_CONVERT_32_RGB_8888 1" >>confdefs.h
31375
31376fi
31377
31378
31379
31380
31381
31382## Convert to 32bpp RGBX 8888
31383
31384
31385conv_32_rgbx_8888="no"
31386
31387
31388 # Check whether --enable-convert-32-rgbx-8888 was given.
31389if test "${enable_convert_32_rgbx_8888+set}" = set; then :
31390 enableval=$enable_convert_32_rgbx_8888; conv_32_rgbx_8888=$enableval
31391else
31392 conv_32_rgbx_8888=yes
31393
31394fi
31395
31396
31397
31398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGBX 8888 converter code" >&5
31399$as_echo_n "checking whether to build 32bpp RGBX 8888 converter code... " >&6; }
31400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgbx_8888" >&5
31401$as_echo "$conv_32_rgbx_8888" >&6; }
31402
31403if test "x$conv_32_rgbx_8888" = "xyes" ; then
31404
31405$as_echo "#define BUILD_CONVERT_32_RGBX_8888 1" >>confdefs.h
31406
31407fi
31408
31409
31410
31411
31412
31413## Convert to 32bpp BGR 8888
31414
31415
31416conv_32_bgr_8888="no"
31417
31418
31419 # Check whether --enable-convert-32-bgr-8888 was given.
31420if test "${enable_convert_32_bgr_8888+set}" = set; then :
31421 enableval=$enable_convert_32_bgr_8888; conv_32_bgr_8888=$enableval
31422else
31423 conv_32_bgr_8888=yes
31424
31425fi
31426
31427
31428
31429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp BGR 8888 converter code" >&5
31430$as_echo_n "checking whether to build 32bpp BGR 8888 converter code... " >&6; }
31431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_bgr_8888" >&5
31432$as_echo "$conv_32_bgr_8888" >&6; }
31433
31434if test "x$conv_32_bgr_8888" = "xyes" ; then
31435
31436$as_echo "#define BUILD_CONVERT_32_BGR_8888 1" >>confdefs.h
31437
31438fi
31439
31440
31441
31442
31443
31444## Convert to 32bpp BGRX 8888
31445
31446
31447conv_32_bgrx_8888="no"
31448
31449
31450 # Check whether --enable-convert-32-bgrx-8888 was given.
31451if test "${enable_convert_32_bgrx_8888+set}" = set; then :
31452 enableval=$enable_convert_32_bgrx_8888; conv_32_bgrx_8888=$enableval
31453else
31454 conv_32_bgrx_8888=yes
31455
31456fi
31457
31458
31459
31460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp BGRX 8888 converter code" >&5
31461$as_echo_n "checking whether to build 32bpp BGRX 8888 converter code... " >&6; }
31462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_bgrx_8888" >&5
31463$as_echo "$conv_32_bgrx_8888" >&6; }
31464
31465if test "x$conv_32_bgrx_8888" = "xyes" ; then
31466
31467$as_echo "#define BUILD_CONVERT_32_BGRX_8888 1" >>confdefs.h
31468
31469fi
31470
31471
31472
31473
31474
31475
31476#######################################
31477## Convert to 24bpp RGB 666 (666 ezx)
31478conv_24_rgb_ezx="yes"
31479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 24bpp 666 (666 ezx) converter code" >&5
31480$as_echo_n "checking whether to build 24bpp 666 (666 ezx) converter code... " >&6; }
31481# Check whether --enable-convert-24-rgb-ezx was given.
31482if test "${enable_convert_24_rgb_ezx+set}" = set; then :
31483 enableval=$enable_convert_24_rgb_ezx;
31484 if test "x$enableval" = "xyes" ; then
31485
31486$as_echo "#define BUILD_CONVERT_24_RGB_666 1" >>confdefs.h
31487
31488 conv_24_rgb_ezx="yes"
31489 else
31490 conv_24_rgb_ezx="no"
31491 fi
31492
31493else
31494
31495 if test "x$conv_24_rgb_ezx" = "xyes" ; then
31496
31497$as_echo "#define BUILD_CONVERT_24_RGB_666 1" >>confdefs.h
31498
31499 fi
31500
31501
31502fi
31503
31504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_24_rgb_ezx" >&5
31505$as_echo "$conv_24_rgb_ezx" >&6; }
31506
31507#######################################
31508## Convert to 32bpp RGB 666 (666 ezx)
31509conv_32_rgb_ezx="yes"
31510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp 666 (666 ezx) converter code" >&5
31511$as_echo_n "checking whether to build 32bpp 666 (666 ezx) converter code... " >&6; }
31512# Check whether --enable-convert-32-rgb-ezx was given.
31513if test "${enable_convert_32_rgb_ezx+set}" = set; then :
31514 enableval=$enable_convert_32_rgb_ezx;
31515 if test "x$enableval" = "xyes" ; then
31516
31517$as_echo "#define BUILD_CONVERT_32_RGB_666 1" >>confdefs.h
31518
31519 conv_32_rgb_ezx="yes"
31520 else
31521 conv_32_rgb_ezx="no"
31522 fi
31523
31524else
31525
31526 if test "x$conv_32_rgb_ezx" = "xyes" ; then
31527
31528$as_echo "#define BUILD_CONVERT_32_RGB_666 1" >>confdefs.h
31529
31530 fi
31531
31532
31533fi
31534
31535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_ezx" >&5
31536$as_echo "$conv_32_rgb_ezx" >&6; }
31537
31538#######################################
31539## Convert to 32bpp RGB with rotation of 0
31540
31541
31542conv_32_rgb_rot_0="no"
31543
31544
31545 # Check whether --enable-convert-32-rgb-rot-0 was given.
31546if test "${enable_convert_32_rgb_rot_0+set}" = set; then :
31547 enableval=$enable_convert_32_rgb_rot_0; conv_32_rgb_rot_0=$enableval
31548else
31549 conv_32_rgb_rot_0=yes
31550
31551fi
31552
31553
31554
31555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 0 converter code" >&5
31556$as_echo_n "checking whether to build 32bpp RGB rotation 0 converter code... " >&6; }
31557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_0" >&5
31558$as_echo "$conv_32_rgb_rot_0" >&6; }
31559
31560if test "x$conv_32_rgb_rot_0" = "xyes" ; then
31561
31562$as_echo "#define BUILD_CONVERT_32_RGB_ROT0 1" >>confdefs.h
31563
31564fi
31565
31566
31567
31568
31569
31570## Convert to 32bpp RGB with rotation of 180
31571
31572
31573conv_32_rgb_rot_180="no"
31574
31575
31576 # Check whether --enable-convert-32-rgb-rot-180 was given.
31577if test "${enable_convert_32_rgb_rot_180+set}" = set; then :
31578 enableval=$enable_convert_32_rgb_rot_180; conv_32_rgb_rot_180=$enableval
31579else
31580 conv_32_rgb_rot_180=yes
31581
31582fi
31583
31584
31585
31586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 180 converter code" >&5
31587$as_echo_n "checking whether to build 32bpp RGB rotation 180 converter code... " >&6; }
31588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_180" >&5
31589$as_echo "$conv_32_rgb_rot_180" >&6; }
31590
31591if test "x$conv_32_rgb_rot_180" = "xyes" ; then
31592
31593$as_echo "#define BUILD_CONVERT_32_RGB_ROT180 1" >>confdefs.h
31594
31595fi
31596
31597
31598
31599
31600
31601## Convert to 32bpp RGB with rotation of 270
31602
31603
31604conv_32_rgb_rot_270="no"
31605
31606
31607 # Check whether --enable-convert-32-rgb-rot-270 was given.
31608if test "${enable_convert_32_rgb_rot_270+set}" = set; then :
31609 enableval=$enable_convert_32_rgb_rot_270; conv_32_rgb_rot_270=$enableval
31610else
31611 conv_32_rgb_rot_270=yes
31612
31613fi
31614
31615
31616
31617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 270 converter code" >&5
31618$as_echo_n "checking whether to build 32bpp RGB rotation 270 converter code... " >&6; }
31619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_270" >&5
31620$as_echo "$conv_32_rgb_rot_270" >&6; }
31621
31622if test "x$conv_32_rgb_rot_270" = "xyes" ; then
31623
31624$as_echo "#define BUILD_CONVERT_32_RGB_ROT270 1" >>confdefs.h
31625
31626fi
31627
31628
31629
31630
31631
31632## Convert to 32bpp RGB with rotation of 90
31633
31634
31635conv_32_rgb_rot_90="no"
31636
31637
31638 # Check whether --enable-convert-32-rgb-rot-90 was given.
31639if test "${enable_convert_32_rgb_rot_90+set}" = set; then :
31640 enableval=$enable_convert_32_rgb_rot_90; conv_32_rgb_rot_90=$enableval
31641else
31642 conv_32_rgb_rot_90=yes
31643
31644fi
31645
31646
31647
31648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 32bpp RGB rotation 90 converter code" >&5
31649$as_echo_n "checking whether to build 32bpp RGB rotation 90 converter code... " >&6; }
31650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_32_rgb_rot_90" >&5
31651$as_echo "$conv_32_rgb_rot_90" >&6; }
31652
31653if test "x$conv_32_rgb_rot_90" = "xyes" ; then
31654
31655$as_echo "#define BUILD_CONVERT_32_RGB_ROT90 1" >>confdefs.h
31656
31657fi
31658
31659
31660
31661
31662
31663
31664#######################################
31665## Convert to 8bpp grayscale with 256 value, no palette
31666
31667
31668conv_8_gry_1="no"
31669
31670
31671 # Check whether --enable-convert-8-gry-1 was given.
31672if test "${enable_convert_8_gry_1+set}" = set; then :
31673 enableval=$enable_convert_8_gry_1; conv_8_gry_1=$enableval
31674else
31675 conv_8_gry_1=yes
31676
31677fi
31678
31679
31680
31681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp GRY 1 converter code" >&5
31682$as_echo_n "checking whether to build 8bpp GRY 1 converter code... " >&6; }
31683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_gry_1" >&5
31684$as_echo "$conv_8_gry_1" >&6; }
31685
31686if test "x$conv_8_gry_1" = "xyes" ; then
31687
31688$as_echo "#define BUILD_CONVERT_8_GRY_1 1" >>confdefs.h
31689
31690fi
31691
31692
31693
31694
31695
31696## Convert to 8bpp grayscale with 16 value, no palette
31697
31698
31699conv_8_gry_16="no"
31700
31701
31702 # Check whether --enable-convert-8-gry-16 was given.
31703if test "${enable_convert_8_gry_16+set}" = set; then :
31704 enableval=$enable_convert_8_gry_16; conv_8_gry_16=$enableval
31705else
31706 conv_8_gry_16=yes
31707
31708fi
31709
31710
31711
31712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp GRY 16 converter code" >&5
31713$as_echo_n "checking whether to build 8bpp GRY 16 converter code... " >&6; }
31714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_gry_16" >&5
31715$as_echo "$conv_8_gry_16" >&6; }
31716
31717if test "x$conv_8_gry_16" = "xyes" ; then
31718
31719$as_echo "#define BUILD_CONVERT_8_GRY_16 1" >>confdefs.h
31720
31721fi
31722
31723
31724
31725
31726
31727
31728#######################################
31729## Convert to 8bpp grayscale, 64-palette
31730conv_8_grayscale_64="yes"
31731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build 8bpp grayscale 64-palette converter code" >&5
31732$as_echo_n "checking whether to build 8bpp grayscale 64-palette converter code... " >&6; }
31733# Check whether --enable-convert-8-grayscale-64 was given.
31734if test "${enable_convert_8_grayscale_64+set}" = set; then :
31735 enableval=$enable_convert_8_grayscale_64;
31736 if test "x$enableval" = "xyes"; then
31737
31738$as_echo "#define BUILD_CONVERT_8_GRAYSCALE_64 1" >>confdefs.h
31739
31740 conv_8_grayscale_64="yes"
31741 else
31742 conv_8_grayscale_64="no"
31743 fi
31744
31745else
31746
31747 if test "x$conv_8_grayscale_64" = "xyes"; then
31748
31749$as_echo "#define BUILD_CONVERT_8_GRAYSCALE_64 1" >>confdefs.h
31750
31751 fi
31752
31753
31754fi
31755
31756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $conv_8_grayscale_64" >&5
31757$as_echo "$conv_8_grayscale_64" >&6; }
31758
31759## valgrind
31760want_valgrind="no"
31761have_valgrind="no"
31762
31763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build with valgrind" >&5
31764$as_echo_n "checking whether to enable build with valgrind... " >&6; }
31765# Check whether --enable-valgrind was given.
31766if test "${enable_valgrind+set}" = set; then :
31767 enableval=$enable_valgrind; want_valgrind=$enableval
31768
31769fi
31770
31771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_valgrind" >&5
31772$as_echo "$want_valgrind" >&6; }
31773
31774if test x$want_valgrind = "xyes"; then
31775
31776pkg_failed=no
31777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
31778$as_echo_n "checking for VALGRIND... " >&6; }
31779
31780if test -n "$VALGRIND_CFLAGS"; then
31781 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
31782 elif test -n "$PKG_CONFIG"; then
31783 if test -n "$PKG_CONFIG" && \
31784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5
31785 ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5
31786 ac_status=$?
31787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31788 test $ac_status = 0; }; then
31789 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= 2.4.0" 2>/dev/null`
31790else
31791 pkg_failed=yes
31792fi
31793 else
31794 pkg_failed=untried
31795fi
31796if test -n "$VALGRIND_LIBS"; then
31797 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
31798 elif test -n "$PKG_CONFIG"; then
31799 if test -n "$PKG_CONFIG" && \
31800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= 2.4.0\""; } >&5
31801 ($PKG_CONFIG --exists --print-errors "valgrind >= 2.4.0") 2>&5
31802 ac_status=$?
31803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31804 test $ac_status = 0; }; then
31805 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= 2.4.0" 2>/dev/null`
31806else
31807 pkg_failed=yes
31808fi
31809 else
31810 pkg_failed=untried
31811fi
31812
31813
31814
31815if test $pkg_failed = yes; then
31816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31817$as_echo "no" >&6; }
31818
31819if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31820 _pkg_short_errors_supported=yes
31821else
31822 _pkg_short_errors_supported=no
31823fi
31824 if test $_pkg_short_errors_supported = yes; then
31825 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "valgrind >= 2.4.0" 2>&1`
31826 else
31827 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "valgrind >= 2.4.0" 2>&1`
31828 fi
31829 # Put the nasty error message in config.log where it belongs
31830 echo "$VALGRIND_PKG_ERRORS" >&5
31831
31832
31833 if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then
31834 as_fn_error $? "Valgrind not found (strict dependencies checking)" "$LINENO" 5
31835 fi
31836
31837
31838elif test $pkg_failed = untried; then
31839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31840$as_echo "no" >&6; }
31841
31842 if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then
31843 as_fn_error $? "Valgrind not found (strict dependencies checking)" "$LINENO" 5
31844 fi
31845
31846
31847else
31848 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
31849 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
31850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31851$as_echo "yes" >&6; }
31852
31853
31854$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
31855
31856 have_valgrind=yes
31857 requirement_evas="valgrind ${requirement_evas}"
31858
31859fi
31860fi
31861
31862## Examples
31863
31864install_examples="yes"
31865# Check whether --enable-install-examples was given.
31866if test "${enable_install_examples+set}" = set; then :
31867 enableval=$enable_install_examples;
31868 if test "x${enableval}" = "xyes" ; then
31869 install_examples="yes"
31870 else
31871 install_examples="no"
31872 fi
31873
31874else
31875 install_examples="yes"
31876fi
31877
31878 if test "x${install_examples}" = "xyes"; then
31879 INSTALL_EXAMPLES_TRUE=
31880 INSTALL_EXAMPLES_FALSE='#'
31881else
31882 INSTALL_EXAMPLES_TRUE='#'
31883 INSTALL_EXAMPLES_FALSE=
31884fi
31885
31886
31887build_examples="no"
31888# Check whether --enable-build-examples was given.
31889if test "${enable_build_examples+set}" = set; then :
31890 enableval=$enable_build_examples;
31891 if test "x${enableval}" = "xyes" ; then
31892 build_examples="yes"
31893 # put in here the dependencies for Evas' examples. they are
31894 # meant to be 'real world' usage examples, thus one will be
31895 # using higher level libraries on these programs
31896
31897pkg_failed=no
31898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECORE_EVAS" >&5
31899$as_echo_n "checking for ECORE_EVAS... " >&6; }
31900
31901if test -n "$ECORE_EVAS_CFLAGS"; then
31902 pkg_cv_ECORE_EVAS_CFLAGS="$ECORE_EVAS_CFLAGS"
31903 elif test -n "$PKG_CONFIG"; then
31904 if test -n "$PKG_CONFIG" && \
31905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore\""; } >&5
31906 ($PKG_CONFIG --exists --print-errors "ecore-evas ecore") 2>&5
31907 ac_status=$?
31908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31909 test $ac_status = 0; }; then
31910 pkg_cv_ECORE_EVAS_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas ecore" 2>/dev/null`
31911else
31912 pkg_failed=yes
31913fi
31914 else
31915 pkg_failed=untried
31916fi
31917if test -n "$ECORE_EVAS_LIBS"; then
31918 pkg_cv_ECORE_EVAS_LIBS="$ECORE_EVAS_LIBS"
31919 elif test -n "$PKG_CONFIG"; then
31920 if test -n "$PKG_CONFIG" && \
31921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas ecore\""; } >&5
31922 ($PKG_CONFIG --exists --print-errors "ecore-evas ecore") 2>&5
31923 ac_status=$?
31924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31925 test $ac_status = 0; }; then
31926 pkg_cv_ECORE_EVAS_LIBS=`$PKG_CONFIG --libs "ecore-evas ecore" 2>/dev/null`
31927else
31928 pkg_failed=yes
31929fi
31930 else
31931 pkg_failed=untried
31932fi
31933
31934
31935
31936if test $pkg_failed = yes; then
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31938$as_echo "no" >&6; }
31939
31940if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31941 _pkg_short_errors_supported=yes
31942else
31943 _pkg_short_errors_supported=no
31944fi
31945 if test $_pkg_short_errors_supported = yes; then
31946 ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-evas ecore" 2>&1`
31947 else
31948 ECORE_EVAS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-evas ecore" 2>&1`
31949 fi
31950 # Put the nasty error message in config.log where it belongs
31951 echo "$ECORE_EVAS_PKG_ERRORS" >&5
31952
31953 build_examples="no"
31954elif test $pkg_failed = untried; then
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31956$as_echo "no" >&6; }
31957 build_examples="no"
31958else
31959 ECORE_EVAS_CFLAGS=$pkg_cv_ECORE_EVAS_CFLAGS
31960 ECORE_EVAS_LIBS=$pkg_cv_ECORE_EVAS_LIBS
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31962$as_echo "yes" >&6; }
31963
31964fi
31965
31966pkg_failed=no
31967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDJE" >&5
31968$as_echo_n "checking for EDJE... " >&6; }
31969
31970if test -n "$EDJE_CFLAGS"; then
31971 pkg_cv_EDJE_CFLAGS="$EDJE_CFLAGS"
31972 elif test -n "$PKG_CONFIG"; then
31973 if test -n "$PKG_CONFIG" && \
31974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edje\""; } >&5
31975 ($PKG_CONFIG --exists --print-errors "edje") 2>&5
31976 ac_status=$?
31977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31978 test $ac_status = 0; }; then
31979 pkg_cv_EDJE_CFLAGS=`$PKG_CONFIG --cflags "edje" 2>/dev/null`
31980else
31981 pkg_failed=yes
31982fi
31983 else
31984 pkg_failed=untried
31985fi
31986if test -n "$EDJE_LIBS"; then
31987 pkg_cv_EDJE_LIBS="$EDJE_LIBS"
31988 elif test -n "$PKG_CONFIG"; then
31989 if test -n "$PKG_CONFIG" && \
31990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"edje\""; } >&5
31991 ($PKG_CONFIG --exists --print-errors "edje") 2>&5
31992 ac_status=$?
31993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31994 test $ac_status = 0; }; then
31995 pkg_cv_EDJE_LIBS=`$PKG_CONFIG --libs "edje" 2>/dev/null`
31996else
31997 pkg_failed=yes
31998fi
31999 else
32000 pkg_failed=untried
32001fi
32002
32003
32004
32005if test $pkg_failed = yes; then
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32007$as_echo "no" >&6; }
32008
32009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32010 _pkg_short_errors_supported=yes
32011else
32012 _pkg_short_errors_supported=no
32013fi
32014 if test $_pkg_short_errors_supported = yes; then
32015 EDJE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "edje" 2>&1`
32016 else
32017 EDJE_PKG_ERRORS=`$PKG_CONFIG --print-errors "edje" 2>&1`
32018 fi
32019 # Put the nasty error message in config.log where it belongs
32020 echo "$EDJE_PKG_ERRORS" >&5
32021
32022 build_examples="no"
32023elif test $pkg_failed = untried; then
32024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32025$as_echo "no" >&6; }
32026 build_examples="no"
32027else
32028 EDJE_CFLAGS=$pkg_cv_EDJE_CFLAGS
32029 EDJE_LIBS=$pkg_cv_EDJE_LIBS
32030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32031$as_echo "yes" >&6; }
32032 edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc
32033fi
32034
32035 else
32036 build_examples="no"
32037 fi
32038
32039else
32040 build_examples="no"
32041fi
32042
32043 if test "x${build_examples}" = "xyes"; then
32044 BUILD_EXAMPLES_TRUE=
32045 BUILD_EXAMPLES_FALSE='#'
32046else
32047 BUILD_EXAMPLES_TRUE='#'
32048 BUILD_EXAMPLES_FALSE=
32049fi
32050
32051
32052## Unit tests, coverage
32053
32054
32055
32056
32057# Check whether --enable-tests was given.
32058if test "${enable_tests+set}" = set; then :
32059 enableval=$enable_tests;
32060 if test "x${enableval}" = "xyes" ; then
32061 _efl_enable_tests="yes"
32062 else
32063 _efl_enable_tests="no"
32064 fi
32065
32066else
32067 _efl_enable_tests="no"
32068fi
32069
32070
32071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests are built" >&5
32072$as_echo_n "checking whether tests are built... " >&6; }
32073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_efl_enable_tests}" >&5
32074$as_echo "${_efl_enable_tests}" >&6; }
32075
32076
32077
32078if test "x${_efl_enable_tests}" = "xyes" ; then
32079
32080pkg_failed=no
32081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
32082$as_echo_n "checking for CHECK... " >&6; }
32083
32084if test -n "$CHECK_CFLAGS"; then
32085 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
32086 elif test -n "$PKG_CONFIG"; then
32087 if test -n "$PKG_CONFIG" && \
32088 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5
32089 ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5
32090 ac_status=$?
32091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32092 test $ac_status = 0; }; then
32093 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null`
32094else
32095 pkg_failed=yes
32096fi
32097 else
32098 pkg_failed=untried
32099fi
32100if test -n "$CHECK_LIBS"; then
32101 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
32102 elif test -n "$PKG_CONFIG"; then
32103 if test -n "$PKG_CONFIG" && \
32104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.5\""; } >&5
32105 ($PKG_CONFIG --exists --print-errors "check >= 0.9.5") 2>&5
32106 ac_status=$?
32107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32108 test $ac_status = 0; }; then
32109 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null`
32110else
32111 pkg_failed=yes
32112fi
32113 else
32114 pkg_failed=untried
32115fi
32116
32117
32118
32119if test $pkg_failed = yes; then
32120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32121$as_echo "no" >&6; }
32122
32123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32124 _pkg_short_errors_supported=yes
32125else
32126 _pkg_short_errors_supported=no
32127fi
32128 if test $_pkg_short_errors_supported = yes; then
32129 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1`
32130 else
32131 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1`
32132 fi
32133 # Put the nasty error message in config.log where it belongs
32134 echo "$CHECK_PKG_ERRORS" >&5
32135
32136 _efl_enable_tests="no"
32137elif test $pkg_failed = untried; then
32138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32139$as_echo "no" >&6; }
32140 _efl_enable_tests="no"
32141else
32142 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
32143 CHECK_LIBS=$pkg_cv_CHECK_LIBS
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32145$as_echo "yes" >&6; }
32146 dummy="yes"
32147fi
32148fi
32149if test "x${_efl_enable_tests}" = "xyes" ; then
32150
32151$as_echo "#define HAVE_TESTS 1" >>confdefs.h
32152
32153fi
32154
32155 if test "x${_efl_enable_tests}" = "xyes"; then
32156 EFL_ENABLE_TESTS_TRUE=
32157 EFL_ENABLE_TESTS_FALSE='#'
32158else
32159 EFL_ENABLE_TESTS_TRUE='#'
32160 EFL_ENABLE_TESTS_FALSE=
32161fi
32162
32163
32164if test "x$_efl_enable_tests" = "xyes"; then :
32165 enable_tests="yes"
32166else
32167 enable_tests="no"
32168fi
32169
32170
32171
32172
32173
32174# Check whether --enable-coverage was given.
32175if test "${enable_coverage+set}" = set; then :
32176 enableval=$enable_coverage;
32177 if test "x${enableval}" = "xyes" ; then
32178 _efl_enable_coverage="yes"
32179 else
32180 _efl_enable_coverage="no"
32181 fi
32182
32183else
32184 _efl_enable_coverage="no"
32185fi
32186
32187
32188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use profiling instrumentation" >&5
32189$as_echo_n "checking whether to use profiling instrumentation... " >&6; }
32190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_efl_enable_coverage" >&5
32191$as_echo "$_efl_enable_coverage" >&6; }
32192
32193
32194if test "x$_efl_enable_coverage" = "xyes" && test ! "x${enable_tests}" = "xyes" ; then
32195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&5
32196$as_echo "$as_me: WARNING: Coverage report requested but tests not being built, disable profiling instrumentation." >&2;}
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run configure with --enable-tests" >&5
32198$as_echo "$as_me: WARNING: Run configure with --enable-tests" >&2;}
32199 _efl_enable_coverage="no"
32200fi
32201
32202if test "x$_efl_enable_coverage" = "xyes" ; then
32203 # Extract the first word of "lcov", so it can be a program name with args.
32204set dummy lcov; ac_word=$2
32205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32206$as_echo_n "checking for $ac_word... " >&6; }
32207if test "${ac_cv_prog_have_lcov+set}" = set; then :
32208 $as_echo_n "(cached) " >&6
32209else
32210 if test -n "$have_lcov"; then
32211 ac_cv_prog_have_lcov="$have_lcov" # Let the user override the test.
32212else
32213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32214for as_dir in $PATH
32215do
32216 IFS=$as_save_IFS
32217 test -z "$as_dir" && as_dir=.
32218 for ac_exec_ext in '' $ac_executable_extensions; do
32219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32220 ac_cv_prog_have_lcov="yes"
32221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32222 break 2
32223 fi
32224done
32225 done
32226IFS=$as_save_IFS
32227
32228 test -z "$ac_cv_prog_have_lcov" && ac_cv_prog_have_lcov="no"
32229fi
32230fi
32231have_lcov=$ac_cv_prog_have_lcov
32232if test -n "$have_lcov"; then
32233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lcov" >&5
32234$as_echo "$have_lcov" >&6; }
32235else
32236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32237$as_echo "no" >&6; }
32238fi
32239
32240
32241 if test "x$have_lcov" = "xyes" ; then
32242 EFL_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
32243 EFL_COVERAGE_LIBS="-lgcov"
32244# remove any optimisation flag and force debug symbols
32245 EFL_DEBUG_CFLAGS="-g -O0 -DDEBUG"
32246 else
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcov is not found, disable profiling instrumentation" >&5
32248$as_echo "$as_me: WARNING: lcov is not found, disable profiling instrumentation" >&2;}
32249 _efl_enable_coverage="no"
32250 fi
32251fi
32252
32253
32254
32255
32256 if test "x${_efl_enable_coverage}" = "xyes"; then
32257 EFL_ENABLE_COVERAGE_TRUE=
32258 EFL_ENABLE_COVERAGE_FALSE='#'
32259else
32260 EFL_ENABLE_COVERAGE_TRUE='#'
32261 EFL_ENABLE_COVERAGE_FALSE=
32262fi
32263
32264
32265if test "x$_efl_enable_coverage" = "xyes"; then :
32266 enable_coverage="yes"
32267else
32268 enable_coverage="no"
32269fi
32270
32271EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_COVERAGE_CFLAGS}"
32272EVAS_LIBS="${EVAS_LIBS} ${EFL_COVERAGE_LIBS}"
32273if test "x$enable_coverage" = "xyes" ; then
32274 EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_DEBUG_CFLAGS}"
32275fi
32276
32277
32278
32279
32280#####################################################################
32281## Fill in flags
32282
32283
32284
32285
32286
32287
32288
32289#####################################################################
32290## Output
32291
32292ac_config_files="$ac_config_files Makefile evas-directfb.pc evas-fb.pc evas-opengl-x11.pc evas-opengl-sdl.pc evas-opengl-cocoa.pc evas-software-buffer.pc evas-software-x11.pc evas-software-8-x11.pc evas-software-16-x11.pc evas-software-gdi.pc evas-software-ddraw.pc evas-software-16-ddraw.pc evas-direct3d.pc evas-software-16-wince.pc evas-software-sdl.pc evas-psl1ght.pc evas.pc doc/evas.dox doc/Makefile doc/Doxyfile src/Makefile src/bin/Makefile src/lib/Makefile src/lib/canvas/Makefile src/lib/file/Makefile src/lib/cache/Makefile src/lib/cserve/Makefile src/lib/engines/Makefile src/lib/engines/common/Makefile src/lib/engines/common/evas_op_add/Makefile src/lib/engines/common/evas_op_blend/Makefile src/lib/engines/common/evas_op_copy/Makefile src/lib/engines/common/evas_op_mask/Makefile src/lib/engines/common/evas_op_mul/Makefile src/lib/engines/common/evas_op_sub/Makefile src/lib/engines/common_8/Makefile src/lib/engines/common_16/Makefile src/modules/Makefile src/modules/engines/Makefile src/modules/engines/software_generic/Makefile src/modules/engines/software_gdi/Makefile src/modules/engines/software_ddraw/Makefile src/modules/engines/direct3d/Makefile src/modules/engines/software_16_wince/Makefile src/modules/engines/software_x11/Makefile src/modules/engines/fb/Makefile src/modules/engines/buffer/Makefile src/modules/engines/directfb/Makefile src/modules/engines/gl_common/Makefile src/modules/engines/gl_x11/Makefile src/modules/engines/gl_sdl/Makefile src/modules/engines/gl_cocoa/Makefile src/modules/engines/psl1ght/Makefile src/modules/engines/software_sdl/Makefile src/modules/engines/software_8/Makefile src/modules/engines/software_8_x11/Makefile src/modules/engines/software_16/Makefile src/modules/engines/software_16_x11/Makefile src/modules/engines/software_16_ddraw/Makefile src/modules/engines/software_16_sdl/Makefile src/modules/loaders/Makefile src/modules/loaders/edb/Makefile src/modules/loaders/eet/Makefile src/modules/loaders/gif/Makefile src/modules/loaders/jpeg/Makefile src/modules/loaders/png/Makefile src/modules/loaders/tiff/Makefile src/modules/loaders/xpm/Makefile src/modules/loaders/bmp/Makefile src/modules/loaders/ico/Makefile src/modules/loaders/tga/Makefile src/modules/loaders/svg/Makefile src/modules/loaders/pmaps/Makefile src/modules/loaders/wbmp/Makefile src/modules/loaders/psd/Makefile src/modules/loaders/generic/Makefile src/modules/savers/Makefile src/modules/savers/edb/Makefile src/modules/savers/eet/Makefile src/modules/savers/jpeg/Makefile src/modules/savers/png/Makefile src/modules/savers/tiff/Makefile src/static_deps/Makefile src/static_deps/liblinebreak/Makefile src/lib/include/Makefile src/examples/Makefile src/tests/Makefile evas.spec"
32293
32294cat >confcache <<\_ACEOF
32295# This file is a shell script that caches the results of configure
32296# tests run on this system so they can be shared between configure
32297# scripts and configure runs, see configure's option --config-cache.
32298# It is not useful on other systems. If it contains results you don't
32299# want to keep, you may remove or edit it.
32300#
32301# config.status only pays attention to the cache file if you give it
32302# the --recheck option to rerun configure.
32303#
32304# `ac_cv_env_foo' variables (set or unset) will be overridden when
32305# loading this file, other *unset* `ac_cv_foo' will be assigned the
32306# following values.
32307
32308_ACEOF
32309
32310# The following way of writing the cache mishandles newlines in values,
32311# but we know of no workaround that is simple, portable, and efficient.
32312# So, we kill variables containing newlines.
32313# Ultrix sh set writes to stderr and can't be redirected directly,
32314# and sets the high bit in the cache file unless we assign to the vars.
32315(
32316 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32317 eval ac_val=\$$ac_var
32318 case $ac_val in #(
32319 *${as_nl}*)
32320 case $ac_var in #(
32321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32323 esac
32324 case $ac_var in #(
32325 _ | IFS | as_nl) ;; #(
32326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32327 *) { eval $ac_var=; unset $ac_var;} ;;
32328 esac ;;
32329 esac
32330 done
32331
32332 (set) 2>&1 |
32333 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32334 *${as_nl}ac_space=\ *)
32335 # `set' does not quote correctly, so add quotes: double-quote
32336 # substitution turns \\\\ into \\, and sed turns \\ into \.
32337 sed -n \
32338 "s/'/'\\\\''/g;
32339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32340 ;; #(
32341 *)
32342 # `set' quotes correctly as required by POSIX, so do not add quotes.
32343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32344 ;;
32345 esac |
32346 sort
32347) |
32348 sed '
32349 /^ac_cv_env_/b end
32350 t clear
32351 :clear
32352 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32353 t end
32354 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32355 :end' >>confcache
32356if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32357 if test -w "$cache_file"; then
32358 test "x$cache_file" != "x/dev/null" &&
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32360$as_echo "$as_me: updating cache $cache_file" >&6;}
32361 cat confcache >$cache_file
32362 else
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32364$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32365 fi
32366fi
32367rm -f confcache
32368
32369test "x$prefix" = xNONE && prefix=$ac_default_prefix
32370# Let make expand exec_prefix.
32371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32372
32373DEFS=-DHAVE_CONFIG_H
32374
32375ac_libobjs=
32376ac_ltlibobjs=
32377U=
32378for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32379 # 1. Remove the extension, and $U if already installed.
32380 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32381 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32382 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32383 # will be set to the directory where LIBOBJS objects are built.
32384 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32385 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32386done
32387LIBOBJS=$ac_libobjs
32388
32389LTLIBOBJS=$ac_ltlibobjs
32390
32391
32392 if test -n "$EXEEXT"; then
32393 am__EXEEXT_TRUE=
32394 am__EXEEXT_FALSE='#'
32395else
32396 am__EXEEXT_TRUE='#'
32397 am__EXEEXT_FALSE=
32398fi
32399
32400if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32401 as_fn_error $? "conditional \"AMDEP\" was never defined.
32402Usually this means the macro was only invoked conditionally." "$LINENO" 5
32403fi
32404if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32405 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32406Usually this means the macro was only invoked conditionally." "$LINENO" 5
32407fi
32408if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
32409 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
32410Usually this means the macro was only invoked conditionally." "$LINENO" 5
32411fi
32412if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
32413 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
32414Usually this means the macro was only invoked conditionally." "$LINENO" 5
32415fi
32416if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32417 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32418Usually this means the macro was only invoked conditionally." "$LINENO" 5
32419fi
32420if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32421 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32422Usually this means the macro was only invoked conditionally." "$LINENO" 5
32423fi
32424if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32425 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32426Usually this means the macro was only invoked conditionally." "$LINENO" 5
32427fi
32428if test -z "${EFL_BUILD_DOC_TRUE}" && test -z "${EFL_BUILD_DOC_FALSE}"; then
32429 as_fn_error $? "conditional \"EFL_BUILD_DOC\" was never defined.
32430Usually this means the macro was only invoked conditionally." "$LINENO" 5
32431fi
32432if test -z "${EVAS_USE_LINEBREAK_TRUE}" && test -z "${EVAS_USE_LINEBREAK_FALSE}"; then
32433 as_fn_error $? "conditional \"EVAS_USE_LINEBREAK\" was never defined.
32434Usually this means the macro was only invoked conditionally." "$LINENO" 5
32435fi
32436
32437if test -z "${EVAS_CSERVE_TRUE}" && test -z "${EVAS_CSERVE_FALSE}"; then
32438 as_fn_error $? "conditional \"EVAS_CSERVE\" was never defined.
32439Usually this means the macro was only invoked conditionally." "$LINENO" 5
32440fi
32441if test -z "${BUILD_ENGINE_BUFFER_TRUE}" && test -z "${BUILD_ENGINE_BUFFER_FALSE}"; then
32442 as_fn_error $? "conditional \"BUILD_ENGINE_BUFFER\" was never defined.
32443Usually this means the macro was only invoked conditionally." "$LINENO" 5
32444fi
32445if test -z "${EVAS_STATIC_BUILD_BUFFER_TRUE}" && test -z "${EVAS_STATIC_BUILD_BUFFER_FALSE}"; then
32446 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_BUFFER\" was never defined.
32447Usually this means the macro was only invoked conditionally." "$LINENO" 5
32448fi
32449if test -z "${BUILD_ENGINE_SOFTWARE_GDI_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_GDI_FALSE}"; then
32450 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_GDI\" was never defined.
32451Usually this means the macro was only invoked conditionally." "$LINENO" 5
32452fi
32453if test -z "${EVAS_STATIC_BUILD_SOFTWARE_GDI_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_GDI_FALSE}"; then
32454 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_GDI\" was never defined.
32455Usually this means the macro was only invoked conditionally." "$LINENO" 5
32456fi
32457if test -z "${BUILD_ENGINE_SOFTWARE_DDRAW_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_DDRAW_FALSE}"; then
32458 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_DDRAW\" was never defined.
32459Usually this means the macro was only invoked conditionally." "$LINENO" 5
32460fi
32461if test -z "${EVAS_STATIC_BUILD_SOFTWARE_DDRAW_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_DDRAW_FALSE}"; then
32462 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_DDRAW\" was never defined.
32463Usually this means the macro was only invoked conditionally." "$LINENO" 5
32464fi
32465if test -z "${BUILD_ENGINE_DIRECT3D_TRUE}" && test -z "${BUILD_ENGINE_DIRECT3D_FALSE}"; then
32466 as_fn_error $? "conditional \"BUILD_ENGINE_DIRECT3D\" was never defined.
32467Usually this means the macro was only invoked conditionally." "$LINENO" 5
32468fi
32469if test -z "${EVAS_STATIC_BUILD_DIRECT3D_TRUE}" && test -z "${EVAS_STATIC_BUILD_DIRECT3D_FALSE}"; then
32470 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_DIRECT3D\" was never defined.
32471Usually this means the macro was only invoked conditionally." "$LINENO" 5
32472fi
32473if test -z "${BUILD_ENGINE_SOFTWARE_SDL_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_SDL_FALSE}"; then
32474 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_SDL\" was never defined.
32475Usually this means the macro was only invoked conditionally." "$LINENO" 5
32476fi
32477if test -z "${EVAS_STATIC_BUILD_SOFTWARE_SDL_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_SDL_FALSE}"; then
32478 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_SDL\" was never defined.
32479Usually this means the macro was only invoked conditionally." "$LINENO" 5
32480fi
32481if test -z "${BUILD_ENGINE_PSL1GHT_TRUE}" && test -z "${BUILD_ENGINE_PSL1GHT_FALSE}"; then
32482 as_fn_error $? "conditional \"BUILD_ENGINE_PSL1GHT\" was never defined.
32483Usually this means the macro was only invoked conditionally." "$LINENO" 5
32484fi
32485if test -z "${EVAS_STATIC_BUILD_PSL1GHT_TRUE}" && test -z "${EVAS_STATIC_BUILD_PSL1GHT_FALSE}"; then
32486 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PSL1GHT\" was never defined.
32487Usually this means the macro was only invoked conditionally." "$LINENO" 5
32488fi
32489if test -z "${BUILD_ENGINE_GL_SDL_TRUE}" && test -z "${BUILD_ENGINE_GL_SDL_FALSE}"; then
32490 as_fn_error $? "conditional \"BUILD_ENGINE_GL_SDL\" was never defined.
32491Usually this means the macro was only invoked conditionally." "$LINENO" 5
32492fi
32493if test -z "${EVAS_STATIC_BUILD_GL_SDL_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_SDL_FALSE}"; then
32494 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_SDL\" was never defined.
32495Usually this means the macro was only invoked conditionally." "$LINENO" 5
32496fi
32497if test -z "${BUILD_ENGINE_GL_COCOA_TRUE}" && test -z "${BUILD_ENGINE_GL_COCOA_FALSE}"; then
32498 as_fn_error $? "conditional \"BUILD_ENGINE_GL_COCOA\" was never defined.
32499Usually this means the macro was only invoked conditionally." "$LINENO" 5
32500fi
32501if test -z "${EVAS_STATIC_BUILD_GL_COCOA_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_COCOA_FALSE}"; then
32502 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_COCOA\" was never defined.
32503Usually this means the macro was only invoked conditionally." "$LINENO" 5
32504fi
32505if test -z "${BUILD_ENGINE_FB_TRUE}" && test -z "${BUILD_ENGINE_FB_FALSE}"; then
32506 as_fn_error $? "conditional \"BUILD_ENGINE_FB\" was never defined.
32507Usually this means the macro was only invoked conditionally." "$LINENO" 5
32508fi
32509if test -z "${EVAS_STATIC_BUILD_FB_TRUE}" && test -z "${EVAS_STATIC_BUILD_FB_FALSE}"; then
32510 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_FB\" was never defined.
32511Usually this means the macro was only invoked conditionally." "$LINENO" 5
32512fi
32513if test -z "${BUILD_ENGINE_DIRECTFB_TRUE}" && test -z "${BUILD_ENGINE_DIRECTFB_FALSE}"; then
32514 as_fn_error $? "conditional \"BUILD_ENGINE_DIRECTFB\" was never defined.
32515Usually this means the macro was only invoked conditionally." "$LINENO" 5
32516fi
32517if test -z "${EVAS_STATIC_BUILD_DIRECTFB_TRUE}" && test -z "${EVAS_STATIC_BUILD_DIRECTFB_FALSE}"; then
32518 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_DIRECTFB\" was never defined.
32519Usually this means the macro was only invoked conditionally." "$LINENO" 5
32520fi
32521if test -z "${BUILD_ENGINE_SOFTWARE_8_X11_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_8_X11_FALSE}"; then
32522 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_8_X11\" was never defined.
32523Usually this means the macro was only invoked conditionally." "$LINENO" 5
32524fi
32525if test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_X11_FALSE}"; then
32526 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_8_X11\" was never defined.
32527Usually this means the macro was only invoked conditionally." "$LINENO" 5
32528fi
32529if test -z "${BUILD_ENGINE_SOFTWARE_16_X11_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_X11_FALSE}"; then
32530 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_X11\" was never defined.
32531Usually this means the macro was only invoked conditionally." "$LINENO" 5
32532fi
32533if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_X11_FALSE}"; then
32534 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_X11\" was never defined.
32535Usually this means the macro was only invoked conditionally." "$LINENO" 5
32536fi
32537if test -z "${BUILD_ENGINE_SOFTWARE_16_DDRAW_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_DDRAW_FALSE}"; then
32538 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_DDRAW\" was never defined.
32539Usually this means the macro was only invoked conditionally." "$LINENO" 5
32540fi
32541if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW_FALSE}"; then
32542 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_DDRAW\" was never defined.
32543Usually this means the macro was only invoked conditionally." "$LINENO" 5
32544fi
32545if test -z "${BUILD_ENGINE_SOFTWARE_16_WINCE_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_WINCE_FALSE}"; then
32546 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_WINCE\" was never defined.
32547Usually this means the macro was only invoked conditionally." "$LINENO" 5
32548fi
32549if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_WINCE_FALSE}"; then
32550 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_WINCE\" was never defined.
32551Usually this means the macro was only invoked conditionally." "$LINENO" 5
32552fi
32553if test -z "${BUILD_ENGINE_SOFTWARE_16_SDL_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_SDL_FALSE}"; then
32554 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16_SDL\" was never defined.
32555Usually this means the macro was only invoked conditionally." "$LINENO" 5
32556fi
32557if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_SDL_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_SDL_FALSE}"; then
32558 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16_SDL\" was never defined.
32559Usually this means the macro was only invoked conditionally." "$LINENO" 5
32560fi
32561if test -z "${EVAS_STATIC_BUILD_SOFTWARE_GENERIC_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_GENERIC_FALSE}"; then
32562 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_GENERIC\" was never defined.
32563Usually this means the macro was only invoked conditionally." "$LINENO" 5
32564fi
32565if test -z "${BUILD_ENGINE_SOFTWARE_XCB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XCB_FALSE}"; then
32566 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XCB\" was never defined.
32567Usually this means the macro was only invoked conditionally." "$LINENO" 5
32568fi
32569if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE}"; then
32570 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XCB\" was never defined.
32571Usually this means the macro was only invoked conditionally." "$LINENO" 5
32572fi
32573if test -z "${BUILD_ENGINE_SOFTWARE_XLIB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XLIB_FALSE}"; then
32574 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XLIB\" was never defined.
32575Usually this means the macro was only invoked conditionally." "$LINENO" 5
32576fi
32577if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE}"; then
32578 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XLIB\" was never defined.
32579Usually this means the macro was only invoked conditionally." "$LINENO" 5
32580fi
32581if test -z "${BUILD_ENGINE_SOFTWARE_XLIB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XLIB_FALSE}"; then
32582 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XLIB\" was never defined.
32583Usually this means the macro was only invoked conditionally." "$LINENO" 5
32584fi
32585if test -z "${BUILD_ENGINE_SOFTWARE_XCB_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_XCB_FALSE}"; then
32586 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_XCB\" was never defined.
32587Usually this means the macro was only invoked conditionally." "$LINENO" 5
32588fi
32589if test -z "${BUILD_ENGINE_SOFTWARE_X11_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_X11_FALSE}"; then
32590 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_X11\" was never defined.
32591Usually this means the macro was only invoked conditionally." "$LINENO" 5
32592fi
32593if test -z "${EVAS_STATIC_BUILD_SOFTWARE_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_X11_FALSE}"; then
32594 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_X11\" was never defined.
32595Usually this means the macro was only invoked conditionally." "$LINENO" 5
32596fi
32597if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XLIB_FALSE}"; then
32598 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XLIB\" was never defined.
32599Usually this means the macro was only invoked conditionally." "$LINENO" 5
32600fi
32601if test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_XCB_FALSE}"; then
32602 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_XCB\" was never defined.
32603Usually this means the macro was only invoked conditionally." "$LINENO" 5
32604fi
32605if test -z "${BUILD_ENGINE_GL_XCB_TRUE}" && test -z "${BUILD_ENGINE_GL_XCB_FALSE}"; then
32606 as_fn_error $? "conditional \"BUILD_ENGINE_GL_XCB\" was never defined.
32607Usually this means the macro was only invoked conditionally." "$LINENO" 5
32608fi
32609if test -z "${EVAS_STATIC_BUILD_GL_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XCB_FALSE}"; then
32610 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XCB\" was never defined.
32611Usually this means the macro was only invoked conditionally." "$LINENO" 5
32612fi
32613if test -z "${BUILD_ENGINE_GL_XLIB_TRUE}" && test -z "${BUILD_ENGINE_GL_XLIB_FALSE}"; then
32614 as_fn_error $? "conditional \"BUILD_ENGINE_GL_XLIB\" was never defined.
32615Usually this means the macro was only invoked conditionally." "$LINENO" 5
32616fi
32617if test -z "${EVAS_STATIC_BUILD_GL_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XLIB_FALSE}"; then
32618 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XLIB\" was never defined.
32619Usually this means the macro was only invoked conditionally." "$LINENO" 5
32620fi
32621if test -z "${BUILD_ENGINE_GL_XLIB_TRUE}" && test -z "${BUILD_ENGINE_GL_XLIB_FALSE}"; then
32622 as_fn_error $? "conditional \"BUILD_ENGINE_GL_XLIB\" was never defined.
32623Usually this means the macro was only invoked conditionally." "$LINENO" 5
32624fi
32625if test -z "${BUILD_ENGINE_GL_XCB_TRUE}" && test -z "${BUILD_ENGINE_GL_XCB_FALSE}"; then
32626 as_fn_error $? "conditional \"BUILD_ENGINE_GL_XCB\" was never defined.
32627Usually this means the macro was only invoked conditionally." "$LINENO" 5
32628fi
32629if test -z "${BUILD_ENGINE_GL_X11_TRUE}" && test -z "${BUILD_ENGINE_GL_X11_FALSE}"; then
32630 as_fn_error $? "conditional \"BUILD_ENGINE_GL_X11\" was never defined.
32631Usually this means the macro was only invoked conditionally." "$LINENO" 5
32632fi
32633if test -z "${EVAS_STATIC_BUILD_GL_X11_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_X11_FALSE}"; then
32634 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_X11\" was never defined.
32635Usually this means the macro was only invoked conditionally." "$LINENO" 5
32636fi
32637if test -z "${EVAS_STATIC_BUILD_GL_XLIB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XLIB_FALSE}"; then
32638 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XLIB\" was never defined.
32639Usually this means the macro was only invoked conditionally." "$LINENO" 5
32640fi
32641if test -z "${EVAS_STATIC_BUILD_GL_XCB_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_XCB_FALSE}"; then
32642 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_XCB\" was never defined.
32643Usually this means the macro was only invoked conditionally." "$LINENO" 5
32644fi
32645if test -z "${BUILD_ENGINE_GL_COMMON_TRUE}" && test -z "${BUILD_ENGINE_GL_COMMON_FALSE}"; then
32646 as_fn_error $? "conditional \"BUILD_ENGINE_GL_COMMON\" was never defined.
32647Usually this means the macro was only invoked conditionally." "$LINENO" 5
32648fi
32649if test -z "${EVAS_STATIC_BUILD_GL_COMMON_TRUE}" && test -z "${EVAS_STATIC_BUILD_GL_COMMON_FALSE}"; then
32650 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GL_COMMON\" was never defined.
32651Usually this means the macro was only invoked conditionally." "$LINENO" 5
32652fi
32653if test -z "${BUILD_ENGINE_SOFTWARE_16_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_16_FALSE}"; then
32654 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_16\" was never defined.
32655Usually this means the macro was only invoked conditionally." "$LINENO" 5
32656fi
32657if test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_16_FALSE}"; then
32658 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_16\" was never defined.
32659Usually this means the macro was only invoked conditionally." "$LINENO" 5
32660fi
32661if test -z "${BUILD_ENGINE_SOFTWARE_8_TRUE}" && test -z "${BUILD_ENGINE_SOFTWARE_8_FALSE}"; then
32662 as_fn_error $? "conditional \"BUILD_ENGINE_SOFTWARE_8\" was never defined.
32663Usually this means the macro was only invoked conditionally." "$LINENO" 5
32664fi
32665if test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_TRUE}" && test -z "${EVAS_STATIC_BUILD_SOFTWARE_8_FALSE}"; then
32666 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SOFTWARE_8\" was never defined.
32667Usually this means the macro was only invoked conditionally." "$LINENO" 5
32668fi
32669if test -z "${BUILD_LOADER_EDB_TRUE}" && test -z "${BUILD_LOADER_EDB_FALSE}"; then
32670 as_fn_error $? "conditional \"BUILD_LOADER_EDB\" was never defined.
32671Usually this means the macro was only invoked conditionally." "$LINENO" 5
32672fi
32673if test -z "${EVAS_STATIC_BUILD_EDB_TRUE}" && test -z "${EVAS_STATIC_BUILD_EDB_FALSE}"; then
32674 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_EDB\" was never defined.
32675Usually this means the macro was only invoked conditionally." "$LINENO" 5
32676fi
32677if test -z "${BUILD_LOADER_EET_TRUE}" && test -z "${BUILD_LOADER_EET_FALSE}"; then
32678 as_fn_error $? "conditional \"BUILD_LOADER_EET\" was never defined.
32679Usually this means the macro was only invoked conditionally." "$LINENO" 5
32680fi
32681if test -z "${EVAS_STATIC_BUILD_EET_TRUE}" && test -z "${EVAS_STATIC_BUILD_EET_FALSE}"; then
32682 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_EET\" was never defined.
32683Usually this means the macro was only invoked conditionally." "$LINENO" 5
32684fi
32685if test -z "${BUILD_LOADER_GIF_TRUE}" && test -z "${BUILD_LOADER_GIF_FALSE}"; then
32686 as_fn_error $? "conditional \"BUILD_LOADER_GIF\" was never defined.
32687Usually this means the macro was only invoked conditionally." "$LINENO" 5
32688fi
32689if test -z "${EVAS_STATIC_BUILD_GIF_TRUE}" && test -z "${EVAS_STATIC_BUILD_GIF_FALSE}"; then
32690 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GIF\" was never defined.
32691Usually this means the macro was only invoked conditionally." "$LINENO" 5
32692fi
32693if test -z "${BUILD_LOADER_JPEG_TRUE}" && test -z "${BUILD_LOADER_JPEG_FALSE}"; then
32694 as_fn_error $? "conditional \"BUILD_LOADER_JPEG\" was never defined.
32695Usually this means the macro was only invoked conditionally." "$LINENO" 5
32696fi
32697if test -z "${EVAS_STATIC_BUILD_JPEG_TRUE}" && test -z "${EVAS_STATIC_BUILD_JPEG_FALSE}"; then
32698 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_JPEG\" was never defined.
32699Usually this means the macro was only invoked conditionally." "$LINENO" 5
32700fi
32701if test -z "${BUILD_SAVER_JPEG_TRUE}" && test -z "${BUILD_SAVER_JPEG_FALSE}"; then
32702 as_fn_error $? "conditional \"BUILD_SAVER_JPEG\" was never defined.
32703Usually this means the macro was only invoked conditionally." "$LINENO" 5
32704fi
32705if test -z "${BUILD_LOADER_PMAPS_TRUE}" && test -z "${BUILD_LOADER_PMAPS_FALSE}"; then
32706 as_fn_error $? "conditional \"BUILD_LOADER_PMAPS\" was never defined.
32707Usually this means the macro was only invoked conditionally." "$LINENO" 5
32708fi
32709if test -z "${EVAS_STATIC_BUILD_PMAPS_TRUE}" && test -z "${EVAS_STATIC_BUILD_PMAPS_FALSE}"; then
32710 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PMAPS\" was never defined.
32711Usually this means the macro was only invoked conditionally." "$LINENO" 5
32712fi
32713if test -z "${BUILD_LOADER_PNG_TRUE}" && test -z "${BUILD_LOADER_PNG_FALSE}"; then
32714 as_fn_error $? "conditional \"BUILD_LOADER_PNG\" was never defined.
32715Usually this means the macro was only invoked conditionally." "$LINENO" 5
32716fi
32717if test -z "${EVAS_STATIC_BUILD_PNG_TRUE}" && test -z "${EVAS_STATIC_BUILD_PNG_FALSE}"; then
32718 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PNG\" was never defined.
32719Usually this means the macro was only invoked conditionally." "$LINENO" 5
32720fi
32721if test -z "${BUILD_LOADER_SVG_TRUE}" && test -z "${BUILD_LOADER_SVG_FALSE}"; then
32722 as_fn_error $? "conditional \"BUILD_LOADER_SVG\" was never defined.
32723Usually this means the macro was only invoked conditionally." "$LINENO" 5
32724fi
32725if test -z "${EVAS_STATIC_BUILD_SVG_TRUE}" && test -z "${EVAS_STATIC_BUILD_SVG_FALSE}"; then
32726 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_SVG\" was never defined.
32727Usually this means the macro was only invoked conditionally." "$LINENO" 5
32728fi
32729if test -z "${BUILD_LOADER_TIFF_TRUE}" && test -z "${BUILD_LOADER_TIFF_FALSE}"; then
32730 as_fn_error $? "conditional \"BUILD_LOADER_TIFF\" was never defined.
32731Usually this means the macro was only invoked conditionally." "$LINENO" 5
32732fi
32733if test -z "${EVAS_STATIC_BUILD_TIFF_TRUE}" && test -z "${EVAS_STATIC_BUILD_TIFF_FALSE}"; then
32734 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_TIFF\" was never defined.
32735Usually this means the macro was only invoked conditionally." "$LINENO" 5
32736fi
32737if test -z "${BUILD_LOADER_XPM_TRUE}" && test -z "${BUILD_LOADER_XPM_FALSE}"; then
32738 as_fn_error $? "conditional \"BUILD_LOADER_XPM\" was never defined.
32739Usually this means the macro was only invoked conditionally." "$LINENO" 5
32740fi
32741if test -z "${EVAS_STATIC_BUILD_XPM_TRUE}" && test -z "${EVAS_STATIC_BUILD_XPM_FALSE}"; then
32742 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_XPM\" was never defined.
32743Usually this means the macro was only invoked conditionally." "$LINENO" 5
32744fi
32745if test -z "${BUILD_LOADER_BMP_TRUE}" && test -z "${BUILD_LOADER_BMP_FALSE}"; then
32746 as_fn_error $? "conditional \"BUILD_LOADER_BMP\" was never defined.
32747Usually this means the macro was only invoked conditionally." "$LINENO" 5
32748fi
32749if test -z "${EVAS_STATIC_BUILD_BMP_TRUE}" && test -z "${EVAS_STATIC_BUILD_BMP_FALSE}"; then
32750 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_BMP\" was never defined.
32751Usually this means the macro was only invoked conditionally." "$LINENO" 5
32752fi
32753if test -z "${BUILD_LOADER_TGA_TRUE}" && test -z "${BUILD_LOADER_TGA_FALSE}"; then
32754 as_fn_error $? "conditional \"BUILD_LOADER_TGA\" was never defined.
32755Usually this means the macro was only invoked conditionally." "$LINENO" 5
32756fi
32757if test -z "${EVAS_STATIC_BUILD_TGA_TRUE}" && test -z "${EVAS_STATIC_BUILD_TGA_FALSE}"; then
32758 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_TGA\" was never defined.
32759Usually this means the macro was only invoked conditionally." "$LINENO" 5
32760fi
32761if test -z "${BUILD_LOADER_WBMP_TRUE}" && test -z "${BUILD_LOADER_WBMP_FALSE}"; then
32762 as_fn_error $? "conditional \"BUILD_LOADER_WBMP\" was never defined.
32763Usually this means the macro was only invoked conditionally." "$LINENO" 5
32764fi
32765if test -z "${EVAS_STATIC_BUILD_WBMP_TRUE}" && test -z "${EVAS_STATIC_BUILD_WBMP_FALSE}"; then
32766 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_WBMP\" was never defined.
32767Usually this means the macro was only invoked conditionally." "$LINENO" 5
32768fi
32769if test -z "${BUILD_LOADER_ICO_TRUE}" && test -z "${BUILD_LOADER_ICO_FALSE}"; then
32770 as_fn_error $? "conditional \"BUILD_LOADER_ICO\" was never defined.
32771Usually this means the macro was only invoked conditionally." "$LINENO" 5
32772fi
32773if test -z "${EVAS_STATIC_BUILD_ICO_TRUE}" && test -z "${EVAS_STATIC_BUILD_ICO_FALSE}"; then
32774 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_ICO\" was never defined.
32775Usually this means the macro was only invoked conditionally." "$LINENO" 5
32776fi
32777if test -z "${BUILD_LOADER_PSD_TRUE}" && test -z "${BUILD_LOADER_PSD_FALSE}"; then
32778 as_fn_error $? "conditional \"BUILD_LOADER_PSD\" was never defined.
32779Usually this means the macro was only invoked conditionally." "$LINENO" 5
32780fi
32781if test -z "${EVAS_STATIC_BUILD_PSD_TRUE}" && test -z "${EVAS_STATIC_BUILD_PSD_FALSE}"; then
32782 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_PSD\" was never defined.
32783Usually this means the macro was only invoked conditionally." "$LINENO" 5
32784fi
32785if test -z "${BUILD_LOADER_GENERIC_TRUE}" && test -z "${BUILD_LOADER_GENERIC_FALSE}"; then
32786 as_fn_error $? "conditional \"BUILD_LOADER_GENERIC\" was never defined.
32787Usually this means the macro was only invoked conditionally." "$LINENO" 5
32788fi
32789if test -z "${EVAS_STATIC_BUILD_GENERIC_TRUE}" && test -z "${EVAS_STATIC_BUILD_GENERIC_FALSE}"; then
32790 as_fn_error $? "conditional \"EVAS_STATIC_BUILD_GENERIC\" was never defined.
32791Usually this means the macro was only invoked conditionally." "$LINENO" 5
32792fi
32793if test -z "${EVAS_MAGIC_DEBUG_TRUE}" && test -z "${EVAS_MAGIC_DEBUG_FALSE}"; then
32794 as_fn_error $? "conditional \"EVAS_MAGIC_DEBUG\" was never defined.
32795Usually this means the macro was only invoked conditionally." "$LINENO" 5
32796fi
32797if test -z "${WORD_CACHE_TRUE}" && test -z "${WORD_CACHE_FALSE}"; then
32798 as_fn_error $? "conditional \"WORD_CACHE\" was never defined.
32799Usually this means the macro was only invoked conditionally." "$LINENO" 5
32800fi
32801if test -z "${METRIC_CACHE_TRUE}" && test -z "${METRIC_CACHE_FALSE}"; then
32802 as_fn_error $? "conditional \"METRIC_CACHE\" was never defined.
32803Usually this means the macro was only invoked conditionally." "$LINENO" 5
32804fi
32805if test -z "${INSTALL_EXAMPLES_TRUE}" && test -z "${INSTALL_EXAMPLES_FALSE}"; then
32806 as_fn_error $? "conditional \"INSTALL_EXAMPLES\" was never defined.
32807Usually this means the macro was only invoked conditionally." "$LINENO" 5
32808fi
32809if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
32810 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
32811Usually this means the macro was only invoked conditionally." "$LINENO" 5
32812fi
32813if test -z "${EFL_ENABLE_TESTS_TRUE}" && test -z "${EFL_ENABLE_TESTS_FALSE}"; then
32814 as_fn_error $? "conditional \"EFL_ENABLE_TESTS\" was never defined.
32815Usually this means the macro was only invoked conditionally." "$LINENO" 5
32816fi
32817if test -z "${EFL_ENABLE_COVERAGE_TRUE}" && test -z "${EFL_ENABLE_COVERAGE_FALSE}"; then
32818 as_fn_error $? "conditional \"EFL_ENABLE_COVERAGE\" was never defined.
32819Usually this means the macro was only invoked conditionally." "$LINENO" 5
32820fi
32821
32822: ${CONFIG_STATUS=./config.status}
32823ac_write_fail=0
32824ac_clean_files_save=$ac_clean_files
32825ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32826{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32827$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32828as_write_fail=0
32829cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32830#! $SHELL
32831# Generated by $as_me.
32832# Run this file to recreate the current configuration.
32833# Compiler output produced by configure, useful for debugging
32834# configure, is in config.log if it exists.
32835
32836debug=false
32837ac_cs_recheck=false
32838ac_cs_silent=false
32839
32840SHELL=\${CONFIG_SHELL-$SHELL}
32841export SHELL
32842_ASEOF
32843cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32844## -------------------- ##
32845## M4sh Initialization. ##
32846## -------------------- ##
32847
32848# Be more Bourne compatible
32849DUALCASE=1; export DUALCASE # for MKS sh
32850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32851 emulate sh
32852 NULLCMD=:
32853 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32854 # is contrary to our usage. Disable this feature.
32855 alias -g '${1+"$@"}'='"$@"'
32856 setopt NO_GLOB_SUBST
32857else
32858 case `(set -o) 2>/dev/null` in #(
32859 *posix*) :
32860 set -o posix ;; #(
32861 *) :
32862 ;;
32863esac
32864fi
32865
32866
32867as_nl='
32868'
32869export as_nl
32870# Printing a long string crashes Solaris 7 /usr/bin/printf.
32871as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32872as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32873as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32874# Prefer a ksh shell builtin over an external printf program on Solaris,
32875# but without wasting forks for bash or zsh.
32876if test -z "$BASH_VERSION$ZSH_VERSION" \
32877 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32878 as_echo='print -r --'
32879 as_echo_n='print -rn --'
32880elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32881 as_echo='printf %s\n'
32882 as_echo_n='printf %s'
32883else
32884 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32885 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32886 as_echo_n='/usr/ucb/echo -n'
32887 else
32888 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32889 as_echo_n_body='eval
32890 arg=$1;
32891 case $arg in #(
32892 *"$as_nl"*)
32893 expr "X$arg" : "X\\(.*\\)$as_nl";
32894 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32895 esac;
32896 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32897 '
32898 export as_echo_n_body
32899 as_echo_n='sh -c $as_echo_n_body as_echo'
32900 fi
32901 export as_echo_body
32902 as_echo='sh -c $as_echo_body as_echo'
32903fi
32904
32905# The user is always right.
32906if test "${PATH_SEPARATOR+set}" != set; then
32907 PATH_SEPARATOR=:
32908 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32909 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32910 PATH_SEPARATOR=';'
32911 }
32912fi
32913
32914
32915# IFS
32916# We need space, tab and new line, in precisely that order. Quoting is
32917# there to prevent editors from complaining about space-tab.
32918# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32919# splitting by setting IFS to empty value.)
32920IFS=" "" $as_nl"
32921
32922# Find who we are. Look in the path if we contain no directory separator.
32923case $0 in #((
32924 *[\\/]* ) as_myself=$0 ;;
32925 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32926for as_dir in $PATH
32927do
32928 IFS=$as_save_IFS
32929 test -z "$as_dir" && as_dir=.
32930 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32931 done
32932IFS=$as_save_IFS
32933
32934 ;;
32935esac
32936# We did not find ourselves, most probably we were run as `sh COMMAND'
32937# in which case we are not to be found in the path.
32938if test "x$as_myself" = x; then
32939 as_myself=$0
32940fi
32941if test ! -f "$as_myself"; then
32942 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32943 exit 1
32944fi
32945
32946# Unset variables that we do not need and which cause bugs (e.g. in
32947# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32948# suppresses any "Segmentation fault" message there. '((' could
32949# trigger a bug in pdksh 5.2.14.
32950for as_var in BASH_ENV ENV MAIL MAILPATH
32951do eval test x\${$as_var+set} = xset \
32952 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32953done
32954PS1='$ '
32955PS2='> '
32956PS4='+ '
32957
32958# NLS nuisances.
32959LC_ALL=C
32960export LC_ALL
32961LANGUAGE=C
32962export LANGUAGE
32963
32964# CDPATH.
32965(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32966
32967
32968# as_fn_error STATUS ERROR [LINENO LOG_FD]
32969# ----------------------------------------
32970# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32971# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32972# script with STATUS, using 1 if that was 0.
32973as_fn_error ()
32974{
32975 as_status=$1; test $as_status -eq 0 && as_status=1
32976 if test "$4"; then
32977 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32978 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32979 fi
32980 $as_echo "$as_me: error: $2" >&2
32981 as_fn_exit $as_status
32982} # as_fn_error
32983
32984
32985# as_fn_set_status STATUS
32986# -----------------------
32987# Set $? to STATUS, without forking.
32988as_fn_set_status ()
32989{
32990 return $1
32991} # as_fn_set_status
32992
32993# as_fn_exit STATUS
32994# -----------------
32995# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32996as_fn_exit ()
32997{
32998 set +e
32999 as_fn_set_status $1
33000 exit $1
33001} # as_fn_exit
33002
33003# as_fn_unset VAR
33004# ---------------
33005# Portably unset VAR.
33006as_fn_unset ()
33007{
33008 { eval $1=; unset $1;}
33009}
33010as_unset=as_fn_unset
33011# as_fn_append VAR VALUE
33012# ----------------------
33013# Append the text in VALUE to the end of the definition contained in VAR. Take
33014# advantage of any shell optimizations that allow amortized linear growth over
33015# repeated appends, instead of the typical quadratic growth present in naive
33016# implementations.
33017if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33018 eval 'as_fn_append ()
33019 {
33020 eval $1+=\$2
33021 }'
33022else
33023 as_fn_append ()
33024 {
33025 eval $1=\$$1\$2
33026 }
33027fi # as_fn_append
33028
33029# as_fn_arith ARG...
33030# ------------------
33031# Perform arithmetic evaluation on the ARGs, and store the result in the
33032# global $as_val. Take advantage of shells that can avoid forks. The arguments
33033# must be portable across $(()) and expr.
33034if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33035 eval 'as_fn_arith ()
33036 {
33037 as_val=$(( $* ))
33038 }'
33039else
33040 as_fn_arith ()
33041 {
33042 as_val=`expr "$@" || test $? -eq 1`
33043 }
33044fi # as_fn_arith
33045
33046
33047if expr a : '\(a\)' >/dev/null 2>&1 &&
33048 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33049 as_expr=expr
33050else
33051 as_expr=false
33052fi
33053
33054if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33055 as_basename=basename
33056else
33057 as_basename=false
33058fi
33059
33060if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33061 as_dirname=dirname
33062else
33063 as_dirname=false
33064fi
33065
33066as_me=`$as_basename -- "$0" ||
33067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33068 X"$0" : 'X\(//\)$' \| \
33069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33070$as_echo X/"$0" |
33071 sed '/^.*\/\([^/][^/]*\)\/*$/{
33072 s//\1/
33073 q
33074 }
33075 /^X\/\(\/\/\)$/{
33076 s//\1/
33077 q
33078 }
33079 /^X\/\(\/\).*/{
33080 s//\1/
33081 q
33082 }
33083 s/.*/./; q'`
33084
33085# Avoid depending upon Character Ranges.
33086as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33087as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33088as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33089as_cr_digits='0123456789'
33090as_cr_alnum=$as_cr_Letters$as_cr_digits
33091
33092ECHO_C= ECHO_N= ECHO_T=
33093case `echo -n x` in #(((((
33094-n*)
33095 case `echo 'xy\c'` in
33096 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33097 xy) ECHO_C='\c';;
33098 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33099 ECHO_T=' ';;
33100 esac;;
33101*)
33102 ECHO_N='-n';;
33103esac
33104
33105rm -f conf$$ conf$$.exe conf$$.file
33106if test -d conf$$.dir; then
33107 rm -f conf$$.dir/conf$$.file
33108else
33109 rm -f conf$$.dir
33110 mkdir conf$$.dir 2>/dev/null
33111fi
33112if (echo >conf$$.file) 2>/dev/null; then
33113 if ln -s conf$$.file conf$$ 2>/dev/null; then
33114 as_ln_s='ln -s'
33115 # ... but there are two gotchas:
33116 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33117 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33118 # In both cases, we have to default to `cp -p'.
33119 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33120 as_ln_s='cp -p'
33121 elif ln conf$$.file conf$$ 2>/dev/null; then
33122 as_ln_s=ln
33123 else
33124 as_ln_s='cp -p'
33125 fi
33126else
33127 as_ln_s='cp -p'
33128fi
33129rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33130rmdir conf$$.dir 2>/dev/null
33131
33132
33133# as_fn_mkdir_p
33134# -------------
33135# Create "$as_dir" as a directory, including parents if necessary.
33136as_fn_mkdir_p ()
33137{
33138
33139 case $as_dir in #(
33140 -*) as_dir=./$as_dir;;
33141 esac
33142 test -d "$as_dir" || eval $as_mkdir_p || {
33143 as_dirs=
33144 while :; do
33145 case $as_dir in #(
33146 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33147 *) as_qdir=$as_dir;;
33148 esac
33149 as_dirs="'$as_qdir' $as_dirs"
33150 as_dir=`$as_dirname -- "$as_dir" ||
33151$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33152 X"$as_dir" : 'X\(//\)[^/]' \| \
33153 X"$as_dir" : 'X\(//\)$' \| \
33154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33155$as_echo X"$as_dir" |
33156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33157 s//\1/
33158 q
33159 }
33160 /^X\(\/\/\)[^/].*/{
33161 s//\1/
33162 q
33163 }
33164 /^X\(\/\/\)$/{
33165 s//\1/
33166 q
33167 }
33168 /^X\(\/\).*/{
33169 s//\1/
33170 q
33171 }
33172 s/.*/./; q'`
33173 test -d "$as_dir" && break
33174 done
33175 test -z "$as_dirs" || eval "mkdir $as_dirs"
33176 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33177
33178
33179} # as_fn_mkdir_p
33180if mkdir -p . 2>/dev/null; then
33181 as_mkdir_p='mkdir -p "$as_dir"'
33182else
33183 test -d ./-p && rmdir ./-p
33184 as_mkdir_p=false
33185fi
33186
33187if test -x / >/dev/null 2>&1; then
33188 as_test_x='test -x'
33189else
33190 if ls -dL / >/dev/null 2>&1; then
33191 as_ls_L_option=L
33192 else
33193 as_ls_L_option=
33194 fi
33195 as_test_x='
33196 eval sh -c '\''
33197 if test -d "$1"; then
33198 test -d "$1/.";
33199 else
33200 case $1 in #(
33201 -*)set "./$1";;
33202 esac;
33203 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33204 ???[sx]*):;;*)false;;esac;fi
33205 '\'' sh
33206 '
33207fi
33208as_executable_p=$as_test_x
33209
33210# Sed expression to map a string onto a valid CPP name.
33211as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33212
33213# Sed expression to map a string onto a valid variable name.
33214as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33215
33216
33217exec 6>&1
33218## ----------------------------------- ##
33219## Main body of $CONFIG_STATUS script. ##
33220## ----------------------------------- ##
33221_ASEOF
33222test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33223
33224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33225# Save the log message, to keep $0 and so on meaningful, and to
33226# report actual input values of CONFIG_FILES etc. instead of their
33227# values after options handling.
33228ac_log="
33229This file was extended by evas $as_me 1.1.0, which was
33230generated by GNU Autoconf 2.67. Invocation command line was
33231
33232 CONFIG_FILES = $CONFIG_FILES
33233 CONFIG_HEADERS = $CONFIG_HEADERS
33234 CONFIG_LINKS = $CONFIG_LINKS
33235 CONFIG_COMMANDS = $CONFIG_COMMANDS
33236 $ $0 $@
33237
33238on `(hostname || uname -n) 2>/dev/null | sed 1q`
33239"
33240
33241_ACEOF
33242
33243case $ac_config_files in *"
33244"*) set x $ac_config_files; shift; ac_config_files=$*;;
33245esac
33246
33247case $ac_config_headers in *"
33248"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33249esac
33250
33251
33252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33253# Files that config.status was made for.
33254config_files="$ac_config_files"
33255config_headers="$ac_config_headers"
33256config_commands="$ac_config_commands"
33257
33258_ACEOF
33259
33260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33261ac_cs_usage="\
33262\`$as_me' instantiates files and other configuration actions
33263from templates according to the current configuration. Unless the files
33264and actions are specified as TAGs, all are instantiated by default.
33265
33266Usage: $0 [OPTION]... [TAG]...
33267
33268 -h, --help print this help, then exit
33269 -V, --version print version number and configuration settings, then exit
33270 --config print configuration, then exit
33271 -q, --quiet, --silent
33272 do not print progress messages
33273 -d, --debug don't remove temporary files
33274 --recheck update $as_me by reconfiguring in the same conditions
33275 --file=FILE[:TEMPLATE]
33276 instantiate the configuration file FILE
33277 --header=FILE[:TEMPLATE]
33278 instantiate the configuration header FILE
33279
33280Configuration files:
33281$config_files
33282
33283Configuration headers:
33284$config_headers
33285
33286Configuration commands:
33287$config_commands
33288
33289Report bugs to <enlightenment-devel@lists.sourceforge.net>."
33290
33291_ACEOF
33292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33293ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33294ac_cs_version="\\
33295evas config.status 1.1.0
33296configured by $0, generated by GNU Autoconf 2.67,
33297 with options \\"\$ac_cs_config\\"
33298
33299Copyright (C) 2010 Free Software Foundation, Inc.
33300This config.status script is free software; the Free Software Foundation
33301gives unlimited permission to copy, distribute and modify it."
33302
33303ac_pwd='$ac_pwd'
33304srcdir='$srcdir'
33305INSTALL='$INSTALL'
33306MKDIR_P='$MKDIR_P'
33307AWK='$AWK'
33308test -n "\$AWK" || AWK=awk
33309_ACEOF
33310
33311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33312# The default lists apply if the user does not specify any file.
33313ac_need_defaults=:
33314while test $# != 0
33315do
33316 case $1 in
33317 --*=?*)
33318 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33319 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33320 ac_shift=:
33321 ;;
33322 --*=)
33323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33324 ac_optarg=
33325 ac_shift=:
33326 ;;
33327 *)
33328 ac_option=$1
33329 ac_optarg=$2
33330 ac_shift=shift
33331 ;;
33332 esac
33333
33334 case $ac_option in
33335 # Handling of the options.
33336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33337 ac_cs_recheck=: ;;
33338 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33339 $as_echo "$ac_cs_version"; exit ;;
33340 --config | --confi | --conf | --con | --co | --c )
33341 $as_echo "$ac_cs_config"; exit ;;
33342 --debug | --debu | --deb | --de | --d | -d )
33343 debug=: ;;
33344 --file | --fil | --fi | --f )
33345 $ac_shift
33346 case $ac_optarg in
33347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33348 '') as_fn_error $? "missing file argument" ;;
33349 esac
33350 as_fn_append CONFIG_FILES " '$ac_optarg'"
33351 ac_need_defaults=false;;
33352 --header | --heade | --head | --hea )
33353 $ac_shift
33354 case $ac_optarg in
33355 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33356 esac
33357 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33358 ac_need_defaults=false;;
33359 --he | --h)
33360 # Conflict between --help and --header
33361 as_fn_error $? "ambiguous option: \`$1'
33362Try \`$0 --help' for more information.";;
33363 --help | --hel | -h )
33364 $as_echo "$ac_cs_usage"; exit ;;
33365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33366 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33367 ac_cs_silent=: ;;
33368
33369 # This is an error.
33370 -*) as_fn_error $? "unrecognized option: \`$1'
33371Try \`$0 --help' for more information." ;;
33372
33373 *) as_fn_append ac_config_targets " $1"
33374 ac_need_defaults=false ;;
33375
33376 esac
33377 shift
33378done
33379
33380ac_configure_extra_args=
33381
33382if $ac_cs_silent; then
33383 exec 6>/dev/null
33384 ac_configure_extra_args="$ac_configure_extra_args --silent"
33385fi
33386
33387_ACEOF
33388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33389if \$ac_cs_recheck; then
33390 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33391 shift
33392 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33393 CONFIG_SHELL='$SHELL'
33394 export CONFIG_SHELL
33395 exec "\$@"
33396fi
33397
33398_ACEOF
33399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33400exec 5>>config.log
33401{
33402 echo
33403 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33404## Running $as_me. ##
33405_ASBOX
33406 $as_echo "$ac_log"
33407} >&5
33408
33409_ACEOF
33410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33411#
33412# INIT-COMMANDS
33413#
33414AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33415
33416
33417# The HP-UX ksh and POSIX shell print the target directory to stdout
33418# if CDPATH is set.
33419(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33420
33421sed_quote_subst='$sed_quote_subst'
33422double_quote_subst='$double_quote_subst'
33423delay_variable_subst='$delay_variable_subst'
33424AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33425DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33426OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33427macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33428macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33429enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33430enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33431pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33432enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33433host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33434host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33435host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33436build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33437build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33438build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33439SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33440Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33441GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33442EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33443FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33444LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33445NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33446LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33447max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33448ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33449exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33450lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33451lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33452lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33453reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33454reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33455deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33456file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33457AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33458AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33459STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33460RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33461old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33462old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33463old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33464CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33465CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33466compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33467GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33468lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33469lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33470lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
33471lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33472objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33473SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33474ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33475MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33476lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33477lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33478lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33479lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33480lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33481need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33482DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33483NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33484LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33485OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33486OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33487libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33488shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33489extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33490archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33491enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33492export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33493whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33494compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33495old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33496old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33497archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33498archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33499module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33500module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33501with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33502allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33503no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33504hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33505hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33506hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33507hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33508hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33509hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33510hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33511hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33512inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33513link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33514fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33515always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33516export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33517exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33518include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33519prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33520file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33521variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33522need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33523need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33524version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33525runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33526shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33527shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33528libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33529library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33530soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33531postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33532postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33533finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33534finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33535hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33536sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33537sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33538hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33539enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33540enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33541enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33542old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33543striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33544compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33545predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33546postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33547predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33548postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33549compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33550LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33551old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33552compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33553GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33554lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33555lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33556lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33557lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33558lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33559archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33560enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33561export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33562whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33563compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33564old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33565old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33566archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33567archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33568module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33569module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33570with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33571allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33572no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33573hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33574hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33575hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33576hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33577hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33578hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33579hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33580hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33581inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33582link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33583fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33584always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33585export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33586exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33587include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33588prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33589file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33590hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33591compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33592predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33593postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33594predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33595postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33596compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33597
33598LTCC='$LTCC'
33599LTCFLAGS='$LTCFLAGS'
33600compiler='$compiler_DEFAULT'
33601
33602# Quote evaled strings.
33603for var in SED \
33604GREP \
33605EGREP \
33606FGREP \
33607LD \
33608NM \
33609LN_S \
33610lt_SP2NL \
33611lt_NL2SP \
33612reload_flag \
33613deplibs_check_method \
33614file_magic_cmd \
33615AR \
33616AR_FLAGS \
33617STRIP \
33618RANLIB \
33619CC \
33620CFLAGS \
33621compiler \
33622lt_cv_sys_global_symbol_pipe \
33623lt_cv_sys_global_symbol_to_cdecl \
33624lt_cv_sys_global_symbol_to_c_name_address \
33625lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33626SHELL \
33627ECHO \
33628lt_prog_compiler_no_builtin_flag \
33629lt_prog_compiler_wl \
33630lt_prog_compiler_pic \
33631lt_prog_compiler_static \
33632lt_cv_prog_compiler_c_o \
33633need_locks \
33634DSYMUTIL \
33635NMEDIT \
33636LIPO \
33637OTOOL \
33638OTOOL64 \
33639shrext_cmds \
33640export_dynamic_flag_spec \
33641whole_archive_flag_spec \
33642compiler_needs_object \
33643with_gnu_ld \
33644allow_undefined_flag \
33645no_undefined_flag \
33646hardcode_libdir_flag_spec \
33647hardcode_libdir_flag_spec_ld \
33648hardcode_libdir_separator \
33649fix_srcfile_path \
33650exclude_expsyms \
33651include_expsyms \
33652file_list_spec \
33653variables_saved_for_relink \
33654libname_spec \
33655library_names_spec \
33656soname_spec \
33657finish_eval \
33658old_striplib \
33659striplib \
33660compiler_lib_search_dirs \
33661predep_objects \
33662postdep_objects \
33663predeps \
33664postdeps \
33665compiler_lib_search_path \
33666LD_CXX \
33667compiler_CXX \
33668lt_prog_compiler_no_builtin_flag_CXX \
33669lt_prog_compiler_wl_CXX \
33670lt_prog_compiler_pic_CXX \
33671lt_prog_compiler_static_CXX \
33672lt_cv_prog_compiler_c_o_CXX \
33673export_dynamic_flag_spec_CXX \
33674whole_archive_flag_spec_CXX \
33675compiler_needs_object_CXX \
33676with_gnu_ld_CXX \
33677allow_undefined_flag_CXX \
33678no_undefined_flag_CXX \
33679hardcode_libdir_flag_spec_CXX \
33680hardcode_libdir_flag_spec_ld_CXX \
33681hardcode_libdir_separator_CXX \
33682fix_srcfile_path_CXX \
33683exclude_expsyms_CXX \
33684include_expsyms_CXX \
33685file_list_spec_CXX \
33686compiler_lib_search_dirs_CXX \
33687predep_objects_CXX \
33688postdep_objects_CXX \
33689predeps_CXX \
33690postdeps_CXX \
33691compiler_lib_search_path_CXX; do
33692 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33693 *[\\\\\\\`\\"\\\$]*)
33694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33695 ;;
33696 *)
33697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33698 ;;
33699 esac
33700done
33701
33702# Double-quote double-evaled strings.
33703for var in reload_cmds \
33704old_postinstall_cmds \
33705old_postuninstall_cmds \
33706old_archive_cmds \
33707extract_expsyms_cmds \
33708old_archive_from_new_cmds \
33709old_archive_from_expsyms_cmds \
33710archive_cmds \
33711archive_expsym_cmds \
33712module_cmds \
33713module_expsym_cmds \
33714export_symbols_cmds \
33715prelink_cmds \
33716postinstall_cmds \
33717postuninstall_cmds \
33718finish_cmds \
33719sys_lib_search_path_spec \
33720sys_lib_dlsearch_path_spec \
33721old_archive_cmds_CXX \
33722old_archive_from_new_cmds_CXX \
33723old_archive_from_expsyms_cmds_CXX \
33724archive_cmds_CXX \
33725archive_expsym_cmds_CXX \
33726module_cmds_CXX \
33727module_expsym_cmds_CXX \
33728export_symbols_cmds_CXX \
33729prelink_cmds_CXX; do
33730 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33731 *[\\\\\\\`\\"\\\$]*)
33732 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33733 ;;
33734 *)
33735 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33736 ;;
33737 esac
33738done
33739
33740# Fix-up fallback echo if it was mangled by the above quoting rules.
33741case \$lt_ECHO in
33742*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33743 ;;
33744esac
33745
33746ac_aux_dir='$ac_aux_dir'
33747xsi_shell='$xsi_shell'
33748lt_shell_append='$lt_shell_append'
33749
33750# See if we are running on zsh, and set the options which allow our
33751# commands through without removal of \ escapes INIT.
33752if test -n "\${ZSH_VERSION+set}" ; then
33753 setopt NO_GLOB_SUBST
33754fi
33755
33756
33757 PACKAGE='$PACKAGE'
33758 VERSION='$VERSION'
33759 TIMESTAMP='$TIMESTAMP'
33760 RM='$RM'
33761 ofile='$ofile'
33762
33763
33764
33765
33766
33767
33768_ACEOF
33769
33770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33771
33772# Handling of arguments.
33773for ac_config_target in $ac_config_targets
33774do
33775 case $ac_config_target in
33776 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33777 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33778 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33779 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33780 "evas-directfb.pc") CONFIG_FILES="$CONFIG_FILES evas-directfb.pc" ;;
33781 "evas-fb.pc") CONFIG_FILES="$CONFIG_FILES evas-fb.pc" ;;
33782 "evas-opengl-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-opengl-x11.pc" ;;
33783 "evas-opengl-sdl.pc") CONFIG_FILES="$CONFIG_FILES evas-opengl-sdl.pc" ;;
33784 "evas-opengl-cocoa.pc") CONFIG_FILES="$CONFIG_FILES evas-opengl-cocoa.pc" ;;
33785 "evas-software-buffer.pc") CONFIG_FILES="$CONFIG_FILES evas-software-buffer.pc" ;;
33786 "evas-software-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-software-x11.pc" ;;
33787 "evas-software-8-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-software-8-x11.pc" ;;
33788 "evas-software-16-x11.pc") CONFIG_FILES="$CONFIG_FILES evas-software-16-x11.pc" ;;
33789 "evas-software-gdi.pc") CONFIG_FILES="$CONFIG_FILES evas-software-gdi.pc" ;;
33790 "evas-software-ddraw.pc") CONFIG_FILES="$CONFIG_FILES evas-software-ddraw.pc" ;;
33791 "evas-software-16-ddraw.pc") CONFIG_FILES="$CONFIG_FILES evas-software-16-ddraw.pc" ;;
33792 "evas-direct3d.pc") CONFIG_FILES="$CONFIG_FILES evas-direct3d.pc" ;;
33793 "evas-software-16-wince.pc") CONFIG_FILES="$CONFIG_FILES evas-software-16-wince.pc" ;;
33794 "evas-software-sdl.pc") CONFIG_FILES="$CONFIG_FILES evas-software-sdl.pc" ;;
33795 "evas-psl1ght.pc") CONFIG_FILES="$CONFIG_FILES evas-psl1ght.pc" ;;
33796 "evas.pc") CONFIG_FILES="$CONFIG_FILES evas.pc" ;;
33797 "doc/evas.dox") CONFIG_FILES="$CONFIG_FILES doc/evas.dox" ;;
33798 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33799 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
33800 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33801 "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
33802 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
33803 "src/lib/canvas/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/canvas/Makefile" ;;
33804 "src/lib/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/file/Makefile" ;;
33805 "src/lib/cache/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cache/Makefile" ;;
33806 "src/lib/cserve/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cserve/Makefile" ;;
33807 "src/lib/engines/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/Makefile" ;;
33808 "src/lib/engines/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/Makefile" ;;
33809 "src/lib/engines/common/evas_op_add/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_add/Makefile" ;;
33810 "src/lib/engines/common/evas_op_blend/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_blend/Makefile" ;;
33811 "src/lib/engines/common/evas_op_copy/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_copy/Makefile" ;;
33812 "src/lib/engines/common/evas_op_mask/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_mask/Makefile" ;;
33813 "src/lib/engines/common/evas_op_mul/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_mul/Makefile" ;;
33814 "src/lib/engines/common/evas_op_sub/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common/evas_op_sub/Makefile" ;;
33815 "src/lib/engines/common_8/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common_8/Makefile" ;;
33816 "src/lib/engines/common_16/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/engines/common_16/Makefile" ;;
33817 "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
33818 "src/modules/engines/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/Makefile" ;;
33819 "src/modules/engines/software_generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_generic/Makefile" ;;
33820 "src/modules/engines/software_gdi/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_gdi/Makefile" ;;
33821 "src/modules/engines/software_ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_ddraw/Makefile" ;;
33822 "src/modules/engines/direct3d/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/direct3d/Makefile" ;;
33823 "src/modules/engines/software_16_wince/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_wince/Makefile" ;;
33824 "src/modules/engines/software_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_x11/Makefile" ;;
33825 "src/modules/engines/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/fb/Makefile" ;;
33826 "src/modules/engines/buffer/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/buffer/Makefile" ;;
33827 "src/modules/engines/directfb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/directfb/Makefile" ;;
33828 "src/modules/engines/gl_common/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_common/Makefile" ;;
33829 "src/modules/engines/gl_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_x11/Makefile" ;;
33830 "src/modules/engines/gl_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_sdl/Makefile" ;;
33831 "src/modules/engines/gl_cocoa/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/gl_cocoa/Makefile" ;;
33832 "src/modules/engines/psl1ght/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/psl1ght/Makefile" ;;
33833 "src/modules/engines/software_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_sdl/Makefile" ;;
33834 "src/modules/engines/software_8/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_8/Makefile" ;;
33835 "src/modules/engines/software_8_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_8_x11/Makefile" ;;
33836 "src/modules/engines/software_16/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16/Makefile" ;;
33837 "src/modules/engines/software_16_x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_x11/Makefile" ;;
33838 "src/modules/engines/software_16_ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_ddraw/Makefile" ;;
33839 "src/modules/engines/software_16_sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/engines/software_16_sdl/Makefile" ;;
33840 "src/modules/loaders/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/Makefile" ;;
33841 "src/modules/loaders/edb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/edb/Makefile" ;;
33842 "src/modules/loaders/eet/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/eet/Makefile" ;;
33843 "src/modules/loaders/gif/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/gif/Makefile" ;;
33844 "src/modules/loaders/jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/jpeg/Makefile" ;;
33845 "src/modules/loaders/png/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/png/Makefile" ;;
33846 "src/modules/loaders/tiff/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/tiff/Makefile" ;;
33847 "src/modules/loaders/xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/xpm/Makefile" ;;
33848 "src/modules/loaders/bmp/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/bmp/Makefile" ;;
33849 "src/modules/loaders/ico/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/ico/Makefile" ;;
33850 "src/modules/loaders/tga/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/tga/Makefile" ;;
33851 "src/modules/loaders/svg/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/svg/Makefile" ;;
33852 "src/modules/loaders/pmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/pmaps/Makefile" ;;
33853 "src/modules/loaders/wbmp/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/wbmp/Makefile" ;;
33854 "src/modules/loaders/psd/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/psd/Makefile" ;;
33855 "src/modules/loaders/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/loaders/generic/Makefile" ;;
33856 "src/modules/savers/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/Makefile" ;;
33857 "src/modules/savers/edb/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/edb/Makefile" ;;
33858 "src/modules/savers/eet/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/eet/Makefile" ;;
33859 "src/modules/savers/jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/jpeg/Makefile" ;;
33860 "src/modules/savers/png/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/png/Makefile" ;;
33861 "src/modules/savers/tiff/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/savers/tiff/Makefile" ;;
33862 "src/static_deps/Makefile") CONFIG_FILES="$CONFIG_FILES src/static_deps/Makefile" ;;
33863 "src/static_deps/liblinebreak/Makefile") CONFIG_FILES="$CONFIG_FILES src/static_deps/liblinebreak/Makefile" ;;
33864 "src/lib/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/include/Makefile" ;;
33865 "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
33866 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
33867 "evas.spec") CONFIG_FILES="$CONFIG_FILES evas.spec" ;;
33868
33869 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
33870 esac
33871done
33872
33873
33874# If the user did not use the arguments to specify the items to instantiate,
33875# then the envvar interface is used. Set only those that are not.
33876# We use the long form for the default assignment because of an extremely
33877# bizarre bug on SunOS 4.1.3.
33878if $ac_need_defaults; then
33879 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33880 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33881 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33882fi
33883
33884# Have a temporary directory for convenience. Make it in the build tree
33885# simply because there is no reason against having it here, and in addition,
33886# creating and moving files from /tmp can sometimes cause problems.
33887# Hook for its removal unless debugging.
33888# Note that there is a small window in which the directory will not be cleaned:
33889# after its creation but before its name has been assigned to `$tmp'.
33890$debug ||
33891{
33892 tmp=
33893 trap 'exit_status=$?
33894 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33895' 0
33896 trap 'as_fn_exit 1' 1 2 13 15
33897}
33898# Create a (secure) tmp directory for tmp files.
33899
33900{
33901 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33902 test -n "$tmp" && test -d "$tmp"
33903} ||
33904{
33905 tmp=./conf$$-$RANDOM
33906 (umask 077 && mkdir "$tmp")
33907} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33908
33909# Set up the scripts for CONFIG_FILES section.
33910# No need to generate them if there are no CONFIG_FILES.
33911# This happens for instance with `./config.status config.h'.
33912if test -n "$CONFIG_FILES"; then
33913
33914
33915ac_cr=`echo X | tr X '\015'`
33916# On cygwin, bash can eat \r inside `` if the user requested igncr.
33917# But we know of no other shell where ac_cr would be empty at this
33918# point, so we can use a bashism as a fallback.
33919if test "x$ac_cr" = x; then
33920 eval ac_cr=\$\'\\r\'
33921fi
33922ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33923if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33924 ac_cs_awk_cr='\\r'
33925else
33926 ac_cs_awk_cr=$ac_cr
33927fi
33928
33929echo 'BEGIN {' >"$tmp/subs1.awk" &&
33930_ACEOF
33931
33932
33933{
33934 echo "cat >conf$$subs.awk <<_ACEOF" &&
33935 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33936 echo "_ACEOF"
33937} >conf$$subs.sh ||
33938 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33939ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33940ac_delim='%!_!# '
33941for ac_last_try in false false false false false :; do
33942 . ./conf$$subs.sh ||
33943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33944
33945 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33946 if test $ac_delim_n = $ac_delim_num; then
33947 break
33948 elif $ac_last_try; then
33949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33950 else
33951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33952 fi
33953done
33954rm -f conf$$subs.sh
33955
33956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33957cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33958_ACEOF
33959sed -n '
33960h
33961s/^/S["/; s/!.*/"]=/
33962p
33963g
33964s/^[^!]*!//
33965:repl
33966t repl
33967s/'"$ac_delim"'$//
33968t delim
33969:nl
33970h
33971s/\(.\{148\}\)..*/\1/
33972t more1
33973s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33974p
33975n
33976b repl
33977:more1
33978s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33979p
33980g
33981s/.\{148\}//
33982t nl
33983:delim
33984h
33985s/\(.\{148\}\)..*/\1/
33986t more2
33987s/["\\]/\\&/g; s/^/"/; s/$/"/
33988p
33989b
33990:more2
33991s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33992p
33993g
33994s/.\{148\}//
33995t delim
33996' <conf$$subs.awk | sed '
33997/^[^""]/{
33998 N
33999 s/\n//
34000}
34001' >>$CONFIG_STATUS || ac_write_fail=1
34002rm -f conf$$subs.awk
34003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34004_ACAWK
34005cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34006 for (key in S) S_is_set[key] = 1
34007 FS = ""
34008
34009}
34010{
34011 line = $ 0
34012 nfields = split(line, field, "@")
34013 substed = 0
34014 len = length(field[1])
34015 for (i = 2; i < nfields; i++) {
34016 key = field[i]
34017 keylen = length(key)
34018 if (S_is_set[key]) {
34019 value = S[key]
34020 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34021 len += length(value) + length(field[++i])
34022 substed = 1
34023 } else
34024 len += 1 + keylen
34025 }
34026
34027 print line
34028}
34029
34030_ACAWK
34031_ACEOF
34032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34033if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34034 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34035else
34036 cat
34037fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34038 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34039_ACEOF
34040
34041# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34042# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34043# trailing colons and then remove the whole line if VPATH becomes empty
34044# (actually we leave an empty line to preserve line numbers).
34045if test "x$srcdir" = x.; then
34046 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34047h
34048s///
34049s/^/:/
34050s/[ ]*$/:/
34051s/:\$(srcdir):/:/g
34052s/:\${srcdir}:/:/g
34053s/:@srcdir@:/:/g
34054s/^:*//
34055s/:*$//
34056x
34057s/\(=[ ]*\).*/\1/
34058G
34059s/\n//
34060s/^[^=]*=[ ]*$//
34061}'
34062fi
34063
34064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34065fi # test -n "$CONFIG_FILES"
34066
34067# Set up the scripts for CONFIG_HEADERS section.
34068# No need to generate them if there are no CONFIG_HEADERS.
34069# This happens for instance with `./config.status Makefile'.
34070if test -n "$CONFIG_HEADERS"; then
34071cat >"$tmp/defines.awk" <<\_ACAWK ||
34072BEGIN {
34073_ACEOF
34074
34075# Transform confdefs.h into an awk script `defines.awk', embedded as
34076# here-document in config.status, that substitutes the proper values into
34077# config.h.in to produce config.h.
34078
34079# Create a delimiter string that does not exist in confdefs.h, to ease
34080# handling of long lines.
34081ac_delim='%!_!# '
34082for ac_last_try in false false :; do
34083 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34084 if test -z "$ac_t"; then
34085 break
34086 elif $ac_last_try; then
34087 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34088 else
34089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34090 fi
34091done
34092
34093# For the awk script, D is an array of macro values keyed by name,
34094# likewise P contains macro parameters if any. Preserve backslash
34095# newline sequences.
34096
34097ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34098sed -n '
34099s/.\{148\}/&'"$ac_delim"'/g
34100t rset
34101:rset
34102s/^[ ]*#[ ]*define[ ][ ]*/ /
34103t def
34104d
34105:def
34106s/\\$//
34107t bsnl
34108s/["\\]/\\&/g
34109s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34110D["\1"]=" \3"/p
34111s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34112d
34113:bsnl
34114s/["\\]/\\&/g
34115s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34116D["\1"]=" \3\\\\\\n"\\/p
34117t cont
34118s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34119t cont
34120d
34121:cont
34122n
34123s/.\{148\}/&'"$ac_delim"'/g
34124t clear
34125:clear
34126s/\\$//
34127t bsnlc
34128s/["\\]/\\&/g; s/^/"/; s/$/"/p
34129d
34130:bsnlc
34131s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34132b cont
34133' <confdefs.h | sed '
34134s/'"$ac_delim"'/"\\\
34135"/g' >>$CONFIG_STATUS || ac_write_fail=1
34136
34137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34138 for (key in D) D_is_set[key] = 1
34139 FS = ""
34140}
34141/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34142 line = \$ 0
34143 split(line, arg, " ")
34144 if (arg[1] == "#") {
34145 defundef = arg[2]
34146 mac1 = arg[3]
34147 } else {
34148 defundef = substr(arg[1], 2)
34149 mac1 = arg[2]
34150 }
34151 split(mac1, mac2, "(") #)
34152 macro = mac2[1]
34153 prefix = substr(line, 1, index(line, defundef) - 1)
34154 if (D_is_set[macro]) {
34155 # Preserve the white space surrounding the "#".
34156 print prefix "define", macro P[macro] D[macro]
34157 next
34158 } else {
34159 # Replace #undef with comments. This is necessary, for example,
34160 # in the case of _POSIX_SOURCE, which is predefined and required
34161 # on some systems where configure will not decide to define it.
34162 if (defundef == "undef") {
34163 print "/*", prefix defundef, macro, "*/"
34164 next
34165 }
34166 }
34167}
34168{ print }
34169_ACAWK
34170_ACEOF
34171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34172 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34173fi # test -n "$CONFIG_HEADERS"
34174
34175
34176eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34177shift
34178for ac_tag
34179do
34180 case $ac_tag in
34181 :[FHLC]) ac_mode=$ac_tag; continue;;
34182 esac
34183 case $ac_mode$ac_tag in
34184 :[FHL]*:*);;
34185 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
34186 :[FH]-) ac_tag=-:-;;
34187 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34188 esac
34189 ac_save_IFS=$IFS
34190 IFS=:
34191 set x $ac_tag
34192 IFS=$ac_save_IFS
34193 shift
34194 ac_file=$1
34195 shift
34196
34197 case $ac_mode in
34198 :L) ac_source=$1;;
34199 :[FH])
34200 ac_file_inputs=
34201 for ac_f
34202 do
34203 case $ac_f in
34204 -) ac_f="$tmp/stdin";;
34205 *) # Look for the file first in the build tree, then in the source tree
34206 # (if the path is not absolute). The absolute path cannot be DOS-style,
34207 # because $ac_f cannot contain `:'.
34208 test -f "$ac_f" ||
34209 case $ac_f in
34210 [\\/$]*) false;;
34211 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34212 esac ||
34213 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
34214 esac
34215 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34216 as_fn_append ac_file_inputs " '$ac_f'"
34217 done
34218
34219 # Let's still pretend it is `configure' which instantiates (i.e., don't
34220 # use $as_me), people would be surprised to read:
34221 # /* config.h. Generated by config.status. */
34222 configure_input='Generated from '`
34223 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34224 `' by configure.'
34225 if test x"$ac_file" != x-; then
34226 configure_input="$ac_file. $configure_input"
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34228$as_echo "$as_me: creating $ac_file" >&6;}
34229 fi
34230 # Neutralize special characters interpreted by sed in replacement strings.
34231 case $configure_input in #(
34232 *\&* | *\|* | *\\* )
34233 ac_sed_conf_input=`$as_echo "$configure_input" |
34234 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34235 *) ac_sed_conf_input=$configure_input;;
34236 esac
34237
34238 case $ac_tag in
34239 *:-:* | *:-) cat >"$tmp/stdin" \
34240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34241 esac
34242 ;;
34243 esac
34244
34245 ac_dir=`$as_dirname -- "$ac_file" ||
34246$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34247 X"$ac_file" : 'X\(//\)[^/]' \| \
34248 X"$ac_file" : 'X\(//\)$' \| \
34249 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34250$as_echo X"$ac_file" |
34251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34252 s//\1/
34253 q
34254 }
34255 /^X\(\/\/\)[^/].*/{
34256 s//\1/
34257 q
34258 }
34259 /^X\(\/\/\)$/{
34260 s//\1/
34261 q
34262 }
34263 /^X\(\/\).*/{
34264 s//\1/
34265 q
34266 }
34267 s/.*/./; q'`
34268 as_dir="$ac_dir"; as_fn_mkdir_p
34269 ac_builddir=.
34270
34271case "$ac_dir" in
34272.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34273*)
34274 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34275 # A ".." for each directory in $ac_dir_suffix.
34276 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34277 case $ac_top_builddir_sub in
34278 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34279 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34280 esac ;;
34281esac
34282ac_abs_top_builddir=$ac_pwd
34283ac_abs_builddir=$ac_pwd$ac_dir_suffix
34284# for backward compatibility:
34285ac_top_builddir=$ac_top_build_prefix
34286
34287case $srcdir in
34288 .) # We are building in place.
34289 ac_srcdir=.
34290 ac_top_srcdir=$ac_top_builddir_sub
34291 ac_abs_top_srcdir=$ac_pwd ;;
34292 [\\/]* | ?:[\\/]* ) # Absolute name.
34293 ac_srcdir=$srcdir$ac_dir_suffix;
34294 ac_top_srcdir=$srcdir
34295 ac_abs_top_srcdir=$srcdir ;;
34296 *) # Relative name.
34297 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34298 ac_top_srcdir=$ac_top_build_prefix$srcdir
34299 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34300esac
34301ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34302
34303
34304 case $ac_mode in
34305 :F)
34306 #
34307 # CONFIG_FILE
34308 #
34309
34310 case $INSTALL in
34311 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34312 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34313 esac
34314 ac_MKDIR_P=$MKDIR_P
34315 case $MKDIR_P in
34316 [\\/$]* | ?:[\\/]* ) ;;
34317 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34318 esac
34319_ACEOF
34320
34321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34322# If the template does not know about datarootdir, expand it.
34323# FIXME: This hack should be removed a few years after 2.60.
34324ac_datarootdir_hack=; ac_datarootdir_seen=
34325ac_sed_dataroot='
34326/datarootdir/ {
34327 p
34328 q
34329}
34330/@datadir@/p
34331/@docdir@/p
34332/@infodir@/p
34333/@localedir@/p
34334/@mandir@/p'
34335case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34336*datarootdir*) ac_datarootdir_seen=yes;;
34337*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34339$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34340_ACEOF
34341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34342 ac_datarootdir_hack='
34343 s&@datadir@&$datadir&g
34344 s&@docdir@&$docdir&g
34345 s&@infodir@&$infodir&g
34346 s&@localedir@&$localedir&g
34347 s&@mandir@&$mandir&g
34348 s&\\\${datarootdir}&$datarootdir&g' ;;
34349esac
34350_ACEOF
34351
34352# Neutralize VPATH when `$srcdir' = `.'.
34353# Shell code in configure.ac might set extrasub.
34354# FIXME: do we really want to maintain this feature?
34355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34356ac_sed_extra="$ac_vpsub
34357$extrasub
34358_ACEOF
34359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34360:t
34361/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34362s|@configure_input@|$ac_sed_conf_input|;t t
34363s&@top_builddir@&$ac_top_builddir_sub&;t t
34364s&@top_build_prefix@&$ac_top_build_prefix&;t t
34365s&@srcdir@&$ac_srcdir&;t t
34366s&@abs_srcdir@&$ac_abs_srcdir&;t t
34367s&@top_srcdir@&$ac_top_srcdir&;t t
34368s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34369s&@builddir@&$ac_builddir&;t t
34370s&@abs_builddir@&$ac_abs_builddir&;t t
34371s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34372s&@INSTALL@&$ac_INSTALL&;t t
34373s&@MKDIR_P@&$ac_MKDIR_P&;t t
34374$ac_datarootdir_hack
34375"
34376eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34378
34379test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34380 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34381 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34383which seems to be undefined. Please make sure it is defined" >&5
34384$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34385which seems to be undefined. Please make sure it is defined" >&2;}
34386
34387 rm -f "$tmp/stdin"
34388 case $ac_file in
34389 -) cat "$tmp/out" && rm -f "$tmp/out";;
34390 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34391 esac \
34392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34393 ;;
34394 :H)
34395 #
34396 # CONFIG_HEADER
34397 #
34398 if test x"$ac_file" != x-; then
34399 {
34400 $as_echo "/* $configure_input */" \
34401 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34402 } >"$tmp/config.h" \
34403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34404 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34405 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34406$as_echo "$as_me: $ac_file is unchanged" >&6;}
34407 else
34408 rm -f "$ac_file"
34409 mv "$tmp/config.h" "$ac_file" \
34410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34411 fi
34412 else
34413 $as_echo "/* $configure_input */" \
34414 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34415 || as_fn_error $? "could not create -" "$LINENO" 5
34416 fi
34417# Compute "$ac_file"'s index in $config_headers.
34418_am_arg="$ac_file"
34419_am_stamp_count=1
34420for _am_header in $config_headers :; do
34421 case $_am_header in
34422 $_am_arg | $_am_arg:* )
34423 break ;;
34424 * )
34425 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34426 esac
34427done
34428echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34429$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34430 X"$_am_arg" : 'X\(//\)[^/]' \| \
34431 X"$_am_arg" : 'X\(//\)$' \| \
34432 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34433$as_echo X"$_am_arg" |
34434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34435 s//\1/
34436 q
34437 }
34438 /^X\(\/\/\)[^/].*/{
34439 s//\1/
34440 q
34441 }
34442 /^X\(\/\/\)$/{
34443 s//\1/
34444 q
34445 }
34446 /^X\(\/\).*/{
34447 s//\1/
34448 q
34449 }
34450 s/.*/./; q'`/stamp-h$_am_stamp_count
34451 ;;
34452
34453 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34454$as_echo "$as_me: executing $ac_file commands" >&6;}
34455 ;;
34456 esac
34457
34458
34459 case $ac_file$ac_mode in
34460 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34461 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34462 # are listed without --file. Let's play safe and only enable the eval
34463 # if we detect the quoting.
34464 case $CONFIG_FILES in
34465 *\'*) eval set x "$CONFIG_FILES" ;;
34466 *) set x $CONFIG_FILES ;;
34467 esac
34468 shift
34469 for mf
34470 do
34471 # Strip MF so we end up with the name of the file.
34472 mf=`echo "$mf" | sed -e 's/:.*$//'`
34473 # Check whether this is an Automake generated Makefile or not.
34474 # We used to match only the files named `Makefile.in', but
34475 # some people rename them; so instead we look at the file content.
34476 # Grep'ing the first line is not enough: some people post-process
34477 # each Makefile.in and add a new line on top of each file to say so.
34478 # Grep'ing the whole file is not good either: AIX grep has a line
34479 # limit of 2048, but all sed's we know have understand at least 4000.
34480 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34481 dirpart=`$as_dirname -- "$mf" ||
34482$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34483 X"$mf" : 'X\(//\)[^/]' \| \
34484 X"$mf" : 'X\(//\)$' \| \
34485 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34486$as_echo X"$mf" |
34487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34488 s//\1/
34489 q
34490 }
34491 /^X\(\/\/\)[^/].*/{
34492 s//\1/
34493 q
34494 }
34495 /^X\(\/\/\)$/{
34496 s//\1/
34497 q
34498 }
34499 /^X\(\/\).*/{
34500 s//\1/
34501 q
34502 }
34503 s/.*/./; q'`
34504 else
34505 continue
34506 fi
34507 # Extract the definition of DEPDIR, am__include, and am__quote
34508 # from the Makefile without running `make'.
34509 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34510 test -z "$DEPDIR" && continue
34511 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34512 test -z "am__include" && continue
34513 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34514 # When using ansi2knr, U may be empty or an underscore; expand it
34515 U=`sed -n 's/^U = //p' < "$mf"`
34516 # Find all dependency output files, they are included files with
34517 # $(DEPDIR) in their names. We invoke sed twice because it is the
34518 # simplest approach to changing $(DEPDIR) to its actual value in the
34519 # expansion.
34520 for file in `sed -n "
34521 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34522 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34523 # Make sure the directory exists.
34524 test -f "$dirpart/$file" && continue
34525 fdir=`$as_dirname -- "$file" ||
34526$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34527 X"$file" : 'X\(//\)[^/]' \| \
34528 X"$file" : 'X\(//\)$' \| \
34529 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34530$as_echo X"$file" |
34531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34532 s//\1/
34533 q
34534 }
34535 /^X\(\/\/\)[^/].*/{
34536 s//\1/
34537 q
34538 }
34539 /^X\(\/\/\)$/{
34540 s//\1/
34541 q
34542 }
34543 /^X\(\/\).*/{
34544 s//\1/
34545 q
34546 }
34547 s/.*/./; q'`
34548 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34549 # echo "creating $dirpart/$file"
34550 echo '# dummy' > "$dirpart/$file"
34551 done
34552 done
34553}
34554 ;;
34555 "libtool":C)
34556
34557 # See if we are running on zsh, and set the options which allow our
34558 # commands through without removal of \ escapes.
34559 if test -n "${ZSH_VERSION+set}" ; then
34560 setopt NO_GLOB_SUBST
34561 fi
34562
34563 cfgfile="${ofile}T"
34564 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34565 $RM "$cfgfile"
34566
34567 cat <<_LT_EOF >> "$cfgfile"
34568#! $SHELL
34569
34570# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34571# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34572# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34573# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34574#
34575# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34576# 2006, 2007, 2008 Free Software Foundation, Inc.
34577# Written by Gordon Matzigkeit, 1996
34578#
34579# This file is part of GNU Libtool.
34580#
34581# GNU Libtool is free software; you can redistribute it and/or
34582# modify it under the terms of the GNU General Public License as
34583# published by the Free Software Foundation; either version 2 of
34584# the License, or (at your option) any later version.
34585#
34586# As a special exception to the GNU General Public License,
34587# if you distribute this file as part of a program or library that
34588# is built using GNU Libtool, you may include this file under the
34589# same distribution terms that you use for the rest of that program.
34590#
34591# GNU Libtool is distributed in the hope that it will be useful,
34592# but WITHOUT ANY WARRANTY; without even the implied warranty of
34593# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34594# GNU General Public License for more details.
34595#
34596# You should have received a copy of the GNU General Public License
34597# along with GNU Libtool; see the file COPYING. If not, a copy
34598# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34599# obtained by writing to the Free Software Foundation, Inc.,
34600# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34601
34602
34603# The names of the tagged configurations supported by this script.
34604available_tags="CXX "
34605
34606# ### BEGIN LIBTOOL CONFIG
34607
34608# Assembler program.
34609AS=$AS
34610
34611# DLL creation program.
34612DLLTOOL=$DLLTOOL
34613
34614# Object dumper program.
34615OBJDUMP=$OBJDUMP
34616
34617# Which release of libtool.m4 was used?
34618macro_version=$macro_version
34619macro_revision=$macro_revision
34620
34621# Whether or not to build shared libraries.
34622build_libtool_libs=$enable_shared
34623
34624# Whether or not to build static libraries.
34625build_old_libs=$enable_static
34626
34627# What type of objects to build.
34628pic_mode=$pic_mode
34629
34630# Whether or not to optimize for fast installation.
34631fast_install=$enable_fast_install
34632
34633# The host system.
34634host_alias=$host_alias
34635host=$host
34636host_os=$host_os
34637
34638# The build system.
34639build_alias=$build_alias
34640build=$build
34641build_os=$build_os
34642
34643# A sed program that does not truncate output.
34644SED=$lt_SED
34645
34646# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34647Xsed="\$SED -e 1s/^X//"
34648
34649# A grep program that handles long lines.
34650GREP=$lt_GREP
34651
34652# An ERE matcher.
34653EGREP=$lt_EGREP
34654
34655# A literal string matcher.
34656FGREP=$lt_FGREP
34657
34658# A BSD- or MS-compatible name lister.
34659NM=$lt_NM
34660
34661# Whether we need soft or hard links.
34662LN_S=$lt_LN_S
34663
34664# What is the maximum length of a command?
34665max_cmd_len=$max_cmd_len
34666
34667# Object file suffix (normally "o").
34668objext=$ac_objext
34669
34670# Executable file suffix (normally "").
34671exeext=$exeext
34672
34673# whether the shell understands "unset".
34674lt_unset=$lt_unset
34675
34676# turn spaces into newlines.
34677SP2NL=$lt_lt_SP2NL
34678
34679# turn newlines into spaces.
34680NL2SP=$lt_lt_NL2SP
34681
34682# How to create reloadable object files.
34683reload_flag=$lt_reload_flag
34684reload_cmds=$lt_reload_cmds
34685
34686# Method to check whether dependent libraries are shared objects.
34687deplibs_check_method=$lt_deplibs_check_method
34688
34689# Command to use when deplibs_check_method == "file_magic".
34690file_magic_cmd=$lt_file_magic_cmd
34691
34692# The archiver.
34693AR=$lt_AR
34694AR_FLAGS=$lt_AR_FLAGS
34695
34696# A symbol stripping program.
34697STRIP=$lt_STRIP
34698
34699# Commands used to install an old-style archive.
34700RANLIB=$lt_RANLIB
34701old_postinstall_cmds=$lt_old_postinstall_cmds
34702old_postuninstall_cmds=$lt_old_postuninstall_cmds
34703
34704# A C compiler.
34705LTCC=$lt_CC
34706
34707# LTCC compiler flags.
34708LTCFLAGS=$lt_CFLAGS
34709
34710# Take the output of nm and produce a listing of raw symbols and C names.
34711global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34712
34713# Transform the output of nm in a proper C declaration.
34714global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34715
34716# Transform the output of nm in a C name address pair.
34717global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34718
34719# Transform the output of nm in a C name address pair when lib prefix is needed.
34720global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34721
34722# The name of the directory that contains temporary libtool files.
34723objdir=$objdir
34724
34725# Shell to use when invoking shell scripts.
34726SHELL=$lt_SHELL
34727
34728# An echo program that does not interpret backslashes.
34729ECHO=$lt_ECHO
34730
34731# Used to examine libraries when file_magic_cmd begins with "file".
34732MAGIC_CMD=$MAGIC_CMD
34733
34734# Must we lock files when doing compilation?
34735need_locks=$lt_need_locks
34736
34737# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34738DSYMUTIL=$lt_DSYMUTIL
34739
34740# Tool to change global to local symbols on Mac OS X.
34741NMEDIT=$lt_NMEDIT
34742
34743# Tool to manipulate fat objects and archives on Mac OS X.
34744LIPO=$lt_LIPO
34745
34746# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34747OTOOL=$lt_OTOOL
34748
34749# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34750OTOOL64=$lt_OTOOL64
34751
34752# Old archive suffix (normally "a").
34753libext=$libext
34754
34755# Shared library suffix (normally ".so").
34756shrext_cmds=$lt_shrext_cmds
34757
34758# The commands to extract the exported symbol list from a shared archive.
34759extract_expsyms_cmds=$lt_extract_expsyms_cmds
34760
34761# Variables whose values should be saved in libtool wrapper scripts and
34762# restored at link time.
34763variables_saved_for_relink=$lt_variables_saved_for_relink
34764
34765# Do we need the "lib" prefix for modules?
34766need_lib_prefix=$need_lib_prefix
34767
34768# Do we need a version for libraries?
34769need_version=$need_version
34770
34771# Library versioning type.
34772version_type=$version_type
34773
34774# Shared library runtime path variable.
34775runpath_var=$runpath_var
34776
34777# Shared library path variable.
34778shlibpath_var=$shlibpath_var
34779
34780# Is shlibpath searched before the hard-coded library search path?
34781shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34782
34783# Format of library name prefix.
34784libname_spec=$lt_libname_spec
34785
34786# List of archive names. First name is the real one, the rest are links.
34787# The last name is the one that the linker finds with -lNAME
34788library_names_spec=$lt_library_names_spec
34789
34790# The coded name of the library, if different from the real name.
34791soname_spec=$lt_soname_spec
34792
34793# Command to use after installation of a shared archive.
34794postinstall_cmds=$lt_postinstall_cmds
34795
34796# Command to use after uninstallation of a shared archive.
34797postuninstall_cmds=$lt_postuninstall_cmds
34798
34799# Commands used to finish a libtool library installation in a directory.
34800finish_cmds=$lt_finish_cmds
34801
34802# As "finish_cmds", except a single script fragment to be evaled but
34803# not shown.
34804finish_eval=$lt_finish_eval
34805
34806# Whether we should hardcode library paths into libraries.
34807hardcode_into_libs=$hardcode_into_libs
34808
34809# Compile-time system search path for libraries.
34810sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34811
34812# Run-time system search path for libraries.
34813sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34814
34815# Whether dlopen is supported.
34816dlopen_support=$enable_dlopen
34817
34818# Whether dlopen of programs is supported.
34819dlopen_self=$enable_dlopen_self
34820
34821# Whether dlopen of statically linked programs is supported.
34822dlopen_self_static=$enable_dlopen_self_static
34823
34824# Commands to strip libraries.
34825old_striplib=$lt_old_striplib
34826striplib=$lt_striplib
34827
34828
34829# The linker used to build libraries.
34830LD=$lt_LD
34831
34832# Commands used to build an old-style archive.
34833old_archive_cmds=$lt_old_archive_cmds
34834
34835# A language specific compiler.
34836CC=$lt_compiler
34837
34838# Is the compiler the GNU compiler?
34839with_gcc=$GCC
34840
34841# Compiler flag to turn off builtin functions.
34842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34843
34844# How to pass a linker flag through the compiler.
34845wl=$lt_lt_prog_compiler_wl
34846
34847# Additional compiler flags for building library objects.
34848pic_flag=$lt_lt_prog_compiler_pic
34849
34850# Compiler flag to prevent dynamic linking.
34851link_static_flag=$lt_lt_prog_compiler_static
34852
34853# Does compiler simultaneously support -c and -o options?
34854compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34855
34856# Whether or not to add -lc for building shared libraries.
34857build_libtool_need_lc=$archive_cmds_need_lc
34858
34859# Whether or not to disallow shared libs when runtime libs are static.
34860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34861
34862# Compiler flag to allow reflexive dlopens.
34863export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34864
34865# Compiler flag to generate shared objects directly from archives.
34866whole_archive_flag_spec=$lt_whole_archive_flag_spec
34867
34868# Whether the compiler copes with passing no objects directly.
34869compiler_needs_object=$lt_compiler_needs_object
34870
34871# Create an old-style archive from a shared archive.
34872old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34873
34874# Create a temporary old-style archive to link instead of a shared archive.
34875old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34876
34877# Commands used to build a shared archive.
34878archive_cmds=$lt_archive_cmds
34879archive_expsym_cmds=$lt_archive_expsym_cmds
34880
34881# Commands used to build a loadable module if different from building
34882# a shared archive.
34883module_cmds=$lt_module_cmds
34884module_expsym_cmds=$lt_module_expsym_cmds
34885
34886# Whether we are building with GNU ld or not.
34887with_gnu_ld=$lt_with_gnu_ld
34888
34889# Flag that allows shared libraries with undefined symbols to be built.
34890allow_undefined_flag=$lt_allow_undefined_flag
34891
34892# Flag that enforces no undefined symbols.
34893no_undefined_flag=$lt_no_undefined_flag
34894
34895# Flag to hardcode \$libdir into a binary during linking.
34896# This must work even if \$libdir does not exist
34897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34898
34899# If ld is used when linking, flag to hardcode \$libdir into a binary
34900# during linking. This must work even if \$libdir does not exist.
34901hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34902
34903# Whether we need a single "-rpath" flag with a separated argument.
34904hardcode_libdir_separator=$lt_hardcode_libdir_separator
34905
34906# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34907# DIR into the resulting binary.
34908hardcode_direct=$hardcode_direct
34909
34910# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34911# DIR into the resulting binary and the resulting library dependency is
34912# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34913# library is relocated.
34914hardcode_direct_absolute=$hardcode_direct_absolute
34915
34916# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34917# into the resulting binary.
34918hardcode_minus_L=$hardcode_minus_L
34919
34920# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34921# into the resulting binary.
34922hardcode_shlibpath_var=$hardcode_shlibpath_var
34923
34924# Set to "yes" if building a shared library automatically hardcodes DIR
34925# into the library and all subsequent libraries and executables linked
34926# against it.
34927hardcode_automatic=$hardcode_automatic
34928
34929# Set to yes if linker adds runtime paths of dependent libraries
34930# to runtime path list.
34931inherit_rpath=$inherit_rpath
34932
34933# Whether libtool must link a program against all its dependency libraries.
34934link_all_deplibs=$link_all_deplibs
34935
34936# Fix the shell variable \$srcfile for the compiler.
34937fix_srcfile_path=$lt_fix_srcfile_path
34938
34939# Set to "yes" if exported symbols are required.
34940always_export_symbols=$always_export_symbols
34941
34942# The commands to list exported symbols.
34943export_symbols_cmds=$lt_export_symbols_cmds
34944
34945# Symbols that should not be listed in the preloaded symbols.
34946exclude_expsyms=$lt_exclude_expsyms
34947
34948# Symbols that must always be exported.
34949include_expsyms=$lt_include_expsyms
34950
34951# Commands necessary for linking programs (against libraries) with templates.
34952prelink_cmds=$lt_prelink_cmds
34953
34954# Specify filename containing input files.
34955file_list_spec=$lt_file_list_spec
34956
34957# How to hardcode a shared library path into an executable.
34958hardcode_action=$hardcode_action
34959
34960# The directories searched by this compiler when creating a shared library.
34961compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34962
34963# Dependencies to place before and after the objects being linked to
34964# create a shared library.
34965predep_objects=$lt_predep_objects
34966postdep_objects=$lt_postdep_objects
34967predeps=$lt_predeps
34968postdeps=$lt_postdeps
34969
34970# The library search path used internally by the compiler when linking
34971# a shared library.
34972compiler_lib_search_path=$lt_compiler_lib_search_path
34973
34974# ### END LIBTOOL CONFIG
34975
34976_LT_EOF
34977
34978 case $host_os in
34979 aix3*)
34980 cat <<\_LT_EOF >> "$cfgfile"
34981# AIX sometimes has problems with the GCC collect2 program. For some
34982# reason, if we set the COLLECT_NAMES environment variable, the problems
34983# vanish in a puff of smoke.
34984if test "X${COLLECT_NAMES+set}" != Xset; then
34985 COLLECT_NAMES=
34986 export COLLECT_NAMES
34987fi
34988_LT_EOF
34989 ;;
34990 esac
34991
34992
34993ltmain="$ac_aux_dir/ltmain.sh"
34994
34995
34996 # We use sed instead of cat because bash on DJGPP gets confused if
34997 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34998 # text mode, it properly converts lines to CR/LF. This bash problem
34999 # is reportedly fixed, but why not run on old versions too?
35000 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35001 || (rm -f "$cfgfile"; exit 1)
35002
35003 case $xsi_shell in
35004 yes)
35005 cat << \_LT_EOF >> "$cfgfile"
35006
35007# func_dirname file append nondir_replacement
35008# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35009# otherwise set result to NONDIR_REPLACEMENT.
35010func_dirname ()
35011{
35012 case ${1} in
35013 */*) func_dirname_result="${1%/*}${2}" ;;
35014 * ) func_dirname_result="${3}" ;;
35015 esac
35016}
35017
35018# func_basename file
35019func_basename ()
35020{
35021 func_basename_result="${1##*/}"
35022}
35023
35024# func_dirname_and_basename file append nondir_replacement
35025# perform func_basename and func_dirname in a single function
35026# call:
35027# dirname: Compute the dirname of FILE. If nonempty,
35028# add APPEND to the result, otherwise set result
35029# to NONDIR_REPLACEMENT.
35030# value returned in "$func_dirname_result"
35031# basename: Compute filename of FILE.
35032# value retuned in "$func_basename_result"
35033# Implementation must be kept synchronized with func_dirname
35034# and func_basename. For efficiency, we do not delegate to
35035# those functions but instead duplicate the functionality here.
35036func_dirname_and_basename ()
35037{
35038 case ${1} in
35039 */*) func_dirname_result="${1%/*}${2}" ;;
35040 * ) func_dirname_result="${3}" ;;
35041 esac
35042 func_basename_result="${1##*/}"
35043}
35044
35045# func_stripname prefix suffix name
35046# strip PREFIX and SUFFIX off of NAME.
35047# PREFIX and SUFFIX must not contain globbing or regex special
35048# characters, hashes, percent signs, but SUFFIX may contain a leading
35049# dot (in which case that matches only a dot).
35050func_stripname ()
35051{
35052 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35053 # positional parameters, so assign one to ordinary parameter first.
35054 func_stripname_result=${3}
35055 func_stripname_result=${func_stripname_result#"${1}"}
35056 func_stripname_result=${func_stripname_result%"${2}"}
35057}
35058
35059# func_opt_split
35060func_opt_split ()
35061{
35062 func_opt_split_opt=${1%%=*}
35063 func_opt_split_arg=${1#*=}
35064}
35065
35066# func_lo2o object
35067func_lo2o ()
35068{
35069 case ${1} in
35070 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35071 *) func_lo2o_result=${1} ;;
35072 esac
35073}
35074
35075# func_xform libobj-or-source
35076func_xform ()
35077{
35078 func_xform_result=${1%.*}.lo
35079}
35080
35081# func_arith arithmetic-term...
35082func_arith ()
35083{
35084 func_arith_result=$(( $* ))
35085}
35086
35087# func_len string
35088# STRING may not start with a hyphen.
35089func_len ()
35090{
35091 func_len_result=${#1}
35092}
35093
35094_LT_EOF
35095 ;;
35096 *) # Bourne compatible functions.
35097 cat << \_LT_EOF >> "$cfgfile"
35098
35099# func_dirname file append nondir_replacement
35100# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35101# otherwise set result to NONDIR_REPLACEMENT.
35102func_dirname ()
35103{
35104 # Extract subdirectory from the argument.
35105 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35106 if test "X$func_dirname_result" = "X${1}"; then
35107 func_dirname_result="${3}"
35108 else
35109 func_dirname_result="$func_dirname_result${2}"
35110 fi
35111}
35112
35113# func_basename file
35114func_basename ()
35115{
35116 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35117}
35118
35119
35120# func_stripname prefix suffix name
35121# strip PREFIX and SUFFIX off of NAME.
35122# PREFIX and SUFFIX must not contain globbing or regex special
35123# characters, hashes, percent signs, but SUFFIX may contain a leading
35124# dot (in which case that matches only a dot).
35125# func_strip_suffix prefix name
35126func_stripname ()
35127{
35128 case ${2} in
35129 .*) func_stripname_result=`$ECHO "X${3}" \
35130 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35131 *) func_stripname_result=`$ECHO "X${3}" \
35132 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35133 esac
35134}
35135
35136# sed scripts:
35137my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35138my_sed_long_arg='1s/^-[^=]*=//'
35139
35140# func_opt_split
35141func_opt_split ()
35142{
35143 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35144 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35145}
35146
35147# func_lo2o object
35148func_lo2o ()
35149{
35150 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35151}
35152
35153# func_xform libobj-or-source
35154func_xform ()
35155{
35156 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35157}
35158
35159# func_arith arithmetic-term...
35160func_arith ()
35161{
35162 func_arith_result=`expr "$@"`
35163}
35164
35165# func_len string
35166# STRING may not start with a hyphen.
35167func_len ()
35168{
35169 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35170}
35171
35172_LT_EOF
35173esac
35174
35175case $lt_shell_append in
35176 yes)
35177 cat << \_LT_EOF >> "$cfgfile"
35178
35179# func_append var value
35180# Append VALUE to the end of shell variable VAR.
35181func_append ()
35182{
35183 eval "$1+=\$2"
35184}
35185_LT_EOF
35186 ;;
35187 *)
35188 cat << \_LT_EOF >> "$cfgfile"
35189
35190# func_append var value
35191# Append VALUE to the end of shell variable VAR.
35192func_append ()
35193{
35194 eval "$1=\$$1\$2"
35195}
35196
35197_LT_EOF
35198 ;;
35199 esac
35200
35201
35202 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35203 || (rm -f "$cfgfile"; exit 1)
35204
35205 mv -f "$cfgfile" "$ofile" ||
35206 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35207 chmod +x "$ofile"
35208
35209
35210 cat <<_LT_EOF >> "$ofile"
35211
35212# ### BEGIN LIBTOOL TAG CONFIG: CXX
35213
35214# The linker used to build libraries.
35215LD=$lt_LD_CXX
35216
35217# Commands used to build an old-style archive.
35218old_archive_cmds=$lt_old_archive_cmds_CXX
35219
35220# A language specific compiler.
35221CC=$lt_compiler_CXX
35222
35223# Is the compiler the GNU compiler?
35224with_gcc=$GCC_CXX
35225
35226# Compiler flag to turn off builtin functions.
35227no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35228
35229# How to pass a linker flag through the compiler.
35230wl=$lt_lt_prog_compiler_wl_CXX
35231
35232# Additional compiler flags for building library objects.
35233pic_flag=$lt_lt_prog_compiler_pic_CXX
35234
35235# Compiler flag to prevent dynamic linking.
35236link_static_flag=$lt_lt_prog_compiler_static_CXX
35237
35238# Does compiler simultaneously support -c and -o options?
35239compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35240
35241# Whether or not to add -lc for building shared libraries.
35242build_libtool_need_lc=$archive_cmds_need_lc_CXX
35243
35244# Whether or not to disallow shared libs when runtime libs are static.
35245allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35246
35247# Compiler flag to allow reflexive dlopens.
35248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35249
35250# Compiler flag to generate shared objects directly from archives.
35251whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35252
35253# Whether the compiler copes with passing no objects directly.
35254compiler_needs_object=$lt_compiler_needs_object_CXX
35255
35256# Create an old-style archive from a shared archive.
35257old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35258
35259# Create a temporary old-style archive to link instead of a shared archive.
35260old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35261
35262# Commands used to build a shared archive.
35263archive_cmds=$lt_archive_cmds_CXX
35264archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35265
35266# Commands used to build a loadable module if different from building
35267# a shared archive.
35268module_cmds=$lt_module_cmds_CXX
35269module_expsym_cmds=$lt_module_expsym_cmds_CXX
35270
35271# Whether we are building with GNU ld or not.
35272with_gnu_ld=$lt_with_gnu_ld_CXX
35273
35274# Flag that allows shared libraries with undefined symbols to be built.
35275allow_undefined_flag=$lt_allow_undefined_flag_CXX
35276
35277# Flag that enforces no undefined symbols.
35278no_undefined_flag=$lt_no_undefined_flag_CXX
35279
35280# Flag to hardcode \$libdir into a binary during linking.
35281# This must work even if \$libdir does not exist
35282hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35283
35284# If ld is used when linking, flag to hardcode \$libdir into a binary
35285# during linking. This must work even if \$libdir does not exist.
35286hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35287
35288# Whether we need a single "-rpath" flag with a separated argument.
35289hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35290
35291# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35292# DIR into the resulting binary.
35293hardcode_direct=$hardcode_direct_CXX
35294
35295# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35296# DIR into the resulting binary and the resulting library dependency is
35297# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35298# library is relocated.
35299hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35300
35301# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35302# into the resulting binary.
35303hardcode_minus_L=$hardcode_minus_L_CXX
35304
35305# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35306# into the resulting binary.
35307hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35308
35309# Set to "yes" if building a shared library automatically hardcodes DIR
35310# into the library and all subsequent libraries and executables linked
35311# against it.
35312hardcode_automatic=$hardcode_automatic_CXX
35313
35314# Set to yes if linker adds runtime paths of dependent libraries
35315# to runtime path list.
35316inherit_rpath=$inherit_rpath_CXX
35317
35318# Whether libtool must link a program against all its dependency libraries.
35319link_all_deplibs=$link_all_deplibs_CXX
35320
35321# Fix the shell variable \$srcfile for the compiler.
35322fix_srcfile_path=$lt_fix_srcfile_path_CXX
35323
35324# Set to "yes" if exported symbols are required.
35325always_export_symbols=$always_export_symbols_CXX
35326
35327# The commands to list exported symbols.
35328export_symbols_cmds=$lt_export_symbols_cmds_CXX
35329
35330# Symbols that should not be listed in the preloaded symbols.
35331exclude_expsyms=$lt_exclude_expsyms_CXX
35332
35333# Symbols that must always be exported.
35334include_expsyms=$lt_include_expsyms_CXX
35335
35336# Commands necessary for linking programs (against libraries) with templates.
35337prelink_cmds=$lt_prelink_cmds_CXX
35338
35339# Specify filename containing input files.
35340file_list_spec=$lt_file_list_spec_CXX
35341
35342# How to hardcode a shared library path into an executable.
35343hardcode_action=$hardcode_action_CXX
35344
35345# The directories searched by this compiler when creating a shared library.
35346compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35347
35348# Dependencies to place before and after the objects being linked to
35349# create a shared library.
35350predep_objects=$lt_predep_objects_CXX
35351postdep_objects=$lt_postdep_objects_CXX
35352predeps=$lt_predeps_CXX
35353postdeps=$lt_postdeps_CXX
35354
35355# The library search path used internally by the compiler when linking
35356# a shared library.
35357compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35358
35359# ### END LIBTOOL TAG CONFIG: CXX
35360_LT_EOF
35361
35362 ;;
35363
35364 esac
35365done # for ac_tag
35366
35367
35368as_fn_exit 0
35369_ACEOF
35370ac_clean_files=$ac_clean_files_save
35371
35372test $ac_write_fail = 0 ||
35373 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35374
35375
35376# configure is writing to config.log, and then calls config.status.
35377# config.status does its own redirection, appending to config.log.
35378# Unfortunately, on DOS this fails, as config.log is still kept open
35379# by configure, so config.status won't be able to write to it; its
35380# output is simply discarded. So we exec the FD to /dev/null,
35381# effectively closing config.log, so it can be properly (re)opened and
35382# appended to by config.status. When coming back to configure, we
35383# need to make the FD available again.
35384if test "$no_create" != yes; then
35385 ac_cs_success=:
35386 ac_config_status_args=
35387 test "$silent" = yes &&
35388 ac_config_status_args="$ac_config_status_args --quiet"
35389 exec 5>/dev/null
35390 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35391 exec 5>>config.log
35392 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35393 # would make configure fail if this is the last instruction.
35394 $ac_cs_success || as_fn_exit 1
35395fi
35396if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35398$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35399fi
35400
35401
35402#####################################################################
35403## Sanity Checks
35404
35405if test "x$build_pthreads" = "xno" ; then
35406 if test "x$build_async_render" = "xyes" ; then
35407 echo "ERROR: PThreads off, but async rendering on. Async rendering"
35408 echo " needs thread support."
35409 exit 1
35410 fi
35411 if test "x$build_pipe_render" = "xyes" ; then
35412 echo "ERROR: PThreads off, but pipe rendering on. Pipe rendering"
35413 echo " needs thread support."
35414 exit 1
35415 fi
35416fi
35417
35418if test "x${has_pthreads}" = "xno" ; then
35419 if test "x$build_async_preload" = "xyes" ; then
35420 echo "ERROR: PThreads off, but Async Preload on. Async Preload"
35421 echo " needs thread support."
35422 exit 1
35423 fi
35424fi
35425
35426#####################################################################
35427## Info
35428
35429echo
35430echo
35431echo
35432echo "------------------------------------------------------------------------"
35433echo "$PACKAGE $VERSION"
35434echo "------------------------------------------------------------------------"
35435echo
35436echo "Configuration Options Summary:"
35437echo
35438echo "Engines:"
35439echo " Software Memory Buffer.....: $have_evas_engine_buffer"
35440echo " Software X11...............: $have_evas_engine_software_x11 (Xlib: $have_evas_engine_software_xlib) (XCB: $have_evas_engine_software_xcb)"
35441echo $ECHO_N " OpenGL X11.................: $have_evas_engine_gl_x11 (Xlib: $have_evas_engine_gl_xlib) (XCB: $have_evas_engine_gl_xcb) $ECHO_C"
35442if test "x$have_evas_engine_gl_x11" = "xyes"; then
35443 echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)"
35444else
35445 echo
35446fi
35447echo " Software GDI...............: $have_evas_engine_software_gdi"
35448echo " Software DirectDraw........: $have_evas_engine_software_ddraw"
35449echo " Direct3d...................: $have_evas_engine_direct3d"
35450echo " Software SDL...............: $have_evas_engine_software_sdl (primitive: $sdl_primitive)"
35451echo $ECHO_N " OpenGL SDL.................: $have_evas_engine_gl_sdl $ECHO_C"
35452if test "x$have_evas_engine_gl_sdl" = "xyes"; then
35453 echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)"
35454else
35455 echo
35456fi
35457echo " OpenGL Cocoa...............: $have_evas_engine_gl_cocoa"
35458echo " Software Framebuffer.......: $have_evas_engine_fb"
35459echo " DirectFB...................: $have_evas_engine_directfb"
35460echo " PSL1GHT....................: $have_evas_engine_psl1ght"
35461echo " Software 8bit grayscale....: $have_evas_engine_software_8"
35462# FIXME: kill software 16bit
35463echo " Software 16bit ............: $have_evas_engine_software_16"
35464echo " Software 16bit X11.........: $have_evas_engine_software_16_x11"
35465echo " Software 16bit Directdraw..: $have_evas_engine_software_16_ddraw"
35466echo " Software 16bit WinCE.......: $have_evas_engine_software_16_wince"
35467echo " Software 16bit SDL.........: $have_evas_engine_software_16_sdl (primitive: $sdl_primitive)"
35468echo
35469echo "Image Loaders:"
35470echo " BMP.....................: $have_evas_image_loader_bmp"
35471echo " EDB.....................: $have_evas_image_loader_edb"
35472echo " EET.....................: $have_evas_image_loader_eet"
35473echo " GENERIC.................: $have_evas_image_loader_generic"
35474echo " GIF.....................: $have_evas_image_loader_gif"
35475echo " ICO.....................: $have_evas_image_loader_ico"
35476echo " JPEG....................: $have_evas_image_loader_jpeg (region: $have_jpeg_region)"
35477echo " PMAPS...................: $have_evas_image_loader_pmaps"
35478echo " PNG.....................: $have_evas_image_loader_png"
35479echo " PSD.....................: $have_evas_image_loader_psd"
35480echo " SVG.....................: $have_evas_image_loader_svg"
35481echo " TGA.....................: $have_evas_image_loader_tga"
35482echo " TIFF....................: $have_evas_image_loader_tiff"
35483echo " WBMP....................: $have_evas_image_loader_wbmp"
35484echo " XPM.....................: $have_evas_image_loader_xpm"
35485echo
35486echo "Font Sourcing Systems:"
35487echo " EET.....................: $have_evas_font_loader_eet"
35488echo
35489echo "Font Searching Systems:"
35490echo " Fontconfig..............: $have_fontconfig"
35491echo
35492echo "Font Rendering Helpers:"
35493echo " Fribidi.................: $have_fribidi"
35494echo " Harfbuzz................: $have_harfbuzz"
35495echo " liblinebreak............: $have_linebreak"
35496# FIXME: add non freetype2 font engine support
35497# FIXME: make freetype2 optional
35498echo
35499echo "CPU Specific Extensions:"
35500echo " Fallback C Code.........: $build_cpu_c"
35501echo " MMX.....................: $build_cpu_mmx"
35502echo " SSE.....................: $build_cpu_sse"
35503echo " SSE3....................: $build_cpu_sse3"
35504echo " ALTIVEC.................: $build_cpu_altivec"
35505echo " NEON....................: $build_cpu_neon"
35506echo " Thread Support..........: $build_pthreads"
35507echo
35508echo "Features:"
35509echo " MAGIC_DEBUG.............: $want_evas_magic_debug"
35510echo " Cache Server............: $want_evas_cserve"
35511echo
35512echo " Threaded Pipe Rendering.: $build_pipe_render"
35513echo " Async Pipe Rendering....: $build_async_render"
35514echo " Async Events............: $build_async_events"
35515echo " Async Image Preload.....: $build_async_preload"
35516echo
35517echo " Word Cache..............: $want_word_cache"
35518echo " Metric Cache............: $want_metric_cache"
35519echo
35520echo "ARGB Software Engine Options:"
35521echo " Sampling Scaler.........: $scaler_sample"
35522echo " Smooth Scaler...........: $scaler_smooth"
35523# FIXME: add an mmx scaler routine
35524echo " YUV Converter...........: $conv_yuv"
35525# FIXME: add more YUV format and colorvariant support
35526echo
35527echo "ARGB Conversion Options:"
35528echo " Smaller Dither Mask.....: $conv_small_dither"
35529echo " Line Dither Mask........: $conv_line_dither"
35530echo " No Dither Mask for 16bpp: $conv_no_dither"
35531echo " 8bpp RGB 332............: $conv_8_rgb_332"
35532echo " 8bpp RGB 666............: $conv_8_rgb_666"
35533echo " 8bpp RGB 232............: $conv_8_rgb_232"
35534echo " 8bpp RGB 222............: $conv_8_rgb_222"
35535echo " 8bpp RGB 221............: $conv_8_rgb_221"
35536echo " 8bpp RGB 121............: $conv_8_rgb_121"
35537echo " 8bpp RGB 111............: $conv_8_rgb_111"
35538echo " 8bpp Grayscale (256)....: $conv_8_gry_1"
35539echo " 8bpp Grayscale (16).....: $conv_8_gry_16"
35540echo " 8bpp Grayscale 64-pal...: $conv_8_grayscale_64"
35541# FIXME: add grayscale and B&W support to standard x converters
35542echo " 16bpp RGB 565...........: $conv_16_rgb_565"
35543echo " 16bpp BGR 565...........: $conv_16_bgr_565"
35544echo " 16bpp RGB 555...........: $conv_16_rgb_555"
35545echo " 16bpp RGB 444...........: $conv_16_rgb_444"
35546echo " 16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq"
35547# FIXME: add 555 (444 ipaq) support
35548# FIXME: add 30bpp support
35549# FIXME: add palletted support (ugh!)
35550# FIXME: add 8bpp and below rotation
35551echo " 16bpp Rotation 0........: $conv_16_rgb_rot_0"
35552echo " 16bpp Rotation 90.......: $conv_16_rgb_rot_90"
35553echo " 16bpp Rotation 180......: $conv_16_rgb_rot_180"
35554echo " 16bpp Rotation 270......: $conv_16_rgb_rot_270"
35555echo " 24bpp RGB 888...........: $conv_24_rgb_888"
35556echo " 24bpp BGR 888...........: $conv_24_bgr_888"
35557echo " 24bpp RGB 666 (666 ezx).: $conv_24_rgb_ezx"
35558# FIXME: add 24bpp rotation
35559echo " 32bpp RGB 8888..........: $conv_32_rgb_8888"
35560echo " 32bpp RGBX 8888.........: $conv_32_rgbx_8888"
35561echo " 32bpp BGR 8888..........: $conv_32_bgr_8888"
35562echo " 32bpp BGRX 8888.........: $conv_32_bgrx_8888"
35563echo " 32bpp RGB 666 (666 ezx).: $conv_32_rgb_ezx"
35564echo " 32bpp Rotation 0........: $conv_32_rgb_rot_0"
35565echo " 32bpp Rotation 90.......: $conv_32_rgb_rot_90"
35566echo " 32bpp Rotation 180......: $conv_32_rgb_rot_180"
35567echo " 32bpp Rotation 270......: $conv_32_rgb_rot_270"
35568echo
35569echo "Documentation.............: ${build_doc}"
35570echo "Examples..................: install:${install_examples} build:${build_examples}"
35571if test "x${enable_tests}" = "xyes" ; then
35572 echo "Tests.....................: ${enable_tests} (make check)"
35573else
35574 echo "Tests.....................: ${enable_tests}"
35575fi
35576if test "x${enable_coverage}" = "xyes" ; then
35577 echo "Coverage..................: ${enable_coverage} (make coverage)"
35578else
35579 echo "Coverage..................: ${enable_coverage}"
35580fi
35581echo
35582echo "Compilation............: make (or gmake)"
35583echo " CPPFLAGS.............: $CPPFLAGS"
35584echo " CFLAGS...............: $CFLAGS"
35585echo " CXXFLAGS.............: $CXXFLAGS"
35586echo " LDFLAGS..............: $LDFLAGS"
35587echo
35588echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
35589echo " prefix...............: $prefix"
35590echo
35591if test "x${have_static_module}" = "xyes" ; then
35592echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Evas."
35593echo " You must know what you are doing, or else you will have a lot of"
35594echo " problems. And Kenny will be killed."
35595echo " Think about that."
35596echo
35597fi
diff --git a/libraries/evas/configure.ac b/libraries/evas/configure.ac
new file mode 100644
index 0000000..0b56053
--- /dev/null
+++ b/libraries/evas/configure.ac
@@ -0,0 +1,2082 @@
1##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3m4_define([v_maj], [1])
4m4_define([v_min], [1])
5m4_define([v_mic], [0])
6m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
8##-- When released, remove the dnl on the below line
9m4_undefine([v_rev])
10##-- When doing snapshots - change soname. remove dnl on below line
11dnl m4_define([relname], [ver-pre-svn-07])
12dnl m4_define([v_rel], [-release relname])
13##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
15m4_define([lt_cur], m4_eval(v_maj + v_min))
16m4_define([lt_rev], v_mic)
17m4_define([lt_age], v_min)
18##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
20
21# rw_PROG_OBJC_WORKS
22# Check whether the Objective C compiler works.
23AC_DEFUN([rw_PROG_OBJC_WORKS],
24[m4_ifdef([AC_PROG_OBJC], [AC_REQUIRE([AC_PROG_OBJC])dnl
25AC_CACHE_CHECK([whether the Objective C compiler works],
26 [rw_cv_prog_objc_works],
27 [AC_LANG_PUSH([Objective C])
28 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
29 [rw_cv_prog_objc_works=yes],
30 [rw_cv_prog_objc_works=no])
31 AC_LANG_POP([Objective C])])], [rw_cv_prog_objc_works=no])
32])
33
34AC_INIT([evas], [v_ver], [enlightenment-devel@lists.sourceforge.net])
35AC_PREREQ([2.52])
36AC_CONFIG_SRCDIR([configure.ac])
37AC_CONFIG_MACRO_DIR([m4])
38
39AC_CONFIG_HEADERS([config.h])
40AH_TOP([
41#ifndef EFL_CONFIG_H__
42#define EFL_CONFIG_H__
43])
44AH_BOTTOM([
45#endif /* EFL_CONFIG_H__ */
46])
47
48AM_INIT_AUTOMAKE([1.6 dist-bzip2])
49m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
50
51AC_GNU_SOURCE
52
53AC_LIBTOOL_WIN32_DLL
54define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
55AC_PROG_LIBTOOL
56
57##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
58##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
59m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
60m4_ifdef([v_rel], , [m4_define([v_rel], [])])
61AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
62AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
63AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
64AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
65version_info="lt_cur:lt_rev:lt_age"
66release_info="v_rel"
67AC_SUBST(version_info)
68AC_SUBST(release_info)
69##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
70##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
71VMAJ=v_maj
72AC_SUBST(VMAJ)
73
74### Needed information
75
76AC_CANONICAL_BUILD
77AC_CANONICAL_HOST
78
79case "$host_os" in
80 mingw32ce*)
81 MODULE_ARCH="$host_os-$host_cpu"
82 ;;
83 *)
84 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
85 ;;
86esac
87AC_SUBST(MODULE_ARCH)
88AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
89
90want_fontconfig="auto"
91want_fribidi="auto"
92want_harfbuzz="auto"
93want_pixman="no"
94want_evas_cserve="yes"
95
96want_evas_engine_buffer="yes"
97want_evas_engine_software_xlib="no"
98want_evas_engine_software_xcb="no"
99want_evas_engine_software_gdi="no"
100want_evas_engine_software_ddraw="no"
101want_evas_engine_software_sdl="no"
102want_evas_engine_software_8_x11="no"
103want_evas_engine_software_16_x11="no"
104want_evas_engine_software_16_ddraw="no"
105want_evas_engine_software_16_wince="no"
106want_evas_engine_software_16_sdl="no"
107want_evas_engine_gl_xlib="no"
108want_evas_engine_gl_xcb="no"
109want_evas_engine_gl_sdl="no"
110want_evas_engine_gl_cocoa="no"
111want_evas_engine_direct3d="no"
112want_evas_engine_fb="no"
113want_evas_engine_directfb="no"
114want_evas_engine_psl1ght="no"
115
116want_evas_image_loader_edb="yes"
117want_evas_image_loader_eet="yes"
118want_evas_image_loader_gif="yes"
119want_evas_image_loader_jpeg="yes"
120want_evas_image_loader_pmaps="yes"
121want_evas_image_loader_png="yes"
122want_evas_image_loader_svg="yes"
123want_evas_image_loader_tiff="yes"
124want_evas_image_loader_xpm="yes"
125want_evas_image_loader_bmp="yes"
126want_evas_image_loader_tga="yes"
127want_evas_image_loader_wbmp="yes"
128want_evas_image_loader_ico="yes"
129want_evas_image_loader_psd="yes"
130want_evas_image_loader_generic="yes"
131
132want_evas_font_loader_eet="yes"
133
134case "$host_os" in
135 mingw32ce*)
136 want_fontconfig="no"
137 want_evas_engine_software_16_wince="yes"
138 want_evas_image_loader_edb="no"
139 want_evas_image_loader_gif="no"
140 want_evas_image_loader_svg="no"
141 want_evas_image_loader_tiff="no"
142 ;;
143 mingw*)
144 want_evas_engine_software_gdi="yes"
145 want_evas_engine_software_ddraw="yes"
146 want_evas_engine_direct3d="yes"
147 want_evas_engine_software_16_ddraw="yes"
148 want_evas_image_loader_edb="no"
149 want_evas_image_loader_svg="no"
150 ;;
151 darwin*)
152 want_evas_engine_software_xlib="auto"
153 want_evas_engine_gl_cocoa="auto"
154 ;;
155 *)
156 want_evas_engine_software_xlib="auto"
157 want_evas_engine_gl_xlib="auto"
158 want_evas_engine_software_xcb="no"
159 want_evas_engine_gl_xcb="no"
160 want_evas_engine_fb="auto"
161### no - not ready/usable/complete
162# want_evas_engine_software_8_x11="auto"
163# want_evas_engine_software_16_x11="auto"
164 ;;
165esac
166
167case "$host_vendor" in
168 ps3*)
169 want_evas_engine_psl1ght="static"
170 ;;
171esac
172
173requirement_evas=""
174
175
176### Additional options to configure
177
178# when used, that option makes configure script fails when
179# a requirement is selected, but not met.
180use_strict="no"
181AC_ARG_ENABLE([strict],
182 AC_HELP_STRING([--enable-strict], [enable strict checking mode. @<:@default==disabled@:>@]),
183 [use_strict="yes"],
184 [use_strict="no"])
185
186# Simple X11 build/link
187AC_ARG_ENABLE([simple-x11],
188 AC_HELP_STRING([--enable-simple-x11], [enable simple x11 linking]),
189 [
190 if test "x${enableval}" = "xyes" ; then
191 want_evas_simple_x11="yes"
192 else
193 want_evas_simple_x11="no"
194 fi
195 ])
196
197
198### Checks for programs
199
200m4_ifdef([AC_PROG_OBJC],
201 [
202 AC_PROG_OBJC
203 _AM_DEPENDENCIES(OBJC)
204 ],
205 [
206 dnl#AC_CHECK_TOOL([OBJC], [gcc])
207 dnl#AC_SUBST([OBJC])
208 dnl#AC_SUBST([OBJCFLAGS])
209 ])
210
211rw_PROG_OBJC_WORKS
212
213AC_PROG_CXX
214AC_PROG_CC
215
216# pkg-config
217PKG_PROG_PKG_CONFIG
218
219# Check whether pkg-config supports Requires.private
220if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
221 pkgconfig_requires_private="Requires.private"
222else
223 pkgconfig_requires_private="Requires"
224fi
225AC_SUBST(pkgconfig_requires_private)
226
227# doxygen program for documentation building
228EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
229
230
231### Checks for libraries
232
233# Evil library for compilation on Windows CE
234
235case "$host_os" in
236 mingw*)
237 PKG_CHECK_MODULES([EVIL], [evil >= 1.0.0])
238 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
239 requirement_evas="evil ${requirement_evas}"
240 ;;
241esac
242
243## strong dependencies
244
245# Eina
246PKG_CHECK_MODULES([EINA], [eina >= 1.1.0])
247CPPFLAGS_SAVE="$CPPFLAGS"
248CPPFLAGS="$CPPFLAGS $EINA_CFLAGS"
249AC_CHECK_SIZEOF(Eina_Unicode,, [#include <Eina.h>])
250CPPFLAGS="$CPPFLAGS_SAVE"
251
252# Freetype
253PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 9.3.0])
254
255requirement_evas="freetype2 eina >= 1.1.0 ${requirement_evas}"
256
257## optional dependencies
258
259# FontConfig
260have_fontconfig="no"
261AC_ARG_ENABLE([fontconfig],
262 AC_HELP_STRING([--disable-fontconfig],
263 [disable fontconfig for finding fonts. @<:@default=enabled@:>@]),
264 [
265 if test "x${enableval}" = "xyes" ; then
266 want_fontconfig="yes"
267 else
268 want_fontconfig="no"
269 fi
270 ])
271
272
273if test "x${want_fontconfig}" = "xyes" -o "x${want_fontconfig}" = "xauto" ; then
274 PKG_CHECK_MODULES([FONTCONFIG],
275 [fontconfig >= 2.5.0],
276 [
277 have_fontconfig="yes"
278 AC_DEFINE(HAVE_FONTCONFIG, 1, [have fontconfig searching capabilities])
279 requirement_evas="fontconfig ${requirement_evas}"
280 ],
281 [
282 if test "x${want_fontconfig}" = "xyes" -a "x${use_strict}" = "xyes" ; then
283 AC_MSG_ERROR([Fontconfig not found (strict dependencies checking)])
284 fi
285 ])
286fi
287
288# linebreak
289have_linebreak="no"
290want_linebreak="yes"
291AC_ARG_ENABLE([liblinebreak],
292 AC_HELP_STRING([--disable-liblinebreak],
293 [disable linking against liblinebreak. @<:@default=enabled@:>@]),
294 [
295 if test "x${enableval}" = "xyes" ; then
296 want_linebreak="yes"
297 else
298 want_linebreak="no"
299 fi
300 ])
301
302
303AM_CONDITIONAL(EVAS_USE_LINEBREAK, test "x${want_linebreak}" = "xyes")
304if test "x${want_linebreak}" = "xyes" ; then
305 have_linebreak="yes"
306 LINEBREAK_CFLAGS='-I$(top_srcdir)/src/static_deps/liblinebreak'
307 LINEBREAK_LIBS='$(top_builddir)/src/static_deps/liblinebreak/liblinebreak.la'
308 AC_SUBST(LINEBREAK_CFLAGS)
309 AC_SUBST(LINEBREAK_LIBS)
310 AC_DEFINE(HAVE_LINEBREAK, 1, [have liblinebreak support])
311else
312 have_linebreak="no"
313fi
314
315# fribidi support
316have_fribidi="no"
317AC_ARG_ENABLE([fribidi],
318 AC_HELP_STRING([--disable-fribidi],
319 [disable bidirectional text support. @<:@default=enabled@:>@]),
320 [
321 if test "x${enableval}" = "xyes" ; then
322 want_fribidi="yes"
323 else
324 want_fribidi="no"
325 fi
326 ])
327
328if test "x${want_fribidi}" = "xyes" -o "x${want_fribidi}" = "xauto" ; then
329 PKG_CHECK_MODULES([FRIBIDI],
330 [fribidi >= 0.19.2],
331 [
332 have_fribidi="yes"
333 AC_DEFINE(HAVE_FRIBIDI, 1, [have fribidi support])
334 requirement_evas="fribidi ${requirement_evas}"
335 CPPFLAGS_SAVE="$CPPFLAGS"
336 CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS"
337 AC_CHECK_SIZEOF(FriBidiChar,, [#include <fribidi/fribidi.h>])
338 CPPFLAGS="$CPPFLAGS_SAVE"
339 ],
340 [
341 if test "x$want_fribidi" = "xyes" -a "x$use_strict" = "xyes" ; then
342 AC_MSG_ERROR([Fribidi not found (strict dependencies checking)])
343 fi
344 ])
345fi
346
347if test "x${have_fribidi}" = "xno"; then
348 HAS_BIDI=0
349fi
350
351# harfbuzz support
352have_harfbuzz="no"
353have_harfbuzz_ft="no"
354AC_ARG_ENABLE([harfbuzz],
355 AC_HELP_STRING([--disable-harfbuzz],
356 [disable complex text shaping and layouting support. @<:@default=enabled@:>@]),
357 [
358 if test "x${enableval}" = "xyes" ; then
359 want_harfbuzz="yes"
360 else
361 want_harfbuzz="no"
362 fi
363 ])
364
365if test "x${want_harfbuzz}" = "xyes" -o "x${want_harfbuzz}" = "xauto" ; then
366 PKG_CHECK_MODULES([HARFBUZZ],
367 [harfbuzz >= 0.6.0],
368 [
369 have_harfbuzz="yes"
370 requirement_evas="harfbuzz ${requirement_evas}"
371 ],
372 [
373 if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
374 AC_MSG_ERROR([Harfbuzz not found (strict dependencies checking)])
375 fi
376 ])
377 if test "x$have_harfbuzz" = "xyes" ; then
378
379 CPPFLAGS_SAVE="$CPPFLAGS"
380 CPPFLAGS="$CPPFLAGS $HARFBUZZ_CFLAGS $FREETYPE_CFLAGS"
381# must have for usage with harfbuzz although harfbuzz may not have it.
382
383 AC_CHECK_HEADER(hb-ft.h,
384 [
385 have_harfbuzz_ft="yes"
386 #Depend on harfbuzz ft for harfbuzz support
387 AC_DEFINE(HAVE_HARFBUZZ, 1, [have harfbuzz support])
388 ],
389 [
390 if test "x$want_harfbuzz" = "xyes" -a "x$use_strict" = "xyes" ; then
391 AC_MSG_ERROR([Harfbuzz-ft not found (strict dependencies checking)])
392 fi
393 have_harfbuzz="no"
394 ])
395 CPPFLAGS="$CPPFLAGS_SAVE"
396 fi
397fi
398
399if test "x${have_harfbuzz}" = "xno"; then
400 HAS_HARFBUZZ=0
401fi
402
403# Pixman
404have_pixman="no"
405AC_ARG_ENABLE([pixman],
406 AC_HELP_STRING([--disable-pixman],
407 [disable pixman for software rendering. @<:@default=enabled@:>@]),
408 [
409 if test "x${enableval}" = "xyes" ; then
410 want_pixman="yes"
411 else
412 want_pixman="no"
413 fi
414 ])
415
416
417if test "x${want_pixman}" = "xyes" -o "x${want_pixman}" = "xauto" ; then
418 PKG_CHECK_MODULES([PIXMAN],
419 [pixman-1],
420 [
421 have_pixman="yes"
422 AC_DEFINE(HAVE_PIXMAN, 1, [have pixman for rendering])
423 requirement_evas="pixman-1 ${requirement_evas}"
424 ],
425 [
426 if test "x${want_pixman}" = "xyes" -a "x${use_strict}" = "xyes" ; then
427 AC_MSG_ERROR([Pixman not found (strict dependencies checking)])
428 fi
429 ])
430fi
431
432### Checks for header files
433AC_HEADER_STDC
434AC_CHECK_HEADERS([unistd.h stdint.h sys/param.h netinet/in.h])
435EFL_CHECK_PATH_MAX
436
437
438### Checks for types
439AC_CHECK_TYPES([struct sigaction], [], [],
440 [[#include <signal.h>]])
441
442
443### Checks for structures
444
445
446### Checks for compiler characteristics
447AC_C_CONST
448AC_C_BIGENDIAN
449AC_PROG_CC_STDC
450EFL_ATTRIBUTE_UNUSED
451EFL_ATTRIBUTE_VECTOR
452EFL_ATTRIBUTE_ALWAYS_INLINE
453
454WIN32_CPPFLAGS=""
455case "$host_os" in
456 mingw32ce*)
457 WIN32_CPPFLAGS="-D_WIN32_WCE=0x0420"
458 ;;
459 mingw*)
460 WIN32_CPPFLAGS="-D_WIN32_WINNT=0x0500"
461 ;;
462esac
463AC_SUBST(WIN32_CPPFLAGS)
464
465WIN32_CFLAGS=""
466AC_SUBST(WIN32_CFLAGS)
467
468
469### Checks for linker characteristics
470lt_enable_auto_import=""
471case "${host_os}" in
472 mingw*)
473 AC_DEFINE(EFL_EVAS_BUILD, 1, [Define to mention that evas is built])
474 lt_enable_auto_import="-Wl,--enable-auto-import"
475 ;;
476esac
477AC_SUBST(lt_enable_auto_import)
478
479
480### Checks for library functions
481
482AC_ISC_POSIX
483AC_CHECK_FUNCS([siglongjmp])
484
485# alloca
486AC_FUNC_ALLOCA
487
488# fnmatch
489EFL_CHECK_FNMATCH([], [AC_MSG_ERROR([Cannot find fnmatch()])])
490
491# dlopen
492dlopen_libs=""
493case "$host_os" in
494 mingw32ce*)
495# managed by evil
496 AC_DEFINE(HAVE_DLSYM)
497 ;;
498 mingw*)
499# nothing on mingw platform
500 ;;
501 *)
502 AC_CHECK_FUNCS(dlsym, res=yes, res=no)
503 if test "x$res" = "xyes"; then
504 AC_DEFINE(HAVE_DLSYM)
505 else
506 AC_CHECK_LIB(dl, dlsym, res=yes, res=no)
507 if test "x$res" = "xyes"; then
508 dlopen_libs=-ldl
509 AC_DEFINE(HAVE_DLSYM)
510 else
511 want_evas_engine_gl_xlib="no"
512 want_evas_engine_gl_xcb="no"
513 want_evas_engine_gl_sdl="no"
514 fi
515 fi
516esac
517AC_SUBST(dlopen_libs)
518
519res=no
520AC_CHECK_LIB(m, lround, res=yes, res=no)
521if test "x$res" = "xyes"; then
522 AC_DEFINE(HAVE_LROUND, 1, C99 lround function exists)
523fi
524
525SHM_OPEN_LINK=""
526AC_MSG_CHECKING([whether shm_open() is present])
527LIBS_save=${LIBS}
528LIBS="${LIBS} -lrt"
529AC_LINK_IFELSE(
530 [AC_LANG_PROGRAM(
531 [[
532#include <sys/stat.h>
533#include <sys/mman.h>
534#include <fcntl.h>
535 ]],
536 [[
537int fd;
538fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
539shm_unlink("/");
540 ]])],
541 [
542 have_shm_open="yes"
543 AC_DEFINE(HAVE_SHM_OPEN, 1, [Have shm_open() call])
544 SHM_OPEN_LINK="-lrt"
545 ],
546 [have_shm_open="no"])
547LIBS=${LIBS_save}
548AC_MSG_RESULT([${have_shm_open}])
549AC_SUBST(SHM_OPEN_LINK)
550
551# (shm_open (for cache server)
552AC_ARG_ENABLE([evas-cserve],
553 AC_HELP_STRING([--disable-evas-cserve],
554 [disable shared cache server support. @<:@default=enabled@:>@]),
555 [
556 if test "x${enableval}" = "xyes" ; then
557 want_evas_cserve="yes"
558 else
559 want_evas_cserve="no"
560 fi
561 ])
562AC_MSG_CHECKING(whether to build shared cache server and support)
563AC_MSG_RESULT(${want_evas_cserve})
564
565if test "x${want_evas_cserve}" = "xyes" ; then
566 AC_MSG_CHECKING([whether shm_open() is present])
567 LIBS_save=${LIBS}
568 LIBS="${LIBS} -lrt"
569 AC_LINK_IFELSE(
570 [AC_LANG_PROGRAM(
571 [[
572#include <sys/types.h>
573#include <sys/mman.h>
574#include <fcntl.h>
575 ]],
576 [[
577int fd;
578fd = shm_open("/", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
579shm_unlink("/");
580 ]])],
581 [want_evas_cserve="yes"],
582 [want_evas_cserve="no"])
583 LIBS=${LIBS_save}
584 AC_MSG_RESULT([${want_evas_cserve}])
585fi
586
587if test "x${want_evas_cserve}" = "xyes" ; then
588 AC_DEFINE(EVAS_CSERVE, 1, [Shared caceh server.])
589fi
590
591AM_CONDITIONAL([EVAS_CSERVE], [test "x${want_evas_cserve}" = "xyes"])
592
593
594
595#######################################
596## GL force flavor gles
597gl_flavor_gles="no"
598AC_MSG_CHECKING(whether to build GLES flavor of GL)
599AC_ARG_ENABLE(gl-flavor-gles,
600 AC_HELP_STRING([--enable-gl-flavor-gles], [enable gles falvor of gl instead of standard]),
601 [
602 if test "x$enableval" = "xyes" ; then
603 AC_MSG_RESULT(yes)
604 gl_flavor_gles="yes"
605 else
606 AC_MSG_RESULT(no)
607 gl_flavor_gles="no"
608 fi
609 ], [
610 AC_MSG_RESULT(no)
611 gl_flavor_gles="no"
612 ]
613)
614
615#######################################
616## GLES variety sgx
617gles_variety_sgx="no"
618AC_MSG_CHECKING(whether to build GLES variety for SGX)
619AC_ARG_ENABLE(gles-variety-sgx,
620 AC_HELP_STRING([--enable-gles-variety-sgx], [GLES variety SGX 3D unit]),
621 [
622 if test "x$enableval" = "xyes" ; then
623 AC_MSG_RESULT(yes)
624 AC_DEFINE(GLES_VARIETY_SGX, 1, [Imagination SGX GLES2 support])
625 gles_variety_sgx="yes"
626 else
627 AC_MSG_RESULT(no)
628 gles_variety_sgx="no"
629 fi
630 ], [
631 AC_MSG_RESULT(no)
632 gles_variety_sgx="no"
633 ]
634)
635
636#######################################
637## GLES variety s3c6410
638gles_variety_s3c6410="no"
639AC_MSG_CHECKING(whether to build GLES variety for s3c6410)
640AC_ARG_ENABLE(gles-variety-s3c6410,
641 AC_HELP_STRING([--enable-gles-variety-s3c6410], [GLES variety s3c6410 3D unit]),
642 [
643 if test "x$enableval" = "xyes" ; then
644 AC_MSG_RESULT(yes)
645 AC_DEFINE(GLES_VARIETY_S3C6410, 1, [Samsung S3c6410 GLES2 support])
646 gles_variety_s3c6410="yes"
647 else
648 AC_MSG_RESULT(no)
649 gles_variety_s3c6410="no"
650 fi
651 ], [
652 AC_MSG_RESULT(no)
653 gles_variety_s3c6410="no"
654 ]
655)
656
657if test "x$gl_flavor_gles" = "xyes"; then
658 eng=""
659 if test "x$gles_variety_sgx" = "xyes"; then eng="x"$eng; fi
660 if test "x$gles_variety_s3c6410" = "xyes"; then eng="x"$eng; fi
661 if test "x$eng" = "xx"; then
662 eng=""
663 else
664 AC_MSG_ERROR(
665 [Please enable just 1 OpenGL-ES flavor. Choices are:
666 --enable-gles-variety-sgx (Most GL-ES2 GPUs with shader compiler)
667 --enable-gles-variety-s3c6410 (s3c6410 with offline shader compiler)
668 You will also need to enable the OpenGL engine for X11 with:
669 --enable-gl-xlib or --enable-gl-xcb
670 ])
671 fi
672fi
673
674#####################################################################
675## Engines
676
677EVAS_CHECK_ENGINE([buffer], [${want_evas_engine_buffer}], [yes], [Buffer])
678
679EVAS_CHECK_ENGINE([software-gdi], [${want_evas_engine_software_gdi}], [no], [Software GDI])
680
681EVAS_CHECK_ENGINE([software-ddraw], [${want_evas_engine_software_ddraw}], [no], [Software DirectDraw])
682
683EVAS_CHECK_ENGINE([direct3d], [${want_evas_engine_direct3d}], [no], [Direct3D])
684
685EVAS_CHECK_ENGINE([software-sdl], [${want_evas_engine_software_sdl}], [no], [Software SDL])
686
687EVAS_CHECK_ENGINE([psl1ght], [${want_evas_engine_psl1ght}], [no], [PSL1GHT])
688
689EVAS_CHECK_ENGINE([gl-sdl], [${want_evas_engine_gl_sdl}], [no], [OpenGL SDL])
690
691EVAS_CHECK_ENGINE([gl-cocoa], [${want_evas_engine_gl_cocoa}], [no], [OpenGL Cocoa])
692
693EVAS_CHECK_ENGINE([fb], [${want_evas_engine_fb}], [no], [Framebuffer])
694
695EVAS_CHECK_ENGINE([directfb], [${want_evas_engine_directfb}], [no], [DirectFB])
696
697EVAS_CHECK_ENGINE([software-8-x11], [${want_evas_engine_software_8_x11}], [no], [Software X11 8 bits grayscale])
698
699EVAS_CHECK_ENGINE([software-16-x11], [${want_evas_engine_software_16_x11}], [no], [Software X11 16 bits])
700
701EVAS_CHECK_ENGINE([software-16-ddraw], [${want_evas_engine_software_16_ddraw}], [no], [Software DirectDraw 16 bits])
702
703EVAS_CHECK_ENGINE([software-16-wince], [${want_evas_engine_software_16_wince}], [no], [Software Windows CE 16 bits])
704
705EVAS_CHECK_ENGINE([software-16-sdl], [${want_evas_engine_software_16_sdl}], [no], [Software SDL 16 bits])
706
707# SDL primitive
708sdl_primitive="no"
709
710AC_ARG_ENABLE([sdl-primitive],
711 [AC_HELP_STRING([--enable-sdl-primitive], [])],
712 [sdl_primitive=${enableval}]
713)
714AC_MSG_CHECKING([whether to use SDL primitive when possible])
715AC_MSG_RESULT([${sdl_primitive}])
716
717if test "x${sdl_primitive}" = "xyes" ; then
718 AC_DEFINE([ENGINE_SDL_PRIMITIVE], [1], [Use SDL primitive when possible])
719fi
720
721# if software generic need to be build as part of libevas.so
722have_static_software_generic="no"
723AC_ARG_ENABLE([static-software-generic],
724 [AC_HELP_STRING([--enable-static-software-generic], [Build software generic engine as part of libevas])],
725 [have_static_software_generic=${enableval}]
726)
727AC_MSG_CHECKING([Whether to build software generic engine as part of libevas])
728AC_MSG_RESULT([${have_static_software_generic}])
729
730if test "x${have_static_module}" = "xyes" -a "x${have_static_software_generic}" = "xno"; then
731 AC_MSG_WARN([Forcing --enable-static-software-generic as engines must be compiled statically])
732 have_static_software_generic="yes"
733fi
734
735AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, test "x${have_static_software_generic}" = "xyes")
736if test "x${have_static_software_generic}" = "xyes"; then
737 AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_GENERIC, [1], [Build software generic engine as part of libevas])
738fi
739
740
741######## Software Engine ########
742have_evas_engine_software_x11="no"
743have_evas_engine_software_xcb="no"
744have_evas_engine_software_xlib="no"
745build_software_xcb=
746
747## XCB Checks ##
748want_xcb="no"
749AC_MSG_CHECKING(whether to build Software XCB Engine)
750AC_ARG_ENABLE(software-xcb,
751 AC_HELP_STRING([--enable-software-xcb], [enable Software XCB Engine. @<:@default=disabled@:>@]), [want_xcb=$enableval]
752)
753if test "x$want_xcb" != "xno" ; then
754 EVAS_CHECK_ENGINE([software-xcb], [${want_evas_engine_software_xcb}], [no], [Software XCB])
755 if test "x$have_evas_engine_software_xcb" != "xno" ; then
756 build_software_xcb="yes"
757 have_evas_engine_software_x11="yes"
758 AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_X11, [1], [Build software X11 engine])
759 AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_XCB, [1], [Build software XCB backend])
760 fi
761else
762 AC_MSG_RESULT(no)
763 build_software_xcb="no"
764fi
765
766## If we are not building XCB, then we can build XLib ##
767
768if test "x$build_software_xcb" = "xno" ; then
769 EVAS_CHECK_ENGINE([software-xlib], [${want_evas_engine_software_xlib}], [no], [Software Xlib])
770 # if software_x11 is available, define everything needed for X11
771 if test "x$have_evas_engine_software_xlib" != "xno" ; then
772 have_evas_engine_software_x11="yes"
773 AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_X11, [1], [Build software X11 engine])
774 AC_DEFINE_UNQUOTED(BUILD_ENGINE_SOFTWARE_XLIB, [1], [Build software Xlib backend])
775 fi
776else
777 have_evas_engine_software_xlib="no"
778fi
779
780if test "x$have_evas_engine_software_xlib" = "xstatic" -o "x$have_evas_engine_software_xcb" = "xstatic"; then
781 AC_DEFINE_UNQUOTED(EVAS_STATIC_BUILD_SOFTWARE_X11, [1], [Build software X11 engine as part of libevas])
782fi
783
784AC_SUBST(have_evas_engine_software_xcb)
785AC_SUBST(have_evas_engine_software_xlib)
786
787AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XLIB], [test "x${have_evas_engine_software_xlib}" != "xno"])
788AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_XCB], [test "x${have_evas_engine_software_xcb}" != "xno"])
789AM_CONDITIONAL([BUILD_ENGINE_SOFTWARE_X11], [test "x${have_evas_engine_software_x11}" != "xno"])
790
791AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_X11], [test "x${have_evas_engine_software_xcb}" = "xstatic" -o "x${have_evas_engine_software_xlib}" = "xstatic"])
792AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XLIB], [test "x${have_evas_engine_software_xlib}" = "xstatic"])
793AM_CONDITIONAL([EVAS_STATIC_BUILD_SOFTWARE_XCB], [test "x${have_evas_engine_software_xcb}" = "xstatic"])
794
795AC_SUBST(have_evas_engine_software_x11)
796
797
798######## OpenGL Engine ########
799have_evas_engine_gl_x11="no"
800have_evas_engine_gl_xcb="no"
801build_gl_xcb="no"
802
803## XCB Checks ##
804want_gl_xcb="no"
805AC_MSG_CHECKING(whether to build OpenGL XCB Engine)
806AC_ARG_ENABLE(gl-xcb,
807 AC_HELP_STRING([--enable-gl-xcb], [enable OpenGL XCB Engine. @<:@default=disabled@:>@]), [want_gl_xcb=$enableval]
808)
809if test "x$want_gl_xcb" = "xyes" ; then
810 EVAS_CHECK_ENGINE([gl-xcb], [${want_evas_engine_gl_xcb}], [no], [OpenGL XCB])
811 if test "x$have_evas_engine_gl_xcb" != "xno" ; then
812 build_gl_xcb="yes"
813 have_evas_engine_gl_x11="yes"
814 AC_DEFINE(BUILD_ENGINE_GL_X11, [1], [Build GL X11 engine])
815 AC_DEFINE(BUILD_ENGINE_GL_XCB, [1], [Build GL Xcb backend])
816 if test "x$have_evas_engine_gl_xcb" = "xstatic" ; then
817 AC_DEFINE(EVAS_STATIC_BUILD_GL_X11, [1], [Build GL X11 engine as part of libevas])
818 fi
819 fi
820 AC_SUBST(have_evas_engine_gl_xcb)
821else
822 AC_MSG_RESULT(no)
823 build_gl_xcb="no"
824fi
825
826## If we are not building XCB, then we can build XLib ##
827
828if test "x$build_gl_xcb" = "xno" ; then
829 EVAS_CHECK_ENGINE([gl-xlib], [${want_evas_engine_gl_xlib}], [no], [OpenGL XLib])
830 if test "x$have_evas_engine_gl_xlib" != "xno" ; then
831 have_evas_engine_gl_x11="yes"
832 AC_DEFINE_UNQUOTED(BUILD_ENGINE_GL_X11, [1], [Build OpenGL X11 engine])
833 AC_DEFINE_UNQUOTED(BUILD_ENGINE_GL_XLIB, [1], [Build OpenGL Xlib backend])
834 if test "x$have_evas_engine_gl_xlib" = "xstatic" ; then
835 AC_DEFINE_UNQUOTED(EVAS_STATIC_BUILD_GL_X11, [1], [Build OpenGL X11 engine as part of libevas])
836 fi
837 fi
838else
839 have_evas_engine_gl_xlib="no"
840fi
841AC_SUBST(have_evas_engine_gl_xlib)
842
843AM_CONDITIONAL([BUILD_ENGINE_GL_XLIB], [test "x${have_evas_engine_gl_xlib}" != "xno"])
844AM_CONDITIONAL([BUILD_ENGINE_GL_XCB], [test "x${have_evas_engine_gl_xcb}" != "xno"])
845AM_CONDITIONAL([BUILD_ENGINE_GL_X11], [test "x${have_evas_engine_gl_x11}" != "xno"])
846
847AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_X11], [test "x${have_evas_engine_gl_xcb}" = "xstatic" -o "x${have_evas_engine_gl_xlib}" = "xstatic"])
848AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XLIB], [test "x${have_evas_engine_gl_xlib}" = "xstatic"])
849AM_CONDITIONAL([EVAS_STATIC_BUILD_GL_XCB], [test "x${have_evas_engine_gl_xcb}" = "xstatic"])
850
851AC_SUBST(have_evas_engine_gl_x11)
852
853# common gl
854have_evas_engine_gl_common="no"
855have_static_evas_engine_gl_common="no"
856if test "x$have_evas_engine_gl_xlib" = "xyes" \
857 || test "x$have_evas_engine_gl_xcb" = "xyes" \
858 || test "x$have_evas_engine_gl_sdl" = "xyes" \
859 || test "x$have_evas_engine_gl_cocoa" = "xyes"; then
860 have_evas_engine_gl_common="yes"
861fi
862if test "x$have_evas_engine_gl_xlib" = "xstatic" \
863 || test "x$have_evas_engine_gl_xcb" = "xstatic" \
864 || test "x$have_evas_engine_gl_sdl" = "xstatic" \
865 || test "x$have_evas_engine_gl_cocoa" = "xstatic"; then
866 have_evas_engine_gl_common="yes"
867 have_static_evas_engine_gl_common="yes"
868fi
869
870if test "x$have_evas_engine_gl_common" = "xyes"; then
871 evas_engine_gl_common_libs=""
872 AC_DEFINE(BUILD_ENGINE_GL_COMMON, [1], [Generic OpenGL Rendering Support])
873fi
874
875AC_SUBST([evas_engine_gl_common_libs])
876
877AM_CONDITIONAL(BUILD_ENGINE_GL_COMMON, [test "x$have_evas_engine_gl_common" = "xyes"])
878
879AM_CONDITIONAL(EVAS_STATIC_BUILD_GL_COMMON, test "x${have_static_evas_engine_gl_common}" = "xyes")
880if test "x${have_static_evas_engine_gl_common}" = "xyes"; then
881 AC_DEFINE(EVAS_STATIC_BUILD_GL_COMMON, [1], [Build GL generic engine as part of libevas])
882fi
883
884# gl_sdl
885if test "x$have_evas_engine_gl_sdl" = "xyes" || test "x$have_evas_engine_gl_sdl" = "xstatic" ; then
886 AC_CHECK_DECL(SDL_GL_CONTEXT_MAJOR_VERSION,
887 [AC_DEFINE(HAVE_SDL_GL_CONTEXT_VERSION, [1], [SDL_GL version attributes present])],,
888 [#include <SDL/SDL_video.h>])
889fi
890
891if test "x$gl_flavor_gles" = "xyes"; then
892 AC_CHECK_DECL(SDL_OPENGLES,
893 [AC_DEFINE(HAVE_SDL_FLAG_OPENGLES, [1], [SDL_OPENGLES flag is present])],,
894 [#include <SDL/SDL_video.h>])
895fi
896
897# if software 16 x11 is enabled - build software_16 (the generic 16bit
898# engine). later enable it fb_16 or other "16" bit engines are enabled.
899have_evas_engine_software_16="no"
900if test "x$have_evas_engine_software_16_x11" = "xyes" -o "x$have_evas_engine_software_16_x11" = "xstatic"; then
901 have_evas_engine_software_16="yes"
902fi
903if test "x$have_evas_engine_software_16_sdl" = "xyes" -o "x$have_evas_engine_software_16_sdl" = "xstatic"; then
904 have_evas_engine_software_16="yes"
905fi
906if test "x$have_evas_engine_software_16_ddraw" = "xyes" -o "x$have_evas_engine_software_16_ddraw" = "xstatic"; then
907 have_evas_engine_software_16="yes"
908fi
909if test "x$have_evas_engine_software_16_wince" = "xyes" -o "x$have_evas_engine_software_16_wince" = "xstatic"; then
910 have_evas_engine_software_16="yes"
911fi
912AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_16, test "x$have_evas_engine_software_16" = "xyes")
913
914# if software 16 need to be build as part of libevas.so
915have_static_software_16="no"
916AC_ARG_ENABLE([static-software-16],
917 [AC_HELP_STRING([--enable-static-software-16], [Build software 16 engine as part of libevas])],
918 [have_static_software_16=${enableval}]
919)
920AC_MSG_CHECKING([Whether to build software 16 engine as part of libevas])
921AC_MSG_RESULT([${have_static_software_16}])
922
923AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_16, test "x${have_static_software_16}" = "xyes")
924if test "x${have_static_software_16}" = "xyes"; then
925 AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_16, [1], [Build software 16 engine as part of libevas])
926fi
927
928# if software 8 x11 is enabled - build software_8 (the generic 8bit
929# engine).
930have_evas_engine_software_8="no"
931if test "x$have_evas_engine_software_8_x11" = "xyes" -o "x$have_evas_engine_software_8_x11" = "xstatic"; then
932 have_evas_engine_software_8="yes"
933fi
934AM_CONDITIONAL(BUILD_ENGINE_SOFTWARE_8, test "x$have_evas_engine_software_8" = "xyes")
935
936# if software 8 need to be build as part of libevas.so
937have_static_software_8="no"
938AC_ARG_ENABLE([static-software-8],
939 [AC_HELP_STRING([--enable-static-software-8], [Build software 8 engine as part of libevas])],
940 [have_static_software_8=${enableval}]
941)
942AC_MSG_CHECKING([Whether to build software 8 engine as part of libevas])
943AC_MSG_RESULT([${have_static_software_8}])
944
945AM_CONDITIONAL(EVAS_STATIC_BUILD_SOFTWARE_8, test "x${have_static_software_8}" = "xyes")
946if test "x${have_static_software_8}" = "xyes"; then
947 AC_DEFINE(EVAS_STATIC_BUILD_SOFTWARE_8, [1], [Build software 8 engine as part of libevas])
948fi
949
950#####################################################################
951## Image loaders
952
953EVAS_CHECK_IMAGE_LOADER([Edb], [${want_evas_image_loader_edb}])
954
955EVAS_CHECK_IMAGE_LOADER([Eet], [${want_evas_image_loader_eet}])
956EVAS_CHECK_FONT_LOADER([${want_evas_font_loader_eet}])
957
958EVAS_CHECK_IMAGE_LOADER([Gif], [${want_evas_image_loader_gif}])
959
960have_evas_image_saver_jpeg="no"
961EVAS_CHECK_IMAGE_LOADER([Jpeg], [${want_evas_image_loader_jpeg}])
962
963dnl Windows has no sigsetjmp function, nor equivalent.
964dnl So we disable the jpeg saver.
965dnl TODO: must find a workaround
966case "$host_os" in
967 mingw*)
968 ;;
969 *)
970 if test "x${have_evas_image_loader_jpeg}" = "xyes" ; then
971 AC_DEFINE(EVAS_BUILD_SAVER_JPEG, [1], [Build JPEG saver])
972 have_evas_image_saver_jpeg="yes"
973 fi
974 ;;
975esac
976AM_CONDITIONAL([BUILD_SAVER_JPEG], [test "x${have_evas_image_saver_jpeg}" = "xyes"])
977
978EVAS_CHECK_IMAGE_LOADER([PMAPS], [${want_evas_image_loader_pmaps}])
979
980EVAS_CHECK_IMAGE_LOADER([PNG], [${want_evas_image_loader_png}])
981
982EVAS_CHECK_IMAGE_LOADER([SVG], [${want_evas_image_loader_svg}])
983
984EVAS_CHECK_IMAGE_LOADER([Tiff], [${want_evas_image_loader_tiff}])
985
986EVAS_CHECK_IMAGE_LOADER([XPM], [${want_evas_image_loader_xpm}])
987
988EVAS_CHECK_IMAGE_LOADER([BMP], [${want_evas_image_loader_bmp}])
989
990EVAS_CHECK_IMAGE_LOADER([TGA], [${want_evas_image_loader_tga}])
991
992EVAS_CHECK_IMAGE_LOADER([WBMP], [${want_evas_image_loader_wbmp}])
993
994EVAS_CHECK_IMAGE_LOADER([ICO], [${want_evas_image_loader_ico}])
995
996EVAS_CHECK_IMAGE_LOADER([PSD], [${want_evas_image_loader_psd}])
997
998EVAS_CHECK_IMAGE_LOADER([GENERIC], [${want_evas_image_loader_generic}])
999
1000#####################################################################
1001## Cpu based optimizations
1002
1003#######################################
1004## PTHREADS
1005pthread_cflags=""
1006pthread_libs=""
1007build_pthreads="no"
1008has_pthreads="no"
1009need_pthreads="no"
1010# basic pthread support
1011AC_CHECK_HEADER(pthread.h,
1012 [
1013 has_pthreads="yes"
1014 ],
1015 [
1016 has_pthreads="no"
1017 ]
1018)
1019
1020# sched_getaffinity pthread_attr_setaffinity_np
1021AC_CHECK_HEADERS([pthread.h sched.h],
1022 [
1023 CFLAGS_save="${CFLAGS}"
1024 CFLAGS="${CFLAGS} -pthread"
1025 LIBS_save="${LIBS}"
1026 LIBS="${LIBS} -pthread"
1027 AC_LINK_IFELSE(
1028 [AC_LANG_PROGRAM([[
1029#include <pthread.h>
1030#include <sched.h>
1031 ]],
1032 [[
1033pthread_attr_setaffinity_np(NULL, 0, NULL);
1034pthread_barrier_wait(NULL);
1035 ]])],
1036 [build_pthreads="yes"],
1037 [build_pthreads="no"])
1038 CFLAGS=${CFLAGS_save}
1039 LIBS=${LIBS_save}
1040 ],
1041 [build_pthreads="no"])
1042
1043AC_MSG_CHECKING([whether pthread_attr_setaffinity_np() and pthread_barrier_wait() are supported])
1044AC_MSG_RESULT([${build_pthreads}])
1045
1046#######################################
1047## Pthread
1048AC_MSG_CHECKING(whether to build pthread code)
1049AC_ARG_ENABLE(pthreads,
1050 AC_HELP_STRING([--enable-pthreads], [enable threaded rendering]),
1051 [
1052 if test "x$enableval" = "xyes" ; then
1053 if test "x$build_pthreads" = "xyes"; then
1054 AC_MSG_RESULT(yes)
1055 AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
1056 build_pthreads="yes"
1057 need_pthreads="yes"
1058 else
1059 if "x$use_strict" = "xyes"; then
1060 AC_MSG_ERROR(pthreads headers or functions not found (strict dependencies checking))
1061 else
1062 AC_MSG_RESULT(no: pthread headers or functions not found)
1063 fi
1064 fi
1065 else
1066 AC_MSG_RESULT(no)
1067 build_pthreads="no"
1068 fi
1069 ],
1070 [
1071 AC_MSG_RESULT($build_pthreads)
1072 if test "x$build_pthreads" = "xyes" ; then
1073 AC_DEFINE(BUILD_PTHREAD, 1, [Build Threaded Rendering])
1074 need_pthreads="yes"
1075 fi
1076 ]
1077)
1078
1079#######################################
1080## Pipe Renderer
1081build_pipe_render="no"
1082
1083AC_MSG_CHECKING(whether to build Threaded Pipe Rendering support)
1084AC_ARG_ENABLE(pipe-render,
1085 AC_HELP_STRING([--enable-pipe-render], [enable threaded pipe rendering support]),
1086 [ build_pipe_render=$enableval ]
1087)
1088AC_MSG_RESULT($build_pipe_render)
1089
1090AC_MSG_CHECKING(whether we can build Threaded Pipe Rendering support)
1091if test \( "x$build_pipe_render" = "xyes" -o "x$build_pipe_render" = "xauto" \); then
1092 AC_MSG_RESULT(yes)
1093 AC_DEFINE(BUILD_PIPE_RENDER, 1, [Build pipe render support])
1094 build_pipe_render="yes"
1095 need_pthreads="yes"
1096else
1097 AC_MSG_RESULT(no)
1098 build_pipe_render="no"
1099fi
1100
1101#######################################
1102## Async Renderer
1103build_async_render="no"
1104
1105AC_MSG_CHECKING(whether to build Asynchronously Threaded Pipe Rendering support)
1106AC_ARG_ENABLE(async-render,
1107 AC_HELP_STRING([--enable-async-render], [enable asynchronously threaded pipe rendering support]),
1108 [ build_async_render=$enableval ]
1109)
1110AC_MSG_RESULT($build_async_render)
1111
1112AC_MSG_CHECKING(whether we can build Asynchronously Threaded Pipe Rendering support)
1113if test \( "x$build_async_render" = "xyes" \); then
1114 AC_MSG_RESULT(yes)
1115 AC_DEFINE(EVAS_FRAME_QUEUING, 1, [Build async render support])
1116 build_async_render="yes"
1117 AC_DEFINE(BUILD_PIPE_RENDER, 1, [Build pipe render support])
1118 build_pipe_render="yes"
1119 need_pthreads="yes"
1120
1121 PKG_CHECK_MODULES([XEXT],
1122 [xext < 1.1.1],
1123 [ build_avoid_libXext_bug=yes ],
1124 [ build_avoid_libXext_bug=no ]
1125 )
1126 if test \( "x$build_avoid_libXext_bug" = "xyes" \); then
1127 AC_DEFINE(LIBXEXT_VERSION_LOW, 1, [To avoid bug on old libXext version])
1128 fi
1129else
1130 AC_MSG_RESULT(no)
1131 build_async_render="no"
1132fi
1133
1134#######################################
1135## Async events
1136build_async_events="auto"
1137AC_MSG_CHECKING(whether to build Async Events support)
1138AC_ARG_ENABLE(async-events,
1139 AC_HELP_STRING([--enable-async-events], [enable async events support]),
1140 [ build_async_events=$enableval ]
1141)
1142AC_MSG_RESULT($build_async_events)
1143
1144AC_MSG_CHECKING(whether we can build Async Events support)
1145if test "x$build_async_events" = "xyes" || test "x$build_async_events" = "xauto" ; then
1146 AC_MSG_RESULT(yes)
1147 AC_DEFINE(BUILD_ASYNC_EVENTS, 1, [Build async events support])
1148 build_async_events="yes"
1149else
1150 AC_MSG_RESULT(no)
1151 build_async_events="no"
1152fi
1153
1154#######################################
1155## Async image preload
1156build_async_preload="auto"
1157AC_MSG_CHECKING(whether to build Async Image Preload support)
1158AC_ARG_ENABLE(async-preload,
1159 AC_HELP_STRING([--enable-async-preload], [enable async image preloading support]),
1160 [ build_async_preload=$enableval ]
1161)
1162AC_MSG_RESULT($build_async_preload)
1163
1164AC_MSG_CHECKING(whether we can build Async Image Preload support)
1165if test \( "x$build_async_preload" = "xyes" -o "x$build_async_preload" = "xauto" \) -a "x$build_async_events" = "xyes"; then
1166 AC_MSG_RESULT(yes)
1167 AC_DEFINE(BUILD_ASYNC_PRELOAD, 1, [Build async image preload support])
1168 build_async_preload="yes"
1169 need_pthreads="yes"
1170else
1171 AC_MSG_RESULT(no)
1172 build_async_preload="no"
1173fi
1174
1175#######################################
1176## Link with pthread if needed
1177AC_MSG_CHECKING(whether we should link with pthread)
1178if test "x$need_pthreads" = "xyes"; then
1179 AC_MSG_RESULT(yes)
1180 pthread_cflags="-pthread"
1181 pthread_libs="-pthread"
1182else
1183 AC_MSG_RESULT(no)
1184fi
1185
1186#######################################
1187## MMX
1188build_cpu_mmx="no"
1189case $host_cpu in
1190 i*86)
1191 build_cpu_mmx="yes"
1192 ;;
1193 x86_64)
1194 build_cpu_mmx="yes"
1195 ;;
1196 amd64)
1197 build_cpu_mmx="yes"
1198 ;;
1199esac
1200AC_MSG_CHECKING(whether to build mmx code)
1201AC_ARG_ENABLE(cpu-mmx,
1202 AC_HELP_STRING([--enable-cpu-mmx], [enable mmx code]),
1203 [
1204 if test "x$enableval" = "xyes" ; then
1205 AC_MSG_RESULT(yes)
1206 AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
1207 build_cpu_mmx="yes"
1208 else
1209 AC_MSG_RESULT(no)
1210 build_cpu_mmx="no"
1211 fi
1212 ],
1213 [
1214 AC_MSG_RESULT($build_cpu_mmx)
1215 if test "x$build_cpu_mmx" = "xyes" ; then
1216 AC_DEFINE(BUILD_MMX, 1, [Build MMX Code])
1217 fi
1218 ]
1219)
1220
1221#######################################
1222## SSE
1223build_cpu_sse="no"
1224case $host_cpu in
1225 i*86)
1226 build_cpu_sse="yes"
1227 ;;
1228 x86_64)
1229 build_cpu_sse="yes"
1230 ;;
1231 amd64)
1232 build_cpu_sse="yes"
1233 ;;
1234esac
1235AC_MSG_CHECKING(whether to build sse code)
1236AC_ARG_ENABLE(cpu-sse,
1237 AC_HELP_STRING([--enable-cpu-sse], [enable sse code]),
1238 [
1239 if test "x$enableval" = "xyes" ; then
1240 AC_MSG_RESULT(yes)
1241 AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
1242 build_cpu_sse="yes"
1243 else
1244 AC_MSG_RESULT(no)
1245 build_cpu_sse="no"
1246 fi
1247 ],
1248 [
1249 AC_MSG_RESULT($build_cpu_sse)
1250 if test "x$build_cpu_sse" = "xyes" ; then
1251 AC_DEFINE(BUILD_SSE, 1, [Build SSE Code])
1252 fi
1253 ]
1254)
1255
1256#######################################
1257## SSE3
1258build_cpu_sse3="no"
1259case $host_cpu in
1260 i*86)
1261 build_cpu_sse3="yes"
1262 ;;
1263 x86_64)
1264 build_cpu_sse3="yes"
1265 ;;
1266 amd64)
1267 build_cpu_sse3="yes"
1268 ;;
1269esac
1270AC_MSG_CHECKING(whether to build sse3 code)
1271AC_ARG_ENABLE(cpu-sse3,
1272 AS_HELP_STRING([--enable-cpu-sse3], [enable sse3 code]),
1273 [
1274 if test "x$enableval" = "xyes" ; then
1275 AC_MSG_RESULT(yes)
1276 AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
1277 build_cpu_sse3="yes"
1278 else
1279 AC_MSG_RESULT(no)
1280 build_cpu_sse3="no"
1281 fi
1282 ],
1283 [
1284 AC_MSG_RESULT($build_cpu_sse3)
1285 if test "x$build_cpu_sse3" = "xyes" ; then
1286 AC_DEFINE(BUILD_SSE3, 1, [Build SSE3 Code])
1287 fi
1288 ]
1289)
1290
1291
1292# as a big warning flag to anyone doing stuff like this...
1293# NEVER EVER EVER EVER put **OPTIMIZATION** flags in
1294# build flags in makefiles (from configure or anywhere else)
1295# EVER as this screws your ability to build 1 binary and
1296# cover ALL x86 arch's. This is the HEIGHT of WRONG. If the
1297# person building choses to add optimization flags themselves
1298# and decide the minimum baseline cpu arch is X then that's
1299# their business, but NEVER should it be done here. NEVER.
1300# I now have to do this due to the way this sse3 code was done - using
1301# intrinsics and "functions" (opcodes) and types that only compile *IF*
1302# you compile with -msse3. this ALSO tries to optimize REGULAR c code
1303# with sse3 asm.. and this breaks things so badly. so... sse3 will be
1304# off until further notice for 32bit x86.
1305EVAS_SSE3_CFLAGS=" "
1306if test "x$build_cpu_sse3" = "xyes" ; then
1307 EVAS_SSE3_CFLAGS="-msse3 "
1308# CFLAGS="${CFLAGS} ${EVAS_SSE3_CFLAGS}"
1309fi
1310
1311AC_SUBST(CFLAGS)
1312AC_SUBST(EVAS_SSE3_CFLAGS)
1313
1314#######################################
1315## ALTIVEC
1316build_cpu_altivec="no"
1317case $host_cpu in
1318 *power* | *ppc*)
1319 build_cpu_altivec="auto"
1320 ;;
1321esac
1322altivec_cflags=""
1323AC_MSG_CHECKING(whether to build altivec code)
1324AC_ARG_ENABLE(cpu-altivec,
1325 AC_HELP_STRING([--enable-cpu-altivec], [enable altivec code]),
1326 [ build_cpu_altivec=$enableval ],
1327 [
1328 if test ! "x$build_cpu_altivec" = "xauto"; then
1329 build_cpu_altivec="no"
1330 fi
1331 ]
1332)
1333AC_MSG_RESULT($build_cpu_altivec)
1334
1335if test "x$build_cpu_altivec" = "xyes"; then
1336 AC_CHECK_HEADER(altivec.h,
1337 [
1338 AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1339 AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
1340 build_cpu_altivec="yes"
1341 ],
1342 [
1343 save_CFLAGS=$CFLAGS
1344 save_CPPFLAGS=$CPPFLAGS
1345 CFLAGS=$CFLAGS" -maltivec"
1346 CPPFLAGS=$CPPFLAGS" -maltivec"
1347 unset ac_cv_header_altivec_h
1348 AC_CHECK_HEADER(altivec.h,
1349 [
1350 AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1351 AC_DEFINE(HAVE_ALTIVEC_H, 1, [Have altivec.h header file])
1352 build_cpu_altivec="yes"
1353 ],
1354 [
1355 if test "x$build_cpu_altivec" = "xyes" -a "x$use_strict" = "xyes" ; then
1356 AC_MSG_ERROR(Altivec not found (strict dependencies checking))
1357 fi
1358 build_cpu_altivec="no"
1359 ]
1360 )
1361 CFLAGS=$save_CFLAGS
1362 CPPFLAGS=$save_CPPFLAGS
1363 ]
1364 )
1365fi
1366
1367if test "x$build_cpu_altivec" = "xyes"; then
1368 AC_MSG_CHECKING(whether to use altivec compiler flag)
1369 if test "x$GCC" = "xyes"; then
1370 if echo "int main(){return 0;}" | ${CPP} -faltivec - > /dev/null 2>&1; then
1371 altivec_cflags="-faltivec"
1372 AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1373 elif echo "int main(){return 0;}" | ${CPP} -maltivec - > /dev/null 2>&1; then
1374 altivec_cflags="-maltivec"
1375 AC_DEFINE(BUILD_ALTIVEC, 1, [Build Altivec Code])
1376 fi
1377 fi
1378 AC_MSG_RESULT($altivec_cflags)
1379 CFLAGS="$CFLAGS $altivec_cflags"
1380fi
1381
1382#######################################
1383## NEON
1384build_cpu_neon="no"
1385case $host_cpu in
1386 arm*)
1387 build_cpu_neon="yes"
1388 ;;
1389esac
1390AC_MSG_CHECKING(whether to build neon code)
1391AC_ARG_ENABLE(cpu-neon,
1392 AC_HELP_STRING([--enable-cpu-neon], [build neon code, the code will be
1393 checked at run time to see if the CPU supports it]),
1394 [
1395 if test "x$enableval" = "xyes" ; then
1396 AC_TRY_COMPILE([],
1397 [asm volatile (".fpu neon\nvqadd.u8 d0, d1, d0\n")],
1398 [
1399 AC_MSG_RESULT(yes)
1400 AC_DEFINE(BUILD_NEON, 1, [Build NEON Code])
1401 build_cpu_neon="yes"
1402 ],[
1403 AC_MSG_RESULT(no)
1404 build_cpu_neon="no"
1405 ])
1406 else
1407 AC_MSG_RESULT(no)
1408 build_cpu_neon="no"
1409 fi
1410 ],
1411 [
1412 if test "x$build_cpu_neon" = "xyes" ; then
1413 AC_TRY_COMPILE([#include <arm_neon.h>],
1414 [asm volatile ("vqadd.u8 d0, d1, d0\n")],
1415 [
1416 AC_MSG_RESULT(yes)
1417 AC_DEFINE(BUILD_NEON, 1, [Build NEON Code])
1418 build_cpu_neon="yes"
1419 ],[
1420 AC_MSG_RESULT(no)
1421 build_cpu_neon="no"
1422 ])
1423 fi
1424 ]
1425)
1426
1427#######################################
1428## C
1429build_cpu_c="yes"
1430AC_MSG_CHECKING(whether to build c code)
1431AC_ARG_ENABLE(cpu-c,
1432 AC_HELP_STRING([--enable-cpu-c], [enable C code]),
1433 [
1434 if test "x$enableval" = "xyes" ; then
1435 AC_MSG_RESULT(yes)
1436 AC_DEFINE(BUILD_C, 1, [Build plain C code])
1437 build_cpu_c="yes"
1438 else
1439 AC_MSG_RESULT(no)
1440 build_cpu_c="no"
1441 fi
1442 ], [
1443 AC_MSG_RESULT($build_cpu_c)
1444 if test "x$build_cpu_c" = "xyes" ; then
1445 AC_DEFINE(BUILD_C, 1, [Build plain C code])
1446 fi
1447 ]
1448)
1449
1450#######################################
1451## MAGIC_DEBUG
1452want_evas_magic_debug="yes"
1453AC_MSG_CHECKING(whether to check magic for evas object)
1454AC_ARG_ENABLE(evas-magic-debug,
1455 AC_HELP_STRING(
1456 [--disable-evas-magic-debug],
1457 [disable MAGIC_DEBUG check when people pass in wrong object type. [[default=enabled]]]
1458 ),
1459 [ want_evas_magic_debug="$enableval" ]
1460)
1461AC_MSG_RESULT($want_evas_magic_debug)
1462
1463AM_CONDITIONAL(EVAS_MAGIC_DEBUG, test "x$want_evas_magic_debug" = "xyes")
1464if test "x$want_evas_magic_debug" = "xyes"; then
1465 AC_DEFINE(EVAS_MAGIC_DEBUG, 1, [complain when people pass in wrong object types etc.])
1466fi
1467
1468
1469#######################################
1470## Word Caching
1471want_word_cache="no"
1472AC_MSG_CHECKING(whether to enable caching of rendered words)
1473AC_ARG_ENABLE(word-cache,
1474 AC_HELP_STRING(
1475 [--enable-word-cache],
1476 [Enable experimental word caching to speed up rendering [[default=disabled]]]
1477 ),
1478 [ want_word_cache="$enableval" ]
1479)
1480AC_MSG_RESULT($want_word_cache)
1481
1482AM_CONDITIONAL(WORD_CACHE, test "x$want_word_cache" = "xyes")
1483if test "x$want_word_cache" = "xyes"; then
1484 AC_DEFINE(WORD_CACHE, 1, [Experimental word caching to speed up text rendering.])
1485fi
1486
1487#######################################
1488## Metric Caching
1489want_metric_cache="no"
1490AC_MSG_CHECKING(whether to enable caching of rendered metrics)
1491AC_ARG_ENABLE(metric-cache,
1492 AC_HELP_STRING(
1493 [--enable-metric-cache],
1494 [Enable experimental metric caching to speed up rendering [[default=disabled]]]
1495 ),
1496 [ want_metric_cache="$enableval" ]
1497)
1498AC_MSG_RESULT($want_metric_cache)
1499
1500AM_CONDITIONAL(METRIC_CACHE, test "x$want_metric_cache" = "xyes")
1501if test "x$want_metric_cache" = "xyes"; then
1502 AC_DEFINE(METRIC_CACHE, 1, [Experimental metric caching to speed up text rendering.])
1503fi
1504
1505
1506
1507#####################################################################
1508## ARGB engine options
1509
1510#######################################
1511## Nearest sampling scaler
1512EVAS_CHECK_SCALER([scale-sample], [sampling scaler], [scaler_sample="yes"], [scaler_sample="no"])
1513## Smooth super and sub sampling scaler
1514EVAS_CHECK_SCALER([scale-smooth], [smooth scaler], [scaler_smooth="yes"], [scaler_smooth="no"])
1515
1516#######################################
1517## YUV -> ARGB converter
1518conv_yuv="no"
1519conv_yuv="yes"
1520AC_MSG_CHECKING(whether to build yuv converter code)
1521AC_ARG_ENABLE(convert-yuv,
1522 AC_HELP_STRING([--enable-convert-yuv], [enable yuv converter code]),
1523 [
1524 if test "x$enableval" = "xyes" ; then
1525 AC_MSG_RESULT(yes)
1526 AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
1527 conv_yuv="yes"
1528 else
1529 AC_MSG_RESULT(no)
1530 conv_yuv="no"
1531 fi
1532 ], [
1533 AC_MSG_RESULT($conv_yuv)
1534 if test "x$conv_yuv" = "xyes" ; then
1535 AC_DEFINE(BUILD_CONVERT_YUV, 1, [YUV Converter Support])
1536 fi
1537 ]
1538)
1539
1540#####################################################################
1541## Output rendering features
1542
1543#######################################
1544## Small dither mask instead of big one (lower quality)
1545EVAS_CHECK_DITHER([small-dither-mask], [small dither mask], [conv_small_dither="yes"], [conv_small_dither="no"])
1546## Alternate Line dither mask instead of big one (lower quality - but fastest)
1547EVAS_CHECK_DITHER([line-dither-mask], [line dither mask], [conv_line_dither="yes"], [conv_line_dither="no"])
1548## No dither mask at all for 16bpp
1549EVAS_CHECK_DITHER([no-dither-mask], [conversion to 16bpp without dither mask], [conv_no_dither="yes"], [conv_no_dither="no"])
1550
1551#######################################
1552## Convert to 8bpp RGB 332
1553EVAS_CONVERT_COLOR(8, RGB, 332, [yes])
1554## Convert to 8bpp RGB 666
1555EVAS_CONVERT_COLOR(8, RGB, 666, [yes])
1556## Convert to 8bpp RGB 232
1557EVAS_CONVERT_COLOR(8, RGB, 232, [yes])
1558## Convert to 8bpp RGB 222
1559EVAS_CONVERT_COLOR(8, RGB, 222, [yes])
1560## Convert to 8bpp RGB 221
1561EVAS_CONVERT_COLOR(8, RGB, 221, [yes])
1562## Convert to 8bpp RGB 121
1563EVAS_CONVERT_COLOR(8, RGB, 121, [yes])
1564## Convert to 8bpp RGB 111
1565EVAS_CONVERT_COLOR(8, RGB, 111, [yes])
1566## Convert to 16bpp RGB 565
1567EVAS_CONVERT_COLOR(16, RGB, 565)
1568## Convert to 16bpp BGR 565
1569EVAS_CONVERT_COLOR(16, BGR, 565)
1570## Convert to 16bpp RGB 555
1571EVAS_CONVERT_COLOR(16, RGB, 555)
1572## Convert to 16bpp RGB 444
1573EVAS_CONVERT_COLOR(16, RGB, 444)
1574
1575#######################################
1576## Convert to 16bpp RGB 565 (444 ipaq)
1577conv_16_rgb_ipq="yes"
1578AC_MSG_CHECKING(whether to build 16bpp 565 (444 ipaq) converter code)
1579AC_ARG_ENABLE(convert-16-rgb-ipq,
1580 AC_HELP_STRING([--disable-convert-16-rgb-ipq], [disable 16bpp 565 (444 ipaq) converter code]),
1581 [
1582 if test "x$enableval" = "xyes" ; then
1583 AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
1584 conv_16_rgb_ipq="yes"
1585 else
1586 conv_16_rgb_ipq="no"
1587 fi
1588 ], [
1589 if test "x$conv_16_rgb_ipq" = "xyes" ; then
1590 AC_DEFINE(BUILD_CONVERT_16_RGB_454645, 1, [16bpp 565 (444 ipaq) Converter Support])
1591 fi
1592 ]
1593)
1594AC_MSG_RESULT($conv_16_rgb_ipq)
1595
1596#######################################
1597## Convert to 16bpp RGB with rotation of 0
1598EVAS_CONVERT_ROT(16, RGB, 0)
1599## Convert to 16bpp RGB with rotation of 180
1600EVAS_CONVERT_ROT(16, RGB, 180)
1601## Convert to 16bpp RGB with rotation of 270
1602EVAS_CONVERT_ROT(16, RGB, 270)
1603## Convert to 16bpp RGB with rotation of 90
1604EVAS_CONVERT_ROT(16, RGB, 90)
1605
1606#######################################
1607## Convert to 24bpp RGB 888
1608EVAS_CONVERT_COLOR(24, RGB, 888)
1609## Convert to 24bpp BGR 888
1610EVAS_CONVERT_COLOR(24, BGR, 888)
1611## Convert to 32bpp RGB 8888
1612EVAS_CONVERT_COLOR(32, RGB, 8888)
1613## Convert to 32bpp RGBX 8888
1614EVAS_CONVERT_COLOR(32, RGBX, 8888)
1615## Convert to 32bpp BGR 8888
1616EVAS_CONVERT_COLOR(32, BGR, 8888)
1617## Convert to 32bpp BGRX 8888
1618EVAS_CONVERT_COLOR(32, BGRX, 8888)
1619
1620#######################################
1621## Convert to 24bpp RGB 666 (666 ezx)
1622conv_24_rgb_ezx="yes"
1623AC_MSG_CHECKING(whether to build 24bpp 666 (666 ezx) converter code)
1624AC_ARG_ENABLE(convert-24-rgb-ezx,
1625 AC_HELP_STRING([--disable-convert-24-rgb-ezx], [disable 24bpp 666 (666 ezx) converter code]),
1626 [
1627 if test "x$enableval" = "xyes" ; then
1628 AC_DEFINE(BUILD_CONVERT_24_RGB_666, 1, [24bpp 666 (666 ezx) Converter Support])
1629 conv_24_rgb_ezx="yes"
1630 else
1631 conv_24_rgb_ezx="no"
1632 fi
1633 ], [
1634 if test "x$conv_24_rgb_ezx" = "xyes" ; then
1635 AC_DEFINE(BUILD_CONVERT_24_RGB_666, 1, [24bpp 666 (666 ezx) Converter Support])
1636 fi
1637 ]
1638)
1639AC_MSG_RESULT($conv_24_rgb_ezx)
1640
1641#######################################
1642## Convert to 32bpp RGB 666 (666 ezx)
1643conv_32_rgb_ezx="yes"
1644AC_MSG_CHECKING(whether to build 32bpp 666 (666 ezx) converter code)
1645AC_ARG_ENABLE(convert-32-rgb-ezx,
1646 AC_HELP_STRING([--disable-convert-32-rgb-ezx], [disable 32bpp 666 (666 ezx) converter code]),
1647 [
1648 if test "x$enableval" = "xyes" ; then
1649 AC_DEFINE(BUILD_CONVERT_32_RGB_666, 1, [32bpp 666 (666 ezx) Converter Support])
1650 conv_32_rgb_ezx="yes"
1651 else
1652 conv_32_rgb_ezx="no"
1653 fi
1654 ], [
1655 if test "x$conv_32_rgb_ezx" = "xyes" ; then
1656 AC_DEFINE(BUILD_CONVERT_32_RGB_666, 1, [32bpp 666 (666 ezx) Converter Support])
1657 fi
1658 ]
1659)
1660AC_MSG_RESULT($conv_32_rgb_ezx)
1661
1662#######################################
1663## Convert to 32bpp RGB with rotation of 0
1664EVAS_CONVERT_ROT(32, RGB, 0)
1665## Convert to 32bpp RGB with rotation of 180
1666EVAS_CONVERT_ROT(32, RGB, 180)
1667## Convert to 32bpp RGB with rotation of 270
1668EVAS_CONVERT_ROT(32, RGB, 270)
1669## Convert to 32bpp RGB with rotation of 90
1670EVAS_CONVERT_ROT(32, RGB, 90)
1671
1672#######################################
1673## Convert to 8bpp grayscale with 256 value, no palette
1674EVAS_CONVERT_COLOR(8, GRY, 1)
1675## Convert to 8bpp grayscale with 16 value, no palette
1676EVAS_CONVERT_COLOR(8, GRY, 16)
1677
1678#######################################
1679## Convert to 8bpp grayscale, 64-palette
1680conv_8_grayscale_64="yes"
1681AC_MSG_CHECKING(whether to build 8bpp grayscale 64-palette converter code)
1682AC_ARG_ENABLE(convert-8-grayscale-64,
1683 AC_HELP_STRING([--disable-convert-8-grayscale-64], [disable 8bpp grayscale 64-palette converter code]),
1684 [
1685 if test "x$enableval" = "xyes"; then
1686 AC_DEFINE(BUILD_CONVERT_8_GRAYSCALE_64, 1, [8bpp Grayscale 64-palette Converter Support])
1687 conv_8_grayscale_64="yes"
1688 else
1689 conv_8_grayscale_64="no"
1690 fi
1691 ], [
1692 if test "x$conv_8_grayscale_64" = "xyes"; then
1693 AC_DEFINE(BUILD_CONVERT_8_GRAYSCALE_64, 1, [32bpp Grayscale 64-palette Converter Support])
1694 fi
1695 ]
1696)
1697AC_MSG_RESULT($conv_8_grayscale_64)
1698
1699## valgrind
1700want_valgrind="no"
1701have_valgrind="no"
1702
1703AC_MSG_CHECKING(whether to enable build with valgrind)
1704AC_ARG_ENABLE(valgrind,
1705 AC_HELP_STRING([--enable-valgrind], [enable valgrind fixes to stop false reports]),
1706 [ want_valgrind=$enableval ]
1707)
1708AC_MSG_RESULT($want_valgrind)
1709
1710if test x$want_valgrind = "xyes"; then
1711 PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
1712 [
1713 AC_DEFINE(HAVE_VALGRIND, 1, [Valgrind support])
1714 have_valgrind=yes
1715 requirement_evas="valgrind ${requirement_evas}"
1716 ],
1717 [
1718 if test "x$want_valgrind" = "xyes" -a "x$use_strict" = "xyes" ; then
1719 AC_MSG_ERROR([Valgrind not found (strict dependencies checking)])
1720 fi
1721 ]
1722 )
1723fi
1724
1725## Examples
1726
1727install_examples="yes"
1728AC_ARG_ENABLE([install-examples],
1729 AC_HELP_STRING([--disable-install-examples],
1730 [disable installing examples (compiled or just source).
1731 @<:@default==enabled@:>@]),
1732 [
1733 if test "x${enableval}" = "xyes" ; then
1734 install_examples="yes"
1735 else
1736 install_examples="no"
1737 fi
1738 ],
1739 [install_examples="yes"])
1740AM_CONDITIONAL([INSTALL_EXAMPLES], [test "x${install_examples}" = "xyes"])
1741
1742build_examples="no"
1743AC_ARG_ENABLE([build-examples],
1744 AC_HELP_STRING([--enable-build-examples],
1745 [enable building examples (this requires extra denpendencies. if you don't have them installed yet, don't build with this option or it will fail. build again when you have it, overriding the previous installation). @<:@default==disabled@:>@]),
1746 [
1747 if test "x${enableval}" = "xyes" ; then
1748 build_examples="yes"
1749 # put in here the dependencies for Evas' examples. they are
1750 # meant to be 'real world' usage examples, thus one will be
1751 # using higher level libraries on these programs
1752 PKG_CHECK_MODULES([ECORE_EVAS], [ecore-evas ecore], [], [build_examples="no"])
1753 PKG_CHECK_MODULES([EDJE], [edje],
1754 [edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc],
1755 [build_examples="no"])
1756 AC_SUBST(edje_cc)
1757 else
1758 build_examples="no"
1759 fi
1760 ],
1761 [build_examples="no"])
1762AM_CONDITIONAL([BUILD_EXAMPLES], [test "x${build_examples}" = "xyes"])
1763
1764## Unit tests, coverage
1765
1766EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
1767
1768EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"])
1769EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_COVERAGE_CFLAGS}"
1770EVAS_LIBS="${EVAS_LIBS} ${EFL_COVERAGE_LIBS}"
1771if test "x$enable_coverage" = "xyes" ; then
1772 EVAS_CFLAGS="${EVAS_CFLAGS} ${EFL_DEBUG_CFLAGS}"
1773fi
1774
1775AC_SUBST(EVAS_CFLAGS)
1776AC_SUBST(EVAS_LIBS)
1777
1778#####################################################################
1779## Fill in flags
1780
1781AC_SUBST(altivec_cflags)
1782AC_SUBST(pthread_cflags)
1783AC_SUBST(pthread_libs)
1784AC_SUBST(requirement_evas)
1785
1786
1787#####################################################################
1788## Output
1789
1790AC_OUTPUT([
1791Makefile
1792evas-directfb.pc
1793evas-fb.pc
1794evas-opengl-x11.pc
1795evas-opengl-sdl.pc
1796evas-opengl-cocoa.pc
1797evas-software-buffer.pc
1798evas-software-x11.pc
1799evas-software-8-x11.pc
1800evas-software-16-x11.pc
1801evas-software-gdi.pc
1802evas-software-ddraw.pc
1803evas-software-16-ddraw.pc
1804evas-direct3d.pc
1805evas-software-16-wince.pc
1806evas-software-sdl.pc
1807evas-psl1ght.pc
1808evas.pc
1809doc/evas.dox
1810doc/Makefile
1811doc/Doxyfile
1812src/Makefile
1813src/bin/Makefile
1814src/lib/Makefile
1815src/lib/canvas/Makefile
1816src/lib/file/Makefile
1817src/lib/cache/Makefile
1818src/lib/cserve/Makefile
1819src/lib/engines/Makefile
1820src/lib/engines/common/Makefile
1821src/lib/engines/common/evas_op_add/Makefile
1822src/lib/engines/common/evas_op_blend/Makefile
1823src/lib/engines/common/evas_op_copy/Makefile
1824src/lib/engines/common/evas_op_mask/Makefile
1825src/lib/engines/common/evas_op_mul/Makefile
1826src/lib/engines/common/evas_op_sub/Makefile
1827src/lib/engines/common_8/Makefile
1828src/lib/engines/common_16/Makefile
1829src/modules/Makefile
1830src/modules/engines/Makefile
1831src/modules/engines/software_generic/Makefile
1832src/modules/engines/software_gdi/Makefile
1833src/modules/engines/software_ddraw/Makefile
1834src/modules/engines/direct3d/Makefile
1835src/modules/engines/software_16_wince/Makefile
1836src/modules/engines/software_x11/Makefile
1837src/modules/engines/fb/Makefile
1838src/modules/engines/buffer/Makefile
1839src/modules/engines/directfb/Makefile
1840src/modules/engines/gl_common/Makefile
1841src/modules/engines/gl_x11/Makefile
1842src/modules/engines/gl_sdl/Makefile
1843src/modules/engines/gl_cocoa/Makefile
1844src/modules/engines/psl1ght/Makefile
1845src/modules/engines/software_sdl/Makefile
1846src/modules/engines/software_8/Makefile
1847src/modules/engines/software_8_x11/Makefile
1848src/modules/engines/software_16/Makefile
1849src/modules/engines/software_16_x11/Makefile
1850src/modules/engines/software_16_ddraw/Makefile
1851src/modules/engines/software_16_sdl/Makefile
1852src/modules/loaders/Makefile
1853src/modules/loaders/edb/Makefile
1854src/modules/loaders/eet/Makefile
1855src/modules/loaders/gif/Makefile
1856src/modules/loaders/jpeg/Makefile
1857src/modules/loaders/png/Makefile
1858src/modules/loaders/tiff/Makefile
1859src/modules/loaders/xpm/Makefile
1860src/modules/loaders/bmp/Makefile
1861src/modules/loaders/ico/Makefile
1862src/modules/loaders/tga/Makefile
1863src/modules/loaders/svg/Makefile
1864src/modules/loaders/pmaps/Makefile
1865src/modules/loaders/wbmp/Makefile
1866src/modules/loaders/psd/Makefile
1867src/modules/loaders/generic/Makefile
1868src/modules/savers/Makefile
1869src/modules/savers/edb/Makefile
1870src/modules/savers/eet/Makefile
1871src/modules/savers/jpeg/Makefile
1872src/modules/savers/png/Makefile
1873src/modules/savers/tiff/Makefile
1874src/static_deps/Makefile
1875src/static_deps/liblinebreak/Makefile
1876src/lib/include/Makefile
1877src/examples/Makefile
1878src/tests/Makefile
1879evas.spec
1880])
1881
1882#####################################################################
1883## Sanity Checks
1884
1885if test "x$build_pthreads" = "xno" ; then
1886 if test "x$build_async_render" = "xyes" ; then
1887 echo "ERROR: PThreads off, but async rendering on. Async rendering"
1888 echo " needs thread support."
1889 exit 1
1890 fi
1891 if test "x$build_pipe_render" = "xyes" ; then
1892 echo "ERROR: PThreads off, but pipe rendering on. Pipe rendering"
1893 echo " needs thread support."
1894 exit 1
1895 fi
1896fi
1897
1898if test "x${has_pthreads}" = "xno" ; then
1899 if test "x$build_async_preload" = "xyes" ; then
1900 echo "ERROR: PThreads off, but Async Preload on. Async Preload"
1901 echo " needs thread support."
1902 exit 1
1903 fi
1904fi
1905
1906#####################################################################
1907## Info
1908
1909echo
1910echo
1911echo
1912echo "------------------------------------------------------------------------"
1913echo "$PACKAGE $VERSION"
1914echo "------------------------------------------------------------------------"
1915echo
1916echo "Configuration Options Summary:"
1917echo
1918echo "Engines:"
1919echo " Software Memory Buffer.....: $have_evas_engine_buffer"
1920echo " Software X11...............: $have_evas_engine_software_x11 (Xlib: $have_evas_engine_software_xlib) (XCB: $have_evas_engine_software_xcb)"
1921echo $ECHO_N " OpenGL X11.................: $have_evas_engine_gl_x11 (Xlib: $have_evas_engine_gl_xlib) (XCB: $have_evas_engine_gl_xcb) $ECHO_C"
1922if test "x$have_evas_engine_gl_x11" = "xyes"; then
1923 echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)"
1924else
1925 echo
1926fi
1927echo " Software GDI...............: $have_evas_engine_software_gdi"
1928echo " Software DirectDraw........: $have_evas_engine_software_ddraw"
1929echo " Direct3d...................: $have_evas_engine_direct3d"
1930echo " Software SDL...............: $have_evas_engine_software_sdl (primitive: $sdl_primitive)"
1931echo $ECHO_N " OpenGL SDL.................: $have_evas_engine_gl_sdl $ECHO_C"
1932if test "x$have_evas_engine_gl_sdl" = "xyes"; then
1933 echo "(GLES: $gl_flavor_gles) (SGX: $gles_variety_sgx) (s3c6410: $gles_variety_s3c6410)"
1934else
1935 echo
1936fi
1937echo " OpenGL Cocoa...............: $have_evas_engine_gl_cocoa"
1938echo " Software Framebuffer.......: $have_evas_engine_fb"
1939echo " DirectFB...................: $have_evas_engine_directfb"
1940echo " PSL1GHT....................: $have_evas_engine_psl1ght"
1941echo " Software 8bit grayscale....: $have_evas_engine_software_8"
1942# FIXME: kill software 16bit
1943echo " Software 16bit ............: $have_evas_engine_software_16"
1944echo " Software 16bit X11.........: $have_evas_engine_software_16_x11"
1945echo " Software 16bit Directdraw..: $have_evas_engine_software_16_ddraw"
1946echo " Software 16bit WinCE.......: $have_evas_engine_software_16_wince"
1947echo " Software 16bit SDL.........: $have_evas_engine_software_16_sdl (primitive: $sdl_primitive)"
1948echo
1949echo "Image Loaders:"
1950echo " BMP.....................: $have_evas_image_loader_bmp"
1951echo " EDB.....................: $have_evas_image_loader_edb"
1952echo " EET.....................: $have_evas_image_loader_eet"
1953echo " GENERIC.................: $have_evas_image_loader_generic"
1954echo " GIF.....................: $have_evas_image_loader_gif"
1955echo " ICO.....................: $have_evas_image_loader_ico"
1956echo " JPEG....................: $have_evas_image_loader_jpeg (region: $have_jpeg_region)"
1957echo " PMAPS...................: $have_evas_image_loader_pmaps"
1958echo " PNG.....................: $have_evas_image_loader_png"
1959echo " PSD.....................: $have_evas_image_loader_psd"
1960echo " SVG.....................: $have_evas_image_loader_svg"
1961echo " TGA.....................: $have_evas_image_loader_tga"
1962echo " TIFF....................: $have_evas_image_loader_tiff"
1963echo " WBMP....................: $have_evas_image_loader_wbmp"
1964echo " XPM.....................: $have_evas_image_loader_xpm"
1965echo
1966echo "Font Sourcing Systems:"
1967echo " EET.....................: $have_evas_font_loader_eet"
1968echo
1969echo "Font Searching Systems:"
1970echo " Fontconfig..............: $have_fontconfig"
1971echo
1972echo "Font Rendering Helpers:"
1973echo " Fribidi.................: $have_fribidi"
1974echo " Harfbuzz................: $have_harfbuzz"
1975echo " liblinebreak............: $have_linebreak"
1976# FIXME: add non freetype2 font engine support
1977# FIXME: make freetype2 optional
1978echo
1979echo "CPU Specific Extensions:"
1980echo " Fallback C Code.........: $build_cpu_c"
1981echo " MMX.....................: $build_cpu_mmx"
1982echo " SSE.....................: $build_cpu_sse"
1983echo " SSE3....................: $build_cpu_sse3"
1984echo " ALTIVEC.................: $build_cpu_altivec"
1985echo " NEON....................: $build_cpu_neon"
1986echo " Thread Support..........: $build_pthreads"
1987echo
1988echo "Features:"
1989echo " MAGIC_DEBUG.............: $want_evas_magic_debug"
1990echo " Cache Server............: $want_evas_cserve"
1991echo
1992dnl
1993dnl ... DISABLED! some testing has shown that this seems to have some
1994dnl nasty bugs on both x86 and arm (tegra2 dual core tested), so just
1995dnl disabling this for now until it can be fixed
1996dnl
1997echo " Threaded Pipe Rendering.: $build_pipe_render"
1998echo " Async Pipe Rendering....: $build_async_render"
1999echo " Async Events............: $build_async_events"
2000echo " Async Image Preload.....: $build_async_preload"
2001echo
2002echo " Word Cache..............: $want_word_cache"
2003echo " Metric Cache............: $want_metric_cache"
2004echo
2005echo "ARGB Software Engine Options:"
2006echo " Sampling Scaler.........: $scaler_sample"
2007echo " Smooth Scaler...........: $scaler_smooth"
2008# FIXME: add an mmx scaler routine
2009echo " YUV Converter...........: $conv_yuv"
2010# FIXME: add more YUV format and colorvariant support
2011echo
2012echo "ARGB Conversion Options:"
2013echo " Smaller Dither Mask.....: $conv_small_dither"
2014echo " Line Dither Mask........: $conv_line_dither"
2015echo " No Dither Mask for 16bpp: $conv_no_dither"
2016echo " 8bpp RGB 332............: $conv_8_rgb_332"
2017echo " 8bpp RGB 666............: $conv_8_rgb_666"
2018echo " 8bpp RGB 232............: $conv_8_rgb_232"
2019echo " 8bpp RGB 222............: $conv_8_rgb_222"
2020echo " 8bpp RGB 221............: $conv_8_rgb_221"
2021echo " 8bpp RGB 121............: $conv_8_rgb_121"
2022echo " 8bpp RGB 111............: $conv_8_rgb_111"
2023echo " 8bpp Grayscale (256)....: $conv_8_gry_1"
2024echo " 8bpp Grayscale (16).....: $conv_8_gry_16"
2025echo " 8bpp Grayscale 64-pal...: $conv_8_grayscale_64"
2026# FIXME: add grayscale and B&W support to standard x converters
2027echo " 16bpp RGB 565...........: $conv_16_rgb_565"
2028echo " 16bpp BGR 565...........: $conv_16_bgr_565"
2029echo " 16bpp RGB 555...........: $conv_16_rgb_555"
2030echo " 16bpp RGB 444...........: $conv_16_rgb_444"
2031echo " 16bpp RGB 565 (444 ipaq): $conv_16_rgb_ipq"
2032# FIXME: add 555 (444 ipaq) support
2033# FIXME: add 30bpp support
2034# FIXME: add palletted support (ugh!)
2035# FIXME: add 8bpp and below rotation
2036echo " 16bpp Rotation 0........: $conv_16_rgb_rot_0"
2037echo " 16bpp Rotation 90.......: $conv_16_rgb_rot_90"
2038echo " 16bpp Rotation 180......: $conv_16_rgb_rot_180"
2039echo " 16bpp Rotation 270......: $conv_16_rgb_rot_270"
2040echo " 24bpp RGB 888...........: $conv_24_rgb_888"
2041echo " 24bpp BGR 888...........: $conv_24_bgr_888"
2042echo " 24bpp RGB 666 (666 ezx).: $conv_24_rgb_ezx"
2043# FIXME: add 24bpp rotation
2044echo " 32bpp RGB 8888..........: $conv_32_rgb_8888"
2045echo " 32bpp RGBX 8888.........: $conv_32_rgbx_8888"
2046echo " 32bpp BGR 8888..........: $conv_32_bgr_8888"
2047echo " 32bpp BGRX 8888.........: $conv_32_bgrx_8888"
2048echo " 32bpp RGB 666 (666 ezx).: $conv_32_rgb_ezx"
2049echo " 32bpp Rotation 0........: $conv_32_rgb_rot_0"
2050echo " 32bpp Rotation 90.......: $conv_32_rgb_rot_90"
2051echo " 32bpp Rotation 180......: $conv_32_rgb_rot_180"
2052echo " 32bpp Rotation 270......: $conv_32_rgb_rot_270"
2053echo
2054echo "Documentation.............: ${build_doc}"
2055echo "Examples..................: install:${install_examples} build:${build_examples}"
2056if test "x${enable_tests}" = "xyes" ; then
2057 echo "Tests.....................: ${enable_tests} (make check)"
2058else
2059 echo "Tests.....................: ${enable_tests}"
2060fi
2061if test "x${enable_coverage}" = "xyes" ; then
2062 echo "Coverage..................: ${enable_coverage} (make coverage)"
2063else
2064 echo "Coverage..................: ${enable_coverage}"
2065fi
2066echo
2067echo "Compilation............: make (or gmake)"
2068echo " CPPFLAGS.............: $CPPFLAGS"
2069echo " CFLAGS...............: $CFLAGS"
2070echo " CXXFLAGS.............: $CXXFLAGS"
2071echo " LDFLAGS..............: $LDFLAGS"
2072echo
2073echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
2074echo " prefix...............: $prefix"
2075echo
2076if test "x${have_static_module}" = "xyes" ; then
2077echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Evas."
2078echo " You must know what you are doing, or else you will have a lot of"
2079echo " problems. And Kenny will be killed."
2080echo " Think about that."
2081echo
2082fi