1 dnl Process this file with autoconf to produce a configure script.
8 if test "$srcdir" = "." ; then
9 mdir=`echo "${with_multisubdir}/" \
10 | sed -e 's,\([[^/]][[^/]]*\),..,g' -e 's,^/$,,'`
11 AC_CONFIG_AUX_DIR(${mdir}../../..)
13 AC_CONFIG_AUX_DIR(${srcdir}/../..)
18 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
19 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
20 # are probably using a cross compiler, which will not be able to fully
21 # link an executable. This should really be fixed in autoconf
24 AC_DEFUN(LIB_AC_PROG_CC,
25 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
26 AC_CHECK_PROG(CC, gcc, gcc)
27 if test -z "$CC"; then
28 AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
29 test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
34 if test $ac_cv_prog_gcc = yes; then
36 dnl Check whether -g works, even if CFLAGS is set, in case the package
37 dnl plays around with CFLAGS (such as to build both debugging and
38 dnl normal versions of a library), tasteless as that idea is.
39 ac_test_CFLAGS="${CFLAGS+set}"
40 ac_save_CFLAGS="$CFLAGS"
43 if test "$ac_test_CFLAGS" = set; then
44 CFLAGS="$ac_save_CFLAGS"
45 elif test $ac_cv_prog_cc_g = yes; then
52 test "${CFLAGS+set}" = set || CFLAGS="-g"
65 host_makefile_frag=${srcdir}/../config/default.mh
67 dnl We have to assign the same value to other variables because autoconf
68 dnl doesn't provide a mechanism to substitute a replacement keyword with
69 dnl arbitrary data or pathnames.
71 host_makefile_frag_path=$host_makefile_frag
72 AC_SUBST(host_makefile_frag_path)
73 AC_SUBST_FILE(host_makefile_frag)