1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TI IPC 3.0.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
394 tagnames=${tagnames+${tagnames},}CXX
396 # Name of the host.
397 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
398 # so uname gets run too.
399 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 exec 6>&1
403 #
404 # Initializations.
405 #
406 ac_default_prefix=/usr/local
407 ac_config_libobj_dir=.
408 cross_compiling=no
409 subdirs=
410 MFLAGS=
411 MAKEFLAGS=
412 SHELL=${CONFIG_SHELL-/bin/sh}
414 # Maximum number of lines to put in a shell here document.
415 # This variable seems obsolete. It should probably be removed, and
416 # only ac_max_sed_lines should be used.
417 : ${ac_max_here_lines=38}
419 # Identity of this package.
420 PACKAGE_NAME='TI IPC'
421 PACKAGE_TARNAME='ti-ipc'
422 PACKAGE_VERSION='3.0.0'
423 PACKAGE_STRING='TI IPC 3.0.0'
424 PACKAGE_BUGREPORT=''
426 ac_unique_file="packages/ti/ipc/MessageQ.h"
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 # include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 # include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 # include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
464 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL AM_CFLAGS AM_LDFLAGS PLATFORM CMEM_INSTALL_DIR KERNEL_INSTALL_DIR DRM_PREFIX OMAPL138_TRUE OMAPL138_FALSE TCI6614_TRUE TCI6614_FALSE TCI6636_TRUE TCI6636_FALSE TCI6638_TRUE TCI6638_FALSE OMAP54XX_SMP_TRUE OMAP54XX_SMP_FALSE DRA7XX_TRUE DRA7XX_FALSE CMEM_TRUE CMEM_FALSE KDIR_TRUE KDIR_FALSE DRM_TRUE DRM_FALSE LIBOBJS LTLIBOBJS'
465 ac_subst_files=''
467 # Initialize some variables set by options.
468 ac_init_help=
469 ac_init_version=false
470 # The variables have the same names as the options, with
471 # dashes changed to underlines.
472 cache_file=/dev/null
473 exec_prefix=NONE
474 no_create=
475 no_recursion=
476 prefix=NONE
477 program_prefix=NONE
478 program_suffix=NONE
479 program_transform_name=s,x,x,
480 silent=
481 site=
482 srcdir=
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
487 # Installation directory options.
488 # These are left unexpanded so users can "make install exec_prefix=/foo"
489 # and all the variables that are supposed to be based on exec_prefix
490 # by default will actually change.
491 # Use braces instead of parens because sh, perl, etc. also accept them.
492 bindir='${exec_prefix}/bin'
493 sbindir='${exec_prefix}/sbin'
494 libexecdir='${exec_prefix}/libexec'
495 datadir='${prefix}/share'
496 sysconfdir='${prefix}/etc'
497 sharedstatedir='${prefix}/com'
498 localstatedir='${prefix}/var'
499 libdir='${exec_prefix}/lib'
500 includedir='${prefix}/include'
501 oldincludedir='/usr/include'
502 infodir='${prefix}/info'
503 mandir='${prefix}/man'
505 ac_prev=
506 for ac_option
507 do
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
513 fi
515 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517 # Accept the important Cygnus configure options, so we can diagnose typos.
519 case $ac_option in
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 bindir=$ac_optarg ;;
526 -build | --build | --buil | --bui | --bu)
527 ac_prev=build_alias ;;
528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529 build_alias=$ac_optarg ;;
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536 cache_file=$ac_optarg ;;
538 --config-cache | -C)
539 cache_file=config.cache ;;
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
545 datadir=$ac_optarg ;;
547 -disable-* | --disable-*)
548 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
549 # Reject names that are not valid shell variable names.
550 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
552 { (exit 1); exit 1; }; }
553 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
554 eval "enable_$ac_feature=no" ;;
556 -enable-* | --enable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 case $ac_option in
564 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 *) ac_optarg=yes ;;
566 esac
567 eval "enable_$ac_feature='$ac_optarg'" ;;
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
576 exec_prefix=$ac_optarg ;;
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
582 -help | --help | --hel | --he | -h)
583 ac_init_help=long ;;
584 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
585 ac_init_help=recursive ;;
586 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
587 ac_init_help=short ;;
589 -host | --host | --hos | --ho)
590 ac_prev=host_alias ;;
591 -host=* | --host=* | --hos=* | --ho=*)
592 host_alias=$ac_optarg ;;
594 -includedir | --includedir | --includedi | --included | --include \
595 | --includ | --inclu | --incl | --inc)
596 ac_prev=includedir ;;
597 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
598 | --includ=* | --inclu=* | --incl=* | --inc=*)
599 includedir=$ac_optarg ;;
601 -infodir | --infodir | --infodi | --infod | --info | --inf)
602 ac_prev=infodir ;;
603 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
604 infodir=$ac_optarg ;;
606 -libdir | --libdir | --libdi | --libd)
607 ac_prev=libdir ;;
608 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 libdir=$ac_optarg ;;
611 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
612 | --libexe | --libex | --libe)
613 ac_prev=libexecdir ;;
614 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
615 | --libexe=* | --libex=* | --libe=*)
616 libexecdir=$ac_optarg ;;
618 -localstatedir | --localstatedir | --localstatedi | --localstated \
619 | --localstate | --localstat | --localsta | --localst \
620 | --locals | --local | --loca | --loc | --lo)
621 ac_prev=localstatedir ;;
622 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
623 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
624 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
625 localstatedir=$ac_optarg ;;
627 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
628 ac_prev=mandir ;;
629 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 mandir=$ac_optarg ;;
632 -nfp | --nfp | --nf)
633 # Obsolete; use --without-fp.
634 with_fp=no ;;
636 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
637 | --no-cr | --no-c | -n)
638 no_create=yes ;;
640 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 no_recursion=yes ;;
644 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
645 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
646 | --oldin | --oldi | --old | --ol | --o)
647 ac_prev=oldincludedir ;;
648 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
649 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
650 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
651 oldincludedir=$ac_optarg ;;
653 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
654 ac_prev=prefix ;;
655 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 prefix=$ac_optarg ;;
658 -program-prefix | --program-prefix | --program-prefi | --program-pref \
659 | --program-pre | --program-pr | --program-p)
660 ac_prev=program_prefix ;;
661 -program-prefix=* | --program-prefix=* | --program-prefi=* \
662 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
663 program_prefix=$ac_optarg ;;
665 -program-suffix | --program-suffix | --program-suffi | --program-suff \
666 | --program-suf | --program-su | --program-s)
667 ac_prev=program_suffix ;;
668 -program-suffix=* | --program-suffix=* | --program-suffi=* \
669 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
670 program_suffix=$ac_optarg ;;
672 -program-transform-name | --program-transform-name \
673 | --program-transform-nam | --program-transform-na \
674 | --program-transform-n | --program-transform- \
675 | --program-transform | --program-transfor \
676 | --program-transfo | --program-transf \
677 | --program-trans | --program-tran \
678 | --progr-tra | --program-tr | --program-t)
679 ac_prev=program_transform_name ;;
680 -program-transform-name=* | --program-transform-name=* \
681 | --program-transform-nam=* | --program-transform-na=* \
682 | --program-transform-n=* | --program-transform-=* \
683 | --program-transform=* | --program-transfor=* \
684 | --program-transfo=* | --program-transf=* \
685 | --program-trans=* | --program-tran=* \
686 | --progr-tra=* | --program-tr=* | --program-t=*)
687 program_transform_name=$ac_optarg ;;
689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
690 | -silent | --silent | --silen | --sile | --sil)
691 silent=yes ;;
693 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
694 ac_prev=sbindir ;;
695 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
696 | --sbi=* | --sb=*)
697 sbindir=$ac_optarg ;;
699 -sharedstatedir | --sharedstatedir | --sharedstatedi \
700 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
701 | --sharedst | --shareds | --shared | --share | --shar \
702 | --sha | --sh)
703 ac_prev=sharedstatedir ;;
704 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
705 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
706 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
707 | --sha=* | --sh=*)
708 sharedstatedir=$ac_optarg ;;
710 -site | --site | --sit)
711 ac_prev=site ;;
712 -site=* | --site=* | --sit=*)
713 site=$ac_optarg ;;
715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
716 ac_prev=srcdir ;;
717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 srcdir=$ac_optarg ;;
720 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
721 | --syscon | --sysco | --sysc | --sys | --sy)
722 ac_prev=sysconfdir ;;
723 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
724 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
725 sysconfdir=$ac_optarg ;;
727 -target | --target | --targe | --targ | --tar | --ta | --t)
728 ac_prev=target_alias ;;
729 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
730 target_alias=$ac_optarg ;;
732 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 verbose=yes ;;
735 -version | --version | --versio | --versi | --vers | -V)
736 ac_init_version=: ;;
738 -with-* | --with-*)
739 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package=`echo $ac_package| sed 's/-/_/g'`
745 case $ac_option in
746 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 *) ac_optarg=yes ;;
748 esac
749 eval "with_$ac_package='$ac_optarg'" ;;
751 -without-* | --without-*)
752 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package | sed 's/-/_/g'`
758 eval "with_$ac_package=no" ;;
760 --x)
761 # Obsolete; use --with-x.
762 with_x=yes ;;
764 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
765 | --x-incl | --x-inc | --x-in | --x-i)
766 ac_prev=x_includes ;;
767 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
768 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
769 x_includes=$ac_optarg ;;
771 -x-libraries | --x-libraries | --x-librarie | --x-librari \
772 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
773 ac_prev=x_libraries ;;
774 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
775 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
776 x_libraries=$ac_optarg ;;
778 -*) { echo "$as_me: error: unrecognized option: $ac_option
779 Try \`$0 --help' for more information." >&2
780 { (exit 1); exit 1; }; }
781 ;;
783 *=*)
784 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
787 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
788 { (exit 1); exit 1; }; }
789 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
790 eval "$ac_envvar='$ac_optarg'"
791 export $ac_envvar ;;
793 *)
794 # FIXME: should be removed in autoconf 3.0.
795 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
796 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
798 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 ;;
801 esac
802 done
804 if test -n "$ac_prev"; then
805 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
806 { echo "$as_me: error: missing argument to $ac_option" >&2
807 { (exit 1); exit 1; }; }
808 fi
810 # Be sure to have absolute paths.
811 for ac_var in exec_prefix prefix
812 do
813 eval ac_val=$`echo $ac_var`
814 case $ac_val in
815 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
816 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
817 { (exit 1); exit 1; }; };;
818 esac
819 done
821 # Be sure to have absolute paths.
822 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
823 localstatedir libdir includedir oldincludedir infodir mandir
824 do
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831 done
833 # There might be people who depend on the old broken behavior: `$host'
834 # used to hold the argument of --host etc.
835 # FIXME: To remove some day.
836 build=$build_alias
837 host=$host_alias
838 target=$target_alias
840 # FIXME: To remove some day.
841 if test "x$host_alias" != x; then
842 if test "x$build_alias" = x; then
843 cross_compiling=maybe
844 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
845 If a cross compiler is detected then cross compile mode will be used." >&2
846 elif test "x$build_alias" != "x$host_alias"; then
847 cross_compiling=yes
848 fi
849 fi
851 ac_tool_prefix=
852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854 test "$silent" = yes && exec 6>/dev/null
857 # Find the source files, if location was not specified.
858 if test -z "$srcdir"; then
859 ac_srcdir_defaulted=yes
860 # Try the directory containing this script, then its parent.
861 ac_confdir=`(dirname "$0") 2>/dev/null ||
862 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
863 X"$0" : 'X\(//\)[^/]' \| \
864 X"$0" : 'X\(//\)$' \| \
865 X"$0" : 'X\(/\)' \| \
866 . : '\(.\)' 2>/dev/null ||
867 echo X"$0" |
868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
870 /^X\(\/\/\)$/{ s//\1/; q; }
871 /^X\(\/\).*/{ s//\1/; q; }
872 s/.*/./; q'`
873 srcdir=$ac_confdir
874 if test ! -r $srcdir/$ac_unique_file; then
875 srcdir=..
876 fi
877 else
878 ac_srcdir_defaulted=no
879 fi
880 if test ! -r $srcdir/$ac_unique_file; then
881 if test "$ac_srcdir_defaulted" = yes; then
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
883 { (exit 1); exit 1; }; }
884 else
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886 { (exit 1); exit 1; }; }
887 fi
888 fi
889 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
890 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
891 { (exit 1); exit 1; }; }
892 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
893 ac_env_build_alias_set=${build_alias+set}
894 ac_env_build_alias_value=$build_alias
895 ac_cv_env_build_alias_set=${build_alias+set}
896 ac_cv_env_build_alias_value=$build_alias
897 ac_env_host_alias_set=${host_alias+set}
898 ac_env_host_alias_value=$host_alias
899 ac_cv_env_host_alias_set=${host_alias+set}
900 ac_cv_env_host_alias_value=$host_alias
901 ac_env_target_alias_set=${target_alias+set}
902 ac_env_target_alias_value=$target_alias
903 ac_cv_env_target_alias_set=${target_alias+set}
904 ac_cv_env_target_alias_value=$target_alias
905 ac_env_CC_set=${CC+set}
906 ac_env_CC_value=$CC
907 ac_cv_env_CC_set=${CC+set}
908 ac_cv_env_CC_value=$CC
909 ac_env_CFLAGS_set=${CFLAGS+set}
910 ac_env_CFLAGS_value=$CFLAGS
911 ac_cv_env_CFLAGS_set=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value=$CFLAGS
913 ac_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_env_LDFLAGS_value=$LDFLAGS
915 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_cv_env_LDFLAGS_value=$LDFLAGS
917 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_env_CPPFLAGS_value=$CPPFLAGS
919 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
921 ac_env_CPP_set=${CPP+set}
922 ac_env_CPP_value=$CPP
923 ac_cv_env_CPP_set=${CPP+set}
924 ac_cv_env_CPP_value=$CPP
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CXXCPP_set=${CXXCPP+set}
934 ac_env_CXXCPP_value=$CXXCPP
935 ac_cv_env_CXXCPP_set=${CXXCPP+set}
936 ac_cv_env_CXXCPP_value=$CXXCPP
937 ac_env_PLATFORM_set=${PLATFORM+set}
938 ac_env_PLATFORM_value=$PLATFORM
939 ac_cv_env_PLATFORM_set=${PLATFORM+set}
940 ac_cv_env_PLATFORM_value=$PLATFORM
941 ac_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
942 ac_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
943 ac_cv_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
944 ac_cv_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
945 ac_env_KERNEL_INSTALL_DIR_set=${KERNEL_INSTALL_DIR+set}
946 ac_env_KERNEL_INSTALL_DIR_value=$KERNEL_INSTALL_DIR
947 ac_cv_env_KERNEL_INSTALL_DIR_set=${KERNEL_INSTALL_DIR+set}
948 ac_cv_env_KERNEL_INSTALL_DIR_value=$KERNEL_INSTALL_DIR
949 ac_env_DRM_PREFIX_set=${DRM_PREFIX+set}
950 ac_env_DRM_PREFIX_value=$DRM_PREFIX
951 ac_cv_env_DRM_PREFIX_set=${DRM_PREFIX+set}
952 ac_cv_env_DRM_PREFIX_value=$DRM_PREFIX
954 #
955 # Report the --help message.
956 #
957 if test "$ac_init_help" = "long"; then
958 # Omit some internal or obsolete options to make the list less imposing.
959 # This message is too long to be a string in the A/UX 3.1 sh.
960 cat <<_ACEOF
961 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
963 Usage: $0 [OPTION]... [VAR=VALUE]...
965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
966 VAR=VALUE. See below for descriptions of some of the useful variables.
968 Defaults for the options are specified in brackets.
970 Configuration:
971 -h, --help display this help and exit
972 --help=short display options specific to this package
973 --help=recursive display the short help of all the included packages
974 -V, --version display version information and exit
975 -q, --quiet, --silent do not print \`checking...' messages
976 --cache-file=FILE cache test results in FILE [disabled]
977 -C, --config-cache alias for \`--cache-file=config.cache'
978 -n, --no-create do not create output files
979 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 _ACEOF
983 cat <<_ACEOF
984 Installation directories:
985 --prefix=PREFIX install architecture-independent files in PREFIX
986 [$ac_default_prefix]
987 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
988 [PREFIX]
990 By default, \`make install' will install all the files in
991 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
992 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993 for instance \`--prefix=\$HOME'.
995 For better control, use the options below.
997 Fine tuning of the installation directories:
998 --bindir=DIR user executables [EPREFIX/bin]
999 --sbindir=DIR system admin executables [EPREFIX/sbin]
1000 --libexecdir=DIR program executables [EPREFIX/libexec]
1001 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1005 --libdir=DIR object code libraries [EPREFIX/lib]
1006 --includedir=DIR C header files [PREFIX/include]
1007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1008 --infodir=DIR info documentation [PREFIX/info]
1009 --mandir=DIR man documentation [PREFIX/man]
1010 _ACEOF
1012 cat <<\_ACEOF
1014 Program names:
1015 --program-prefix=PREFIX prepend PREFIX to installed program names
1016 --program-suffix=SUFFIX append SUFFIX to installed program names
1017 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1019 System types:
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 _ACEOF
1023 fi
1025 if test -n "$ac_init_help"; then
1026 case $ac_init_help in
1027 short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1028 esac
1029 cat <<\_ACEOF
1031 Optional Features:
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1034 --enable-maintainer-mode enable make rules and dependencies not useful
1035 (and sometimes confusing) to the casual installer
1036 --enable-shared[=PKGS]
1037 build shared libraries [default=yes]
1038 --enable-static[=PKGS]
1039 build static libraries [default=yes]
1040 --enable-fast-install[=PKGS]
1041 optimize for fast installation [default=yes]
1042 --disable-dependency-tracking speeds up one-time build
1043 --enable-dependency-tracking do not reject slow dependency extractors
1044 --disable-libtool-lock avoid locking (might break parallel builds)
1046 Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1050 --with-pic try to use only PIC/non-PIC objects [default=use
1051 both]
1052 --with-tags[=TAGS]
1053 include additional configurations [automatic]
1055 Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CPP C preprocessor
1063 CXX C++ compiler command
1064 CXXFLAGS C++ compiler flags
1065 CXXCPP C++ preprocessor
1066 PLATFORM Platform to build. Options are: 'omapl138' 'omap54xx_smp'
1067 'tci6636' 'tci6638' and 'dra7xx'. If not defined all platforms
1068 will be built.
1069 CMEM_INSTALL_DIR
1070 Installation path directory to the CMEM libraries
1071 KERNEL_INSTALL_DIR
1072 Installation path to the Linux kernel.
1073 DRM_PREFIX Installation location to the DRM library.
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1078 _ACEOF
1079 fi
1081 if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1083 ac_popdir=`pwd`
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1086 ac_builddir=.
1088 if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 else
1093 ac_dir_suffix= ac_top_builddir=
1094 fi
1096 case $srcdir in
1097 .) # No --srcdir option. We are building in place.
1098 ac_srcdir=.
1099 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=.
1101 else
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 fi ;;
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1107 *) # Relative path.
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 esac
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1114 case `pwd` in
1115 .) ac_abs_builddir="$ac_dir";;
1116 *)
1117 case "$ac_dir" in
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1134 *)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 esac;;
1140 esac
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 esac;;
1149 esac
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
1160 test -f $ac_srcdir/configure.in; then
1161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd $ac_popdir
1167 done
1168 fi
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1172 cat <<\_ACEOF
1173 TI IPC configure 3.0.0
1174 generated by GNU Autoconf 2.59
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1179 _ACEOF
1180 exit 0
1181 fi
1182 exec 5>config.log
1183 cat >&5 <<_ACEOF
1184 This file contains any messages produced by compilers while
1185 running configure, to aid debugging if configure makes a mistake.
1187 It was created by TI IPC $as_me 3.0.0, which was
1188 generated by GNU Autoconf 2.59. Invocation command line was
1190 $ $0 $@
1192 _ACEOF
1193 {
1194 cat <<_ASUNAME
1195 ## --------- ##
1196 ## Platform. ##
1197 ## --------- ##
1199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1208 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1209 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1212 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1213 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1214 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1216 _ASUNAME
1218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219 for as_dir in $PATH
1220 do
1221 IFS=$as_save_IFS
1222 test -z "$as_dir" && as_dir=.
1223 echo "PATH: $as_dir"
1224 done
1226 } >&5
1228 cat >&5 <<_ACEOF
1231 ## ----------- ##
1232 ## Core tests. ##
1233 ## ----------- ##
1235 _ACEOF
1238 # Keep a trace of the command line.
1239 # Strip out --no-create and --no-recursion so they do not pile up.
1240 # Strip out --silent because we don't want to record it for future runs.
1241 # Also quote any args containing shell meta-characters.
1242 # Make two passes to allow for proper duplicate-argument suppression.
1243 ac_configure_args=
1244 ac_configure_args0=
1245 ac_configure_args1=
1246 ac_sep=
1247 ac_must_keep_next=false
1248 for ac_pass in 1 2
1249 do
1250 for ac_arg
1251 do
1252 case $ac_arg in
1253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 continue ;;
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 esac
1260 case $ac_pass in
1261 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262 2)
1263 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264 if test $ac_must_keep_next = true; then
1265 ac_must_keep_next=false # Got value, back to normal.
1266 else
1267 case $ac_arg in
1268 *=* | --config-cache | -C | -disable-* | --disable-* \
1269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271 | -with-* | --with-* | -without-* | --without-* | --x)
1272 case "$ac_configure_args0 " in
1273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274 esac
1275 ;;
1276 -* ) ac_must_keep_next=true ;;
1277 esac
1278 fi
1279 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280 # Get rid of the leading space.
1281 ac_sep=" "
1282 ;;
1283 esac
1284 done
1285 done
1286 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289 # When interrupted or exit'd, cleanup temporary files, and complete
1290 # config.log. We remove comments because anyway the quotes in there
1291 # would cause problems or look ugly.
1292 # WARNING: Be sure not to use single quotes in there, as some shells,
1293 # such as our DU 5.0 friend, will then `close' the trap.
1294 trap 'exit_status=$?
1295 # Save into config.log some information that might help in debugging.
1296 {
1297 echo
1299 cat <<\_ASBOX
1300 ## ---------------- ##
1301 ## Cache variables. ##
1302 ## ---------------- ##
1303 _ASBOX
1304 echo
1305 # The following way of writing the cache mishandles newlines in values,
1306 {
1307 (set) 2>&1 |
1308 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309 *ac_space=\ *)
1310 sed -n \
1311 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1313 ;;
1314 *)
1315 sed -n \
1316 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317 ;;
1318 esac;
1319 }
1320 echo
1322 cat <<\_ASBOX
1323 ## ----------------- ##
1324 ## Output variables. ##
1325 ## ----------------- ##
1326 _ASBOX
1327 echo
1328 for ac_var in $ac_subst_vars
1329 do
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1332 done | sort
1333 echo
1335 if test -n "$ac_subst_files"; then
1336 cat <<\_ASBOX
1337 ## ------------- ##
1338 ## Output files. ##
1339 ## ------------- ##
1340 _ASBOX
1341 echo
1342 for ac_var in $ac_subst_files
1343 do
1344 eval ac_val=$`echo $ac_var`
1345 echo "$ac_var='"'"'$ac_val'"'"'"
1346 done | sort
1347 echo
1348 fi
1350 if test -s confdefs.h; then
1351 cat <<\_ASBOX
1352 ## ----------- ##
1353 ## confdefs.h. ##
1354 ## ----------- ##
1355 _ASBOX
1356 echo
1357 sed "/^$/d" confdefs.h | sort
1358 echo
1359 fi
1360 test "$ac_signal" != 0 &&
1361 echo "$as_me: caught signal $ac_signal"
1362 echo "$as_me: exit $exit_status"
1363 } >&5
1364 rm -f core *.core &&
1365 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366 exit $exit_status
1367 ' 0
1368 for ac_signal in 1 2 13 15; do
1369 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370 done
1371 ac_signal=0
1373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1374 rm -rf conftest* confdefs.h
1375 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376 echo >confdefs.h
1378 # Predefined preprocessor variables.
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_NAME "$PACKAGE_NAME"
1382 _ACEOF
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387 _ACEOF
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1392 _ACEOF
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_STRING "$PACKAGE_STRING"
1397 _ACEOF
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402 _ACEOF
1405 # Let the site file select an alternate cache file if it wants to.
1406 # Prefer explicitly selected file to automatically selected ones.
1407 if test -z "$CONFIG_SITE"; then
1408 if test "x$prefix" != xNONE; then
1409 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410 else
1411 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412 fi
1413 fi
1414 for ac_site_file in $CONFIG_SITE; do
1415 if test -r "$ac_site_file"; then
1416 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417 echo "$as_me: loading site script $ac_site_file" >&6;}
1418 sed 's/^/| /' "$ac_site_file" >&5
1419 . "$ac_site_file"
1420 fi
1421 done
1423 if test -r "$cache_file"; then
1424 # Some versions of bash will fail to source /dev/null (special
1425 # files actually), so we avoid doing that.
1426 if test -f "$cache_file"; then
1427 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428 echo "$as_me: loading cache $cache_file" >&6;}
1429 case $cache_file in
1430 [\\/]* | ?:[\\/]* ) . $cache_file;;
1431 *) . ./$cache_file;;
1432 esac
1433 fi
1434 else
1435 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436 echo "$as_me: creating cache $cache_file" >&6;}
1437 >$cache_file
1438 fi
1440 # Check that the precious variables saved in the cache have kept the same
1441 # value.
1442 ac_cache_corrupted=false
1443 for ac_var in `(set) 2>&1 |
1444 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446 eval ac_new_set=\$ac_env_${ac_var}_set
1447 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448 eval ac_new_val="\$ac_env_${ac_var}_value"
1449 case $ac_old_set,$ac_new_set in
1450 set,)
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1454 ,set)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,);;
1459 *)
1460 if test "x$ac_old_val" != "x$ac_new_val"; then
1461 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1462 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1463 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1464 echo "$as_me: former value: $ac_old_val" >&2;}
1465 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1466 echo "$as_me: current value: $ac_new_val" >&2;}
1467 ac_cache_corrupted=:
1468 fi;;
1469 esac
1470 # Pass precious variables to config.status.
1471 if test "$ac_new_set" = set; then
1472 case $ac_new_val in
1473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475 *) ac_arg=$ac_var=$ac_new_val ;;
1476 esac
1477 case " $ac_configure_args " in
1478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1479 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480 esac
1481 fi
1482 done
1483 if $ac_cache_corrupted; then
1484 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488 { (exit 1); exit 1; }; }
1489 fi
1491 ac_ext=c
1492 ac_cpp='$CPP $CPPFLAGS'
1493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 # Check common src files to ensure integrity of the package
1527 # Set auxiliary build tools directory
1528 ac_aux_dir=
1529 for ac_dir in linux/build-aux $srcdir/linux/build-aux; do
1530 if test -f $ac_dir/install-sh; then
1531 ac_aux_dir=$ac_dir
1532 ac_install_sh="$ac_aux_dir/install-sh -c"
1533 break
1534 elif test -f $ac_dir/install.sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install.sh -c"
1537 break
1538 elif test -f $ac_dir/shtool; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/shtool install -c"
1541 break
1542 fi
1543 done
1544 if test -z "$ac_aux_dir"; then
1545 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&5
1546 echo "$as_me: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&2;}
1547 { (exit 1); exit 1; }; }
1548 fi
1549 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554 # Initilize automake
1555 am__api_version="1.9"
1556 # Find a good install program. We prefer a C program (faster),
1557 # so one script is as good as another. But avoid the broken or
1558 # incompatible versions:
1559 # SysV /etc/install, /usr/sbin/install
1560 # SunOS /usr/etc/install
1561 # IRIX /sbin/install
1562 # AIX /bin/install
1563 # AmigaOS /C/install, which installs bootblocks on floppy discs
1564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1567 # OS/2's system install, which has a completely different semantic
1568 # ./install, which can be erroneously created by make from ./install.sh.
1569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1571 if test -z "$INSTALL"; then
1572 if test "${ac_cv_path_install+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
1580 # Account for people who put trailing slashes in PATH elements.
1581 case $as_dir/ in
1582 ./ | .// | /cC/* | \
1583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1585 /usr/ucb/* ) ;;
1586 *)
1587 # OSF1 and SCO ODT 3.0 have their own names for install.
1588 # Don't use installbsd from OSF since it installs stuff as root
1589 # by default.
1590 for ac_prog in ginstall scoinst install; do
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1593 if test $ac_prog = install &&
1594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1595 # AIX install. It has an incompatible calling convention.
1596 :
1597 elif test $ac_prog = install &&
1598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599 # program-specific install script used by HP pwplus--don't use.
1600 :
1601 else
1602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1603 break 3
1604 fi
1605 fi
1606 done
1607 done
1608 ;;
1609 esac
1610 done
1613 fi
1614 if test "${ac_cv_path_install+set}" = set; then
1615 INSTALL=$ac_cv_path_install
1616 else
1617 # As a last resort, use the slow shell script. We don't cache a
1618 # path for INSTALL within a source directory, because that will
1619 # break other packages using the cache if that directory is
1620 # removed, or if the path is relative.
1621 INSTALL=$ac_install_sh
1622 fi
1623 fi
1624 echo "$as_me:$LINENO: result: $INSTALL" >&5
1625 echo "${ECHO_T}$INSTALL" >&6
1627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1628 # It thinks the first close brace ends the variable substitution.
1629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1637 # Just in case
1638 sleep 1
1639 echo timestamp > conftest.file
1640 # Do `set' in a subshell so we don't clobber the current shell's
1641 # arguments. Must try -L first in case configure is actually a
1642 # symlink; some systems play weird games with the mod time of symlinks
1643 # (eg FreeBSD returns the mod time of the symlink's containing
1644 # directory).
1645 if (
1646 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1647 if test "$*" = "X"; then
1648 # -L didn't work.
1649 set X `ls -t $srcdir/configure conftest.file`
1650 fi
1651 rm -f conftest.file
1652 if test "$*" != "X $srcdir/configure conftest.file" \
1653 && test "$*" != "X conftest.file $srcdir/configure"; then
1655 # If neither matched, then we have a broken ls. This can happen
1656 # if, for instance, CONFIG_SHELL is bash and it inherits a
1657 # broken ls alias from the environment. This has actually
1658 # happened. Such a system could not be considered "sane".
1659 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1660 alias in your environment" >&5
1661 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1662 alias in your environment" >&2;}
1663 { (exit 1); exit 1; }; }
1664 fi
1666 test "$2" = conftest.file
1667 )
1668 then
1669 # Ok.
1670 :
1671 else
1672 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1673 Check your system clock" >&5
1674 echo "$as_me: error: newly created file is older than distributed files!
1675 Check your system clock" >&2;}
1676 { (exit 1); exit 1; }; }
1677 fi
1678 echo "$as_me:$LINENO: result: yes" >&5
1679 echo "${ECHO_T}yes" >&6
1680 test "$program_prefix" != NONE &&
1681 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1682 # Use a double $ so make ignores it.
1683 test "$program_suffix" != NONE &&
1684 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1685 # Double any \ or $. echo might interpret backslashes.
1686 # By default was `s,x,x', remove it if useless.
1687 cat <<\_ACEOF >conftest.sed
1688 s/[\\$]/&&/g;s/;s,x,x,$//
1689 _ACEOF
1690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1691 rm conftest.sed
1693 # expand $ac_aux_dir to an absolute path
1694 am_aux_dir=`cd $ac_aux_dir && pwd`
1696 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1697 # Use eval to expand $SHELL
1698 if eval "$MISSING --run true"; then
1699 am_missing_run="$MISSING --run "
1700 else
1701 am_missing_run=
1702 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1704 fi
1706 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1707 # We used to keeping the `.' as first argument, in order to
1708 # allow $(mkdir_p) to be used without argument. As in
1709 # $(mkdir_p) $(somedir)
1710 # where $(somedir) is conditionally defined. However this is wrong
1711 # for two reasons:
1712 # 1. if the package is installed by a user who cannot write `.'
1713 # make install will fail,
1714 # 2. the above comment should most certainly read
1715 # $(mkdir_p) $(DESTDIR)$(somedir)
1716 # so it does not work when $(somedir) is undefined and
1717 # $(DESTDIR) is not.
1718 # To support the latter case, we have to write
1719 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1720 # so the `.' trick is pointless.
1721 mkdir_p='mkdir -p --'
1722 else
1723 # On NextStep and OpenStep, the `mkdir' command does not
1724 # recognize any option. It will interpret all options as
1725 # directories to create, and then abort because `.' already
1726 # exists.
1727 for d in ./-p ./--version;
1728 do
1729 test -d $d && rmdir $d
1730 done
1731 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1732 if test -f "$ac_aux_dir/mkinstalldirs"; then
1733 mkdir_p='$(mkinstalldirs)'
1734 else
1735 mkdir_p='$(install_sh) -d'
1736 fi
1737 fi
1739 for ac_prog in gawk mawk nawk awk
1740 do
1741 # Extract the first word of "$ac_prog", so it can be a program name with args.
1742 set dummy $ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_AWK+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748 if test -n "$AWK"; then
1749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754 IFS=$as_save_IFS
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_AWK="$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 break 2
1761 fi
1762 done
1763 done
1765 fi
1766 fi
1767 AWK=$ac_cv_prog_AWK
1768 if test -n "$AWK"; then
1769 echo "$as_me:$LINENO: result: $AWK" >&5
1770 echo "${ECHO_T}$AWK" >&6
1771 else
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1776 test -n "$AWK" && break
1777 done
1779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785 cat >conftest.make <<\_ACEOF
1786 all:
1787 @echo 'ac_maketemp="$(MAKE)"'
1788 _ACEOF
1789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1791 if test -n "$ac_maketemp"; then
1792 eval ac_cv_prog_make_${ac_make}_set=yes
1793 else
1794 eval ac_cv_prog_make_${ac_make}_set=no
1795 fi
1796 rm -f conftest.make
1797 fi
1798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1799 echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801 SET_MAKE=
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 SET_MAKE="MAKE=${MAKE-make}"
1806 fi
1808 rm -rf .tst 2>/dev/null
1809 mkdir .tst 2>/dev/null
1810 if test -d .tst; then
1811 am__leading_dot=.
1812 else
1813 am__leading_dot=_
1814 fi
1815 rmdir .tst 2>/dev/null
1817 # test to see if srcdir already configured
1818 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1819 test -f $srcdir/config.status; then
1820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1821 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1822 { (exit 1); exit 1; }; }
1823 fi
1825 # test whether we have cygpath
1826 if test -z "$CYGPATH_W"; then
1827 if (cygpath --version) >/dev/null 2>/dev/null; then
1828 CYGPATH_W='cygpath -w'
1829 else
1830 CYGPATH_W=echo
1831 fi
1832 fi
1835 # Define the identity of the package.
1836 PACKAGE='ti-ipc'
1837 VERSION='3.0.0'
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE "$PACKAGE"
1842 _ACEOF
1845 cat >>confdefs.h <<_ACEOF
1846 #define VERSION "$VERSION"
1847 _ACEOF
1849 # Some tools Automake needs.
1851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1865 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1867 # Installed binaries are usually stripped using `strip' when the user
1868 # run `make install-strip'. However `strip' might not be the right
1869 # tool to use in cross-compilation environments, therefore Automake
1870 # will honor the `STRIP' environment variable to overrule this program.
1871 if test "$cross_compiling" != no; then
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}strip; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_STRIP+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$STRIP"; then
1881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1893 fi
1894 done
1895 done
1897 fi
1898 fi
1899 STRIP=$ac_cv_prog_STRIP
1900 if test -n "$STRIP"; then
1901 echo "$as_me:$LINENO: result: $STRIP" >&5
1902 echo "${ECHO_T}$STRIP" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1906 fi
1908 fi
1909 if test -z "$ac_cv_prog_STRIP"; then
1910 ac_ct_STRIP=$STRIP
1911 # Extract the first word of "strip", so it can be a program name with args.
1912 set dummy strip; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 if test -n "$ac_ct_STRIP"; then
1919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1923 do
1924 IFS=$as_save_IFS
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_ac_ct_STRIP="strip"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 break 2
1931 fi
1932 done
1933 done
1935 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1936 fi
1937 fi
1938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1939 if test -n "$ac_ct_STRIP"; then
1940 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1941 echo "${ECHO_T}$ac_ct_STRIP" >&6
1942 else
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1947 STRIP=$ac_ct_STRIP
1948 else
1949 STRIP="$ac_cv_prog_STRIP"
1950 fi
1952 fi
1953 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1955 # We need awk for the "check" target. The system "awk" is bad on
1956 # some platforms.
1957 # Always define AMTAR for backward compatibility.
1959 AMTAR=${AMTAR-"${am_missing_run}tar"}
1961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1968 # Disabling maintainer mode to prevent rebuild of configure script
1969 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1970 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1971 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1972 if test "${enable_maintainer_mode+set}" = set; then
1973 enableval="$enable_maintainer_mode"
1974 USE_MAINTAINER_MODE=$enableval
1975 else
1976 USE_MAINTAINER_MODE=no
1977 fi;
1978 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1979 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1982 if test $USE_MAINTAINER_MODE = yes; then
1983 MAINTAINER_MODE_TRUE=
1984 MAINTAINER_MODE_FALSE='#'
1985 else
1986 MAINTAINER_MODE_TRUE='#'
1987 MAINTAINER_MODE_FALSE=
1988 fi
1990 MAINT=$MAINTAINER_MODE_TRUE
1994 # Initalize libtool but disable fortran check
1995 # Check whether --enable-shared or --disable-shared was given.
1996 if test "${enable_shared+set}" = set; then
1997 enableval="$enable_shared"
1998 p=${PACKAGE-default}
1999 case $enableval in
2000 yes) enable_shared=yes ;;
2001 no) enable_shared=no ;;
2002 *)
2003 enable_shared=no
2004 # Look at the argument we got. We use all the common list separators.
2005 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2006 for pkg in $enableval; do
2007 IFS="$lt_save_ifs"
2008 if test "X$pkg" = "X$p"; then
2009 enable_shared=yes
2010 fi
2011 done
2012 IFS="$lt_save_ifs"
2013 ;;
2014 esac
2015 else
2016 enable_shared=yes
2017 fi;
2019 # Check whether --enable-static or --disable-static was given.
2020 if test "${enable_static+set}" = set; then
2021 enableval="$enable_static"
2022 p=${PACKAGE-default}
2023 case $enableval in
2024 yes) enable_static=yes ;;
2025 no) enable_static=no ;;
2026 *)
2027 enable_static=no
2028 # Look at the argument we got. We use all the common list separators.
2029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2030 for pkg in $enableval; do
2031 IFS="$lt_save_ifs"
2032 if test "X$pkg" = "X$p"; then
2033 enable_static=yes
2034 fi
2035 done
2036 IFS="$lt_save_ifs"
2037 ;;
2038 esac
2039 else
2040 enable_static=yes
2041 fi;
2043 # Check whether --enable-fast-install or --disable-fast-install was given.
2044 if test "${enable_fast_install+set}" = set; then
2045 enableval="$enable_fast_install"
2046 p=${PACKAGE-default}
2047 case $enableval in
2048 yes) enable_fast_install=yes ;;
2049 no) enable_fast_install=no ;;
2050 *)
2051 enable_fast_install=no
2052 # Look at the argument we got. We use all the common list separators.
2053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2054 for pkg in $enableval; do
2055 IFS="$lt_save_ifs"
2056 if test "X$pkg" = "X$p"; then
2057 enable_fast_install=yes
2058 fi
2059 done
2060 IFS="$lt_save_ifs"
2061 ;;
2062 esac
2063 else
2064 enable_fast_install=yes
2065 fi;
2067 # Make sure we can run config.sub.
2068 $ac_config_sub sun4 >/dev/null 2>&1 ||
2069 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2070 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2071 { (exit 1); exit 1; }; }
2073 echo "$as_me:$LINENO: checking build system type" >&5
2074 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2075 if test "${ac_cv_build+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 ac_cv_build_alias=$build_alias
2079 test -z "$ac_cv_build_alias" &&
2080 ac_cv_build_alias=`$ac_config_guess`
2081 test -z "$ac_cv_build_alias" &&
2082 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2083 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2084 { (exit 1); exit 1; }; }
2085 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2086 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2087 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2088 { (exit 1); exit 1; }; }
2090 fi
2091 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2092 echo "${ECHO_T}$ac_cv_build" >&6
2093 build=$ac_cv_build
2094 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2095 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2096 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2099 echo "$as_me:$LINENO: checking host system type" >&5
2100 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2101 if test "${ac_cv_host+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104 ac_cv_host_alias=$host_alias
2105 test -z "$ac_cv_host_alias" &&
2106 ac_cv_host_alias=$ac_cv_build_alias
2107 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2108 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2109 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2112 fi
2113 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2114 echo "${ECHO_T}$ac_cv_host" >&6
2115 host=$ac_cv_host
2116 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2117 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2118 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2121 DEPDIR="${am__leading_dot}deps"
2123 ac_config_commands="$ac_config_commands depfiles"
2126 am_make=${MAKE-make}
2127 cat > confinc << 'END'
2128 am__doit:
2129 @echo done
2130 .PHONY: am__doit
2131 END
2132 # If we don't find an include directive, just comment out the code.
2133 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2134 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2135 am__include="#"
2136 am__quote=
2137 _am_result=none
2138 # First try GNU make style include.
2139 echo "include confinc" > confmf
2140 # We grep out `Entering directory' and `Leaving directory'
2141 # messages which can occur if `w' ends up in MAKEFLAGS.
2142 # In particular we don't look at `^make:' because GNU make might
2143 # be invoked under some other name (usually "gmake"), in which
2144 # case it prints its new name instead of `make'.
2145 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2146 am__include=include
2147 am__quote=
2148 _am_result=GNU
2149 fi
2150 # Now try BSD make style include.
2151 if test "$am__include" = "#"; then
2152 echo '.include "confinc"' > confmf
2153 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2154 am__include=.include
2155 am__quote="\""
2156 _am_result=BSD
2157 fi
2158 fi
2161 echo "$as_me:$LINENO: result: $_am_result" >&5
2162 echo "${ECHO_T}$_am_result" >&6
2163 rm -f confinc confmf
2165 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2166 if test "${enable_dependency_tracking+set}" = set; then
2167 enableval="$enable_dependency_tracking"
2169 fi;
2170 if test "x$enable_dependency_tracking" != xno; then
2171 am_depcomp="$ac_aux_dir/depcomp"
2172 AMDEPBACKSLASH='\'
2173 fi
2176 if test "x$enable_dependency_tracking" != xno; then
2177 AMDEP_TRUE=
2178 AMDEP_FALSE='#'
2179 else
2180 AMDEP_TRUE='#'
2181 AMDEP_FALSE=
2182 fi
2186 ac_ext=c
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205 IFS=$as_save_IFS
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211 break 2
2212 fi
2213 done
2214 done
2216 fi
2217 fi
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2222 else
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2227 fi
2228 if test -z "$ac_cv_prog_CC"; then
2229 ac_ct_CC=$CC
2230 # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_ac_ct_CC="gcc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2250 fi
2251 done
2252 done
2254 fi
2255 fi
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2260 else
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2263 fi
2265 CC=$ac_ct_CC
2266 else
2267 CC="$ac_cv_prog_CC"
2268 fi
2270 if test -z "$CC"; then
2271 if test -n "$ac_tool_prefix"; then
2272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_CC="${ac_tool_prefix}cc"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2292 fi
2293 done
2294 done
2296 fi
2297 fi
2298 CC=$ac_cv_prog_CC
2299 if test -n "$CC"; then
2300 echo "$as_me:$LINENO: result: $CC" >&5
2301 echo "${ECHO_T}$CC" >&6
2302 else
2303 echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2305 fi
2307 fi
2308 if test -z "$ac_cv_prog_CC"; then
2309 ac_ct_CC=$CC
2310 # Extract the first word of "cc", so it can be a program name with args.
2311 set dummy cc; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_CC="cc"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2330 fi
2331 done
2332 done
2334 fi
2335 fi
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2340 else
2341 echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2343 fi
2345 CC=$ac_ct_CC
2346 else
2347 CC="$ac_cv_prog_CC"
2348 fi
2350 fi
2351 if test -z "$CC"; then
2352 # Extract the first word of "cc", so it can be a program name with args.
2353 set dummy cc; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 if test -n "$CC"; then
2360 ac_cv_prog_CC="$CC" # Let the user override the test.
2361 else
2362 ac_prog_rejected=no
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2371 ac_prog_rejected=yes
2372 continue
2373 fi
2374 ac_cv_prog_CC="cc"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 break 2
2377 fi
2378 done
2379 done
2381 if test $ac_prog_rejected = yes; then
2382 # We found a bogon in the path, so make sure we never use it.
2383 set dummy $ac_cv_prog_CC
2384 shift
2385 if test $# != 0; then
2386 # We chose a different compiler from the bogus one.
2387 # However, it has the same basename, so the bogon will be chosen
2388 # first if we set CC to just the basename; use the full file name.
2389 shift
2390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2391 fi
2392 fi
2393 fi
2394 fi
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397 echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2399 else
2400 echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2402 fi
2404 fi
2405 if test -z "$CC"; then
2406 if test -n "$ac_tool_prefix"; then
2407 for ac_prog in cl
2408 do
2409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430 done
2431 done
2433 fi
2434 fi
2435 CC=$ac_cv_prog_CC
2436 if test -n "$CC"; then
2437 echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6
2439 else
2440 echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6
2442 fi
2444 test -n "$CC" && break
2445 done
2446 fi
2447 if test -z "$CC"; then
2448 ac_ct_CC=$CC
2449 for ac_prog in cl
2450 do
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468 ac_cv_prog_ac_ct_CC="$ac_prog"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2475 fi
2476 fi
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6
2481 else
2482 echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6
2484 fi
2486 test -n "$ac_ct_CC" && break
2487 done
2489 CC=$ac_ct_CC
2490 fi
2492 fi
2495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: no acceptable C compiler found in \$PATH
2498 See \`config.log' for more details." >&2;}
2499 { (exit 1); exit 1; }; }
2501 # Provide some information about the compiler.
2502 echo "$as_me:$LINENO:" \
2503 "checking for C compiler version" >&5
2504 ac_compiler=`set X $ac_compile; echo $2`
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2506 (eval $ac_compiler --version </dev/null >&5) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2511 (eval $ac_compiler -v </dev/null >&5) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2516 (eval $ac_compiler -V </dev/null >&5) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h. */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2528 int
2529 main ()
2530 {
2532 ;
2533 return 0;
2534 }
2535 _ACEOF
2536 ac_clean_files_save=$ac_clean_files
2537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2538 # Try to create an executable without -o first, disregard a.out.
2539 # It will help us diagnose broken compilers, and finding out an intuition
2540 # of exeext.
2541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2545 (eval $ac_link_default) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 # Find the output, starting from the most likely. This scheme is
2550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2551 # resort.
2553 # Be careful to initialize this variable, since it used to be cached.
2554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2555 ac_cv_exeext=
2556 # b.out is created by i960 compilers.
2557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2558 do
2559 test -f "$ac_file" || continue
2560 case $ac_file in
2561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2562 ;;
2563 conftest.$ac_ext )
2564 # This is the source file.
2565 ;;
2566 [ab].out )
2567 # We found the default executable, but exeext='' is most
2568 # certainly right.
2569 break;;
2570 *.* )
2571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572 # FIXME: I believe we export ac_cv_exeext for Libtool,
2573 # but it would be cool to find out if it's true. Does anybody
2574 # maintain Libtool? --akim.
2575 export ac_cv_exeext
2576 break;;
2577 * )
2578 break;;
2579 esac
2580 done
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&2;}
2589 { (exit 77); exit 77; }; }
2590 fi
2592 ac_exeext=$ac_cv_exeext
2593 echo "$as_me:$LINENO: result: $ac_file" >&5
2594 echo "${ECHO_T}$ac_file" >&6
2596 # Check the compiler produces executables we can run. If not, either
2597 # the compiler is broken, or we cross compile.
2598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603 if { ac_try='./$ac_file'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 cross_compiling=no
2610 else
2611 if test "$cross_compiling" = maybe; then
2612 cross_compiling=yes
2613 else
2614 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot run C compiled programs.
2618 If you meant to cross compile, use \`--host'.
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2621 fi
2622 fi
2623 fi
2624 echo "$as_me:$LINENO: result: yes" >&5
2625 echo "${ECHO_T}yes" >&6
2627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2628 ac_clean_files=$ac_clean_files_save
2629 # Check the compiler produces executables we can run. If not, either
2630 # the compiler is broken, or we cross compile.
2631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2634 echo "${ECHO_T}$cross_compiling" >&6
2636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639 (eval $ac_link) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; then
2643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 # `rm'.
2647 for ac_file in conftest.exe conftest conftest.*; do
2648 test -f "$ac_file" || continue
2649 case $ac_file in
2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652 export ac_cv_exeext
2653 break;;
2654 * ) break;;
2655 esac
2656 done
2657 else
2658 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
2663 fi
2665 rm -f conftest$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667 echo "${ECHO_T}$ac_cv_exeext" >&6
2669 rm -f conftest.$ac_ext
2670 EXEEXT=$ac_cv_exeext
2671 ac_exeext=$EXEEXT
2672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2674 if test "${ac_cv_objext+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h. */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2684 int
2685 main ()
2686 {
2688 ;
2689 return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.o conftest.obj
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2699 case $ac_file in
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702 break;;
2703 esac
2704 done
2705 else
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2714 fi
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 fi
2718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6
2720 OBJEXT=$ac_cv_objext
2721 ac_objext=$OBJEXT
2722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2734 int
2735 main ()
2736 {
2737 #ifndef __GNUC__
2738 choke me
2739 #endif
2741 ;
2742 return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>conftest.er1
2748 ac_status=$?
2749 grep -v '^ *+' conftest.er1 >conftest.err
2750 rm -f conftest.er1
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -z "$ac_c_werror_flag"
2755 || test ! -s conftest.err'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; } &&
2761 { ac_try='test -s conftest.$ac_objext'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; }; then
2767 ac_compiler_gnu=yes
2768 else
2769 echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.$ac_ext >&5
2772 ac_compiler_gnu=no
2773 fi
2774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2777 fi
2778 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2780 GCC=`test $ac_compiler_gnu = yes && echo yes`
2781 ac_test_CFLAGS=${CFLAGS+set}
2782 ac_save_CFLAGS=$CFLAGS
2783 CFLAGS="-g"
2784 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2785 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2786 if test "${ac_cv_prog_cc_g+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2796 int
2797 main ()
2798 {
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2806 (eval $ac_compile) 2>conftest.er1
2807 ac_status=$?
2808 grep -v '^ *+' conftest.er1 >conftest.err
2809 rm -f conftest.er1
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -z "$ac_c_werror_flag"
2814 || test ! -s conftest.err'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; } &&
2820 { ac_try='test -s conftest.$ac_objext'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; }; then
2826 ac_cv_prog_cc_g=yes
2827 else
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 ac_cv_prog_cc_g=no
2832 fi
2833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 fi
2835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2836 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2837 if test "$ac_test_CFLAGS" = set; then
2838 CFLAGS=$ac_save_CFLAGS
2839 elif test $ac_cv_prog_cc_g = yes; then
2840 if test "$GCC" = yes; then
2841 CFLAGS="-g -O2"
2842 else
2843 CFLAGS="-g"
2844 fi
2845 else
2846 if test "$GCC" = yes; then
2847 CFLAGS="-O2"
2848 else
2849 CFLAGS=
2850 fi
2851 fi
2852 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2853 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2854 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 ac_cv_prog_cc_stdc=no
2858 ac_save_CC=$CC
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2865 #include <stdarg.h>
2866 #include <stdio.h>
2867 #include <sys/types.h>
2868 #include <sys/stat.h>
2869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2870 struct buf { int x; };
2871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2872 static char *e (p, i)
2873 char **p;
2874 int i;
2875 {
2876 return p[i];
2877 }
2878 static char *f (char * (*g) (char **, int), char **p, ...)
2879 {
2880 char *s;
2881 va_list v;
2882 va_start (v,p);
2883 s = g (p, va_arg (v,int));
2884 va_end (v);
2885 return s;
2886 }
2888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2889 function prototypes and stuff, but not '\xHH' hex character constants.
2890 These don't provoke an error unfortunately, instead are silently treated
2891 as 'x'. The following induces an error, until -std1 is added to get
2892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2893 array size at least. It's necessary to write '\x00'==0 to get something
2894 that's true only with -std1. */
2895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2897 int test (int i, double x);
2898 struct s1 {int (*f) (int a);};
2899 struct s2 {int (*f) (double a);};
2900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2901 int argc;
2902 char **argv;
2903 int
2904 main ()
2905 {
2906 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 # Don't try gcc -ansi; that turns off useful extensions and
2912 # breaks some systems' header files.
2913 # AIX -qlanglvl=ansi
2914 # Ultrix and OSF/1 -std1
2915 # HP-UX 10.20 and later -Ae
2916 # HP-UX older versions -Aa -D_HPUX_SOURCE
2917 # SVR4 -Xc -D__EXTENSIONS__
2918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2919 do
2920 CC="$ac_save_CC $ac_arg"
2921 rm -f conftest.$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923 (eval $ac_compile) 2>conftest.er1
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -z "$ac_c_werror_flag"
2931 || test ! -s conftest.err'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; } &&
2937 { ac_try='test -s conftest.$ac_objext'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 ac_cv_prog_cc_stdc=$ac_arg
2944 break
2945 else
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 fi
2950 rm -f conftest.err conftest.$ac_objext
2951 done
2952 rm -f conftest.$ac_ext conftest.$ac_objext
2953 CC=$ac_save_CC
2955 fi
2957 case "x$ac_cv_prog_cc_stdc" in
2958 x|xno)
2959 echo "$as_me:$LINENO: result: none needed" >&5
2960 echo "${ECHO_T}none needed" >&6 ;;
2961 *)
2962 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2963 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2964 CC="$CC $ac_cv_prog_cc_stdc" ;;
2965 esac
2967 # Some people use a C++ compiler to compile C. Since we use `exit',
2968 # in C++ we need to declare it. In case someone uses the same compiler
2969 # for both compiling C and C++ we need to have the C++ compiler decide
2970 # the declaration of exit, since it's the most demanding environment.
2971 cat >conftest.$ac_ext <<_ACEOF
2972 #ifndef __cplusplus
2973 choke me
2974 #endif
2975 _ACEOF
2976 rm -f conftest.$ac_objext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978 (eval $ac_compile) 2>conftest.er1
2979 ac_status=$?
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -z "$ac_c_werror_flag"
2986 || test ! -s conftest.err'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 (eval $ac_try) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; } &&
2992 { ac_try='test -s conftest.$ac_objext'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
2998 for ac_declaration in \
2999 '' \
3000 'extern "C" void std::exit (int) throw (); using std::exit;' \
3001 'extern "C" void std::exit (int); using std::exit;' \
3002 'extern "C" void exit (int) throw ();' \
3003 'extern "C" void exit (int);' \
3004 'void exit (int);'
3005 do
3006 cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h. */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 $ac_declaration
3013 #include <stdlib.h>
3014 int
3015 main ()
3016 {
3017 exit (42);
3018 ;
3019 return 0;
3020 }
3021 _ACEOF
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag"
3032 || test ! -s conftest.err'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; } &&
3038 { ac_try='test -s conftest.$ac_objext'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 :
3045 else
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3049 continue
3050 fi
3051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3058 $ac_declaration
3059 int
3060 main ()
3061 {
3062 exit (42);
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069 (eval $ac_compile) 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -z "$ac_c_werror_flag"
3077 || test ! -s conftest.err'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 (eval $ac_try) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 break
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 fi
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096 done
3097 rm -f conftest*
3098 if test -n "$ac_declaration"; then
3099 echo '#ifdef __cplusplus' >>confdefs.h
3100 echo $ac_declaration >>confdefs.h
3101 echo '#endif' >>confdefs.h
3102 fi
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 fi
3109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 depcc="$CC" am_compiler_list=
3118 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3119 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3120 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3124 # We make a subdir and do the tests there. Otherwise we can end up
3125 # making bogus files that we don't know about and never remove. For
3126 # instance it was reported that on HP-UX the gcc test will end up
3127 # making a dummy file named `D' -- because `-MD' means `put the output
3128 # in D'.
3129 mkdir conftest.dir
3130 # Copy depcomp to subdir because otherwise we won't find it if we're
3131 # using a relative directory.
3132 cp "$am_depcomp" conftest.dir
3133 cd conftest.dir
3134 # We will build objects and dependencies in a subdirectory because
3135 # it helps to detect inapplicable dependency modes. For instance
3136 # both Tru64's cc and ICC support -MD to output dependencies as a
3137 # side effect of compilation, but ICC will put the dependencies in
3138 # the current directory while Tru64 will put them in the object
3139 # directory.
3140 mkdir sub
3142 am_cv_CC_dependencies_compiler_type=none
3143 if test "$am_compiler_list" = ""; then
3144 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3145 fi
3146 for depmode in $am_compiler_list; do
3147 # Setup a source with many dependencies, because some compilers
3148 # like to wrap large dependency lists on column 80 (with \), and
3149 # we should not choose a depcomp mode which is confused by this.
3150 #
3151 # We need to recreate these files for each test, as the compiler may
3152 # overwrite some of them when testing with obscure command lines.
3153 # This happens at least with the AIX C compiler.
3154 : > sub/conftest.c
3155 for i in 1 2 3 4 5 6; do
3156 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3157 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3158 # Solaris 8's {/usr,}/bin/sh.
3159 touch sub/conftst$i.h
3160 done
3161 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3163 case $depmode in
3164 nosideeffect)
3165 # after this tag, mechanisms are not by side-effect, so they'll
3166 # only be used when explicitly requested
3167 if test "x$enable_dependency_tracking" = xyes; then
3168 continue
3169 else
3170 break
3171 fi
3172 ;;
3173 none) break ;;
3174 esac
3175 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3176 # mode. It turns out that the SunPro C++ compiler does not properly
3177 # handle `-M -o', and we need to detect this.
3178 if depmode=$depmode \
3179 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3180 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3181 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3182 >/dev/null 2>conftest.err &&
3183 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3184 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3185 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3186 # icc doesn't choke on unknown options, it will just issue warnings
3187 # or remarks (even with -Werror). So we grep stderr for any message
3188 # that says an option was ignored or not supported.
3189 # When given -MP, icc 7.0 and 7.1 complain thusly:
3190 # icc: Command line warning: ignoring option '-M'; no argument required
3191 # The diagnosis changed in icc 8.0:
3192 # icc: Command line remark: option '-MP' not supported
3193 if (grep 'ignoring option' conftest.err ||
3194 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3195 am_cv_CC_dependencies_compiler_type=$depmode
3196 break
3197 fi
3198 fi
3199 done
3201 cd ..
3202 rm -rf conftest.dir
3203 else
3204 am_cv_CC_dependencies_compiler_type=none
3205 fi
3207 fi
3208 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3209 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3210 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3214 if
3215 test "x$enable_dependency_tracking" != xno \
3216 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3217 am__fastdepCC_TRUE=
3218 am__fastdepCC_FALSE='#'
3219 else
3220 am__fastdepCC_TRUE='#'
3221 am__fastdepCC_FALSE=
3222 fi
3225 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3226 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3227 if test "${lt_cv_path_SED+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230 # Loop through the user's path and test for sed and gsed.
3231 # Then use that list of sed's as ones to test for truncation.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for lt_ac_prog in sed gsed; do
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3240 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3241 fi
3242 done
3243 done
3244 done
3245 lt_ac_max=0
3246 lt_ac_count=0
3247 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3248 # along with /bin/sed that truncates output.
3249 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3250 test ! -f $lt_ac_sed && continue
3251 cat /dev/null > conftest.in
3252 lt_ac_count=0
3253 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3254 # Check for GNU sed and select it if it is found.
3255 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3256 lt_cv_path_SED=$lt_ac_sed
3257 break
3258 fi
3259 while true; do
3260 cat conftest.in conftest.in >conftest.tmp
3261 mv conftest.tmp conftest.in
3262 cp conftest.in conftest.nl
3263 echo >>conftest.nl
3264 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3265 cmp -s conftest.out conftest.nl || break
3266 # 10000 chars as input seems more than enough
3267 test $lt_ac_count -gt 10 && break
3268 lt_ac_count=`expr $lt_ac_count + 1`
3269 if test $lt_ac_count -gt $lt_ac_max; then
3270 lt_ac_max=$lt_ac_count
3271 lt_cv_path_SED=$lt_ac_sed
3272 fi
3273 done
3274 done
3276 fi
3278 SED=$lt_cv_path_SED
3279 echo "$as_me:$LINENO: result: $SED" >&5
3280 echo "${ECHO_T}$SED" >&6
3282 echo "$as_me:$LINENO: checking for egrep" >&5
3283 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3284 if test "${ac_cv_prog_egrep+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3288 then ac_cv_prog_egrep='grep -E'
3289 else ac_cv_prog_egrep='egrep'
3290 fi
3291 fi
3292 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3293 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3294 EGREP=$ac_cv_prog_egrep
3298 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3299 if test "${with_gnu_ld+set}" = set; then
3300 withval="$with_gnu_ld"
3301 test "$withval" = no || with_gnu_ld=yes
3302 else
3303 with_gnu_ld=no
3304 fi;
3305 ac_prog=ld
3306 if test "$GCC" = yes; then
3307 # Check if gcc -print-prog-name=ld gives a path.
3308 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3309 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3310 case $host in
3311 *-*-mingw*)
3312 # gcc leaves a trailing carriage return which upsets mingw
3313 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3314 *)
3315 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3316 esac
3317 case $ac_prog in
3318 # Accept absolute paths.
3319 [\\/]* | ?:[\\/]*)
3320 re_direlt='/[^/][^/]*/\.\./'
3321 # Canonicalize the pathname of ld
3322 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3323 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3324 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3325 done
3326 test -z "$LD" && LD="$ac_prog"
3327 ;;
3328 "")
3329 # If it fails, then pretend we aren't using GCC.
3330 ac_prog=ld
3331 ;;
3332 *)
3333 # If it is relative, then search for the first ld in PATH.
3334 with_gnu_ld=unknown
3335 ;;
3336 esac
3337 elif test "$with_gnu_ld" = yes; then
3338 echo "$as_me:$LINENO: checking for GNU ld" >&5
3339 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3340 else
3341 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3342 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3343 fi
3344 if test "${lt_cv_path_LD+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 if test -z "$LD"; then
3348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3349 for ac_dir in $PATH; do
3350 IFS="$lt_save_ifs"
3351 test -z "$ac_dir" && ac_dir=.
3352 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3353 lt_cv_path_LD="$ac_dir/$ac_prog"
3354 # Check to see if the program is GNU ld. I'd rather use --version,
3355 # but apparently some variants of GNU ld only accept -v.
3356 # Break only if it was the GNU/non-GNU ld that we prefer.
3357 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3358 *GNU* | *'with BFD'*)
3359 test "$with_gnu_ld" != no && break
3360 ;;
3361 *)
3362 test "$with_gnu_ld" != yes && break
3363 ;;
3364 esac
3365 fi
3366 done
3367 IFS="$lt_save_ifs"
3368 else
3369 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3370 fi
3371 fi
3373 LD="$lt_cv_path_LD"
3374 if test -n "$LD"; then
3375 echo "$as_me:$LINENO: result: $LD" >&5
3376 echo "${ECHO_T}$LD" >&6
3377 else
3378 echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6
3380 fi
3381 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3382 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3383 { (exit 1); exit 1; }; }
3384 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3385 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3386 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3390 case `$LD -v 2>&1 </dev/null` in
3391 *GNU* | *'with BFD'*)
3392 lt_cv_prog_gnu_ld=yes
3393 ;;
3394 *)
3395 lt_cv_prog_gnu_ld=no
3396 ;;
3397 esac
3398 fi
3399 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3400 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3401 with_gnu_ld=$lt_cv_prog_gnu_ld
3404 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3405 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3406 if test "${lt_cv_ld_reload_flag+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 lt_cv_ld_reload_flag='-r'
3410 fi
3411 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3412 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3413 reload_flag=$lt_cv_ld_reload_flag
3414 case $reload_flag in
3415 "" | " "*) ;;
3416 *) reload_flag=" $reload_flag" ;;
3417 esac
3418 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3419 case $host_os in
3420 darwin*)
3421 if test "$GCC" = yes; then
3422 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3423 else
3424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3425 fi
3426 ;;
3427 esac
3429 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3430 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3431 if test "${lt_cv_path_NM+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434 if test -n "$NM"; then
3435 # Let the user override the test.
3436 lt_cv_path_NM="$NM"
3437 else
3438 lt_nm_to_check="${ac_tool_prefix}nm"
3439 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3440 lt_nm_to_check="$lt_nm_to_check nm"
3441 fi
3442 for lt_tmp_nm in $lt_nm_to_check; do
3443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3444 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3445 IFS="$lt_save_ifs"
3446 test -z "$ac_dir" && ac_dir=.
3447 tmp_nm="$ac_dir/$lt_tmp_nm"
3448 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3449 # Check to see if the nm accepts a BSD-compat flag.
3450 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3451 # nm: unknown option "B" ignored
3452 # Tru64's nm complains that /dev/null is an invalid object file
3453 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3454 */dev/null* | *'Invalid file or object type'*)
3455 lt_cv_path_NM="$tmp_nm -B"
3456 break
3457 ;;
3458 *)
3459 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3460 */dev/null*)
3461 lt_cv_path_NM="$tmp_nm -p"
3462 break
3463 ;;
3464 *)
3465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3466 continue # so that we can try to find one that supports BSD flags
3467 ;;
3468 esac
3469 ;;
3470 esac
3471 fi
3472 done
3473 IFS="$lt_save_ifs"
3474 done
3475 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3476 fi
3477 fi
3478 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3479 echo "${ECHO_T}$lt_cv_path_NM" >&6
3480 NM="$lt_cv_path_NM"
3482 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3483 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3484 LN_S=$as_ln_s
3485 if test "$LN_S" = "ln -s"; then
3486 echo "$as_me:$LINENO: result: yes" >&5
3487 echo "${ECHO_T}yes" >&6
3488 else
3489 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3490 echo "${ECHO_T}no, using $LN_S" >&6
3491 fi
3493 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3494 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3495 if test "${lt_cv_deplibs_check_method+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 lt_cv_file_magic_cmd='$MAGIC_CMD'
3499 lt_cv_file_magic_test_file=
3500 lt_cv_deplibs_check_method='unknown'
3501 # Need to set the preceding variable on all platforms that support
3502 # interlibrary dependencies.
3503 # 'none' -- dependencies not supported.
3504 # `unknown' -- same as none, but documents that we really don't know.
3505 # 'pass_all' -- all dependencies passed with no checks.
3506 # 'test_compile' -- check by making test program.
3507 # 'file_magic [[regex]]' -- check by looking for files in library path
3508 # which responds to the $file_magic_cmd with a given extended regex.
3509 # If you have `file' or equivalent on your system and you're not sure
3510 # whether `pass_all' will *always* work, you probably want this one.
3512 case $host_os in
3513 aix4* | aix5*)
3514 lt_cv_deplibs_check_method=pass_all
3515 ;;
3517 beos*)
3518 lt_cv_deplibs_check_method=pass_all
3519 ;;
3521 bsdi[45]*)
3522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3523 lt_cv_file_magic_cmd='/usr/bin/file -L'
3524 lt_cv_file_magic_test_file=/shlib/libc.so
3525 ;;
3527 cygwin*)
3528 # func_win32_libid is a shell function defined in ltmain.sh
3529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3530 lt_cv_file_magic_cmd='func_win32_libid'
3531 ;;
3533 mingw* | pw32*)
3534 # Base MSYS/MinGW do not provide the 'file' command needed by
3535 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3536 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3537 lt_cv_file_magic_cmd='$OBJDUMP -f'
3538 ;;
3540 darwin* | rhapsody*)
3541 lt_cv_deplibs_check_method=pass_all
3542 ;;
3544 freebsd* | kfreebsd*-gnu | dragonfly*)
3545 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3546 case $host_cpu in
3547 i*86 )
3548 # Not sure whether the presence of OpenBSD here was a mistake.
3549 # Let's accept both of them until this is cleared up.
3550 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3551 lt_cv_file_magic_cmd=/usr/bin/file
3552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3553 ;;
3554 esac
3555 else
3556 lt_cv_deplibs_check_method=pass_all
3557 fi
3558 ;;
3560 gnu*)
3561 lt_cv_deplibs_check_method=pass_all
3562 ;;
3564 hpux10.20* | hpux11*)
3565 lt_cv_file_magic_cmd=/usr/bin/file
3566 case $host_cpu in
3567 ia64*)
3568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3569 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3570 ;;
3571 hppa*64*)
3572 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]'
3573 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3574 ;;
3575 *)
3576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3577 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3578 ;;
3579 esac
3580 ;;
3582 interix3*)
3583 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3585 ;;
3587 irix5* | irix6* | nonstopux*)
3588 case $LD in
3589 *-32|*"-32 ") libmagic=32-bit;;
3590 *-n32|*"-n32 ") libmagic=N32;;
3591 *-64|*"-64 ") libmagic=64-bit;;
3592 *) libmagic=never-match;;
3593 esac
3594 lt_cv_deplibs_check_method=pass_all
3595 ;;
3597 # This must be Linux ELF.
3598 linux*)
3599 lt_cv_deplibs_check_method=pass_all
3600 ;;
3602 netbsd*)
3603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3605 else
3606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3607 fi
3608 ;;
3610 newos6*)
3611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3612 lt_cv_file_magic_cmd=/usr/bin/file
3613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3614 ;;
3616 nto-qnx*)
3617 lt_cv_deplibs_check_method=unknown
3618 ;;
3620 openbsd*)
3621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3623 else
3624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3625 fi
3626 ;;
3628 osf3* | osf4* | osf5*)
3629 lt_cv_deplibs_check_method=pass_all
3630 ;;
3632 solaris*)
3633 lt_cv_deplibs_check_method=pass_all
3634 ;;
3636 sysv4 | sysv4.3*)
3637 case $host_vendor in
3638 motorola)
3639 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]'
3640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3641 ;;
3642 ncr)
3643 lt_cv_deplibs_check_method=pass_all
3644 ;;
3645 sequent)
3646 lt_cv_file_magic_cmd='/bin/file'
3647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3648 ;;
3649 sni)
3650 lt_cv_file_magic_cmd='/bin/file'
3651 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3652 lt_cv_file_magic_test_file=/lib/libc.so
3653 ;;
3654 siemens)
3655 lt_cv_deplibs_check_method=pass_all
3656 ;;
3657 pc)
3658 lt_cv_deplibs_check_method=pass_all
3659 ;;
3660 esac
3661 ;;
3663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3664 lt_cv_deplibs_check_method=pass_all
3665 ;;
3666 esac
3668 fi
3669 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3670 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3671 file_magic_cmd=$lt_cv_file_magic_cmd
3672 deplibs_check_method=$lt_cv_deplibs_check_method
3673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3678 # If no C compiler was specified, use CC.
3679 LTCC=${LTCC-"$CC"}
3681 # If no C compiler flags were specified, use CFLAGS.
3682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3684 # Allow CC to be a program name with arguments.
3685 compiler=$CC
3688 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3689 if test "${enable_libtool_lock+set}" = set; then
3690 enableval="$enable_libtool_lock"
3692 fi;
3693 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3695 # Some flags need to be propagated to the compiler or linker for good
3696 # libtool support.
3697 case $host in
3698 ia64-*-hpux*)
3699 # Find out which ABI we are using.
3700 echo 'int i;' > conftest.$ac_ext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; then
3706 case `/usr/bin/file conftest.$ac_objext` in
3707 *ELF-32*)
3708 HPUX_IA64_MODE="32"
3709 ;;
3710 *ELF-64*)
3711 HPUX_IA64_MODE="64"
3712 ;;
3713 esac
3714 fi
3715 rm -rf conftest*
3716 ;;
3717 *-*-irix6*)
3718 # Find out which ABI we are using.
3719 echo '#line 3719 "configure"' > conftest.$ac_ext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; then
3725 if test "$lt_cv_prog_gnu_ld" = yes; then
3726 case `/usr/bin/file conftest.$ac_objext` in
3727 *32-bit*)
3728 LD="${LD-ld} -melf32bsmip"
3729 ;;
3730 *N32*)
3731 LD="${LD-ld} -melf32bmipn32"
3732 ;;
3733 *64-bit*)
3734 LD="${LD-ld} -melf64bmip"
3735 ;;
3736 esac
3737 else
3738 case `/usr/bin/file conftest.$ac_objext` in
3739 *32-bit*)
3740 LD="${LD-ld} -32"
3741 ;;
3742 *N32*)
3743 LD="${LD-ld} -n32"
3744 ;;
3745 *64-bit*)
3746 LD="${LD-ld} -64"
3747 ;;
3748 esac
3749 fi
3750 fi
3751 rm -rf conftest*
3752 ;;
3754 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3755 # Find out which ABI we are using.
3756 echo 'int i;' > conftest.$ac_ext
3757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758 (eval $ac_compile) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; then
3762 case `/usr/bin/file conftest.o` in
3763 *32-bit*)
3764 case $host in
3765 x86_64-*linux*)
3766 LD="${LD-ld} -m elf_i386"
3767 ;;
3768 ppc64-*linux*|powerpc64-*linux*)
3769 LD="${LD-ld} -m elf32ppclinux"
3770 ;;
3771 s390x-*linux*)
3772 LD="${LD-ld} -m elf_s390"
3773 ;;
3774 sparc64-*linux*)
3775 LD="${LD-ld} -m elf32_sparc"
3776 ;;
3777 esac
3778 ;;
3779 *64-bit*)
3780 case $host in
3781 x86_64-*linux*)
3782 LD="${LD-ld} -m elf_x86_64"
3783 ;;
3784 ppc*-*linux*|powerpc*-*linux*)
3785 LD="${LD-ld} -m elf64ppc"
3786 ;;
3787 s390*-*linux*)
3788 LD="${LD-ld} -m elf64_s390"
3789 ;;
3790 sparc*-*linux*)
3791 LD="${LD-ld} -m elf64_sparc"
3792 ;;
3793 esac
3794 ;;
3795 esac
3796 fi
3797 rm -rf conftest*
3798 ;;
3800 *-*-sco3.2v5*)
3801 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3802 SAVE_CFLAGS="$CFLAGS"
3803 CFLAGS="$CFLAGS -belf"
3804 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3805 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3806 if test "${lt_cv_cc_needs_belf+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 ac_ext=c
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3822 int
3823 main ()
3824 {
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832 (eval $ac_link) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest$ac_exeext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 lt_cv_cc_needs_belf=yes
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 lt_cv_cc_needs_belf=no
3858 fi
3859 rm -f conftest.err conftest.$ac_objext \
3860 conftest$ac_exeext conftest.$ac_ext
3861 ac_ext=c
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 fi
3868 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3869 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3870 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3871 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3872 CFLAGS="$SAVE_CFLAGS"
3873 fi
3874 ;;
3875 sparc*-*solaris*)
3876 # Find out which ABI we are using.
3877 echo 'int i;' > conftest.$ac_ext
3878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879 (eval $ac_compile) 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; then
3883 case `/usr/bin/file conftest.o` in
3884 *64-bit*)
3885 case $lt_cv_prog_gnu_ld in
3886 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3887 *) LD="${LD-ld} -64" ;;
3888 esac
3889 ;;
3890 esac
3891 fi
3892 rm -rf conftest*
3893 ;;
3896 esac
3898 need_locks="$enable_libtool_lock"
3901 ac_ext=c
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3907 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3908 # On Suns, sometimes $CPP names a directory.
3909 if test -n "$CPP" && test -d "$CPP"; then
3910 CPP=
3911 fi
3912 if test -z "$CPP"; then
3913 if test "${ac_cv_prog_CPP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 # Double quotes because CPP needs to be expanded
3917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3918 do
3919 ac_preproc_ok=false
3920 for ac_c_preproc_warn_flag in '' yes
3921 do
3922 # Use a header file that comes with gcc, so configuring glibc
3923 # with a fresh cross-compiler works.
3924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925 # <limits.h> exists even on freestanding compilers.
3926 # On the NeXT, cc -E runs the code through the compiler's parser,
3927 # not just through cpp. "Syntax error" is here to catch this case.
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #ifdef __STDC__
3935 # include <limits.h>
3936 #else
3937 # include <assert.h>
3938 #endif
3939 Syntax error
3940 _ACEOF
3941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1