Mercurial > emacs
comparison configure @ 106009:e6af95c4c862
Use gcc-generated dependency files if we can (GNU Make and gcc required).
* Makefile.in: If AUTO_DEPEND is defined, make gcc generate
dependency files in deps/. Include those files into Makefile.
* config.in: Generated (AUTO_DEPEND).
* configure.in: --enable-autodepend is new. Check for GNU Make
and that gcc supports -MMD -MF. Define AUTO_DEPEND if we can use
gcc and GNU make to generate dependencies.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Sat, 14 Nov 2009 15:17:38 +0000 |
parents | 73190af7ce73 |
children | cd4cbab8bb21 |
comparison
equal
deleted
inserted
replaced
106008:38f236a275ca | 106009:e6af95c4c862 |
---|---|
800 enable_asserts | 800 enable_asserts |
801 enable_maintainer_mode | 801 enable_maintainer_mode |
802 enable_locallisppath | 802 enable_locallisppath |
803 enable_checking | 803 enable_checking |
804 enable_profiling | 804 enable_profiling |
805 enable_autodepend | |
805 enable_largefile | 806 enable_largefile |
806 with_x | 807 with_x |
807 ' | 808 ' |
808 ac_precious_vars='build_alias | 809 ac_precious_vars='build_alias |
809 host_alias | 810 host_alias |
1463 only specific categories of checks. Categories are: | 1464 only specific categories of checks. Categories are: |
1464 all,yes,no. Flags are: stringbytes, stringoverrun, | 1465 all,yes,no. Flags are: stringbytes, stringoverrun, |
1465 stringfreelist, xmallocoverrun, conslist | 1466 stringfreelist, xmallocoverrun, conslist |
1466 --enable-profiling build emacs with profiling support. This might not | 1467 --enable-profiling build emacs with profiling support. This might not |
1467 work on all platforms | 1468 work on all platforms |
1469 --enable-autodepend automatically generate dependencies to .h-files. | |
1470 Requires GNU Make and Gcc. Enabled if GNU Make and | |
1471 Gcc is found | |
1468 --disable-largefile omit support for large files | 1472 --disable-largefile omit support for large files |
1469 | 1473 |
1470 Optional Packages: | 1474 Optional Packages: |
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
2422 else | 2426 else |
2423 PROFILING_CFLAGS= | 2427 PROFILING_CFLAGS= |
2424 PROFILING_LDFLAGS= | 2428 PROFILING_LDFLAGS= |
2425 fi | 2429 fi |
2426 | 2430 |
2431 # Check whether --enable-autodepend was given. | |
2432 if test "${enable_autodepend+set}" = set; then | |
2433 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" | |
2434 else | |
2435 ac_enable_autodepend=yes | |
2436 fi | |
2437 | |
2438 | |
2427 #### Make srcdir absolute, if it isn't already. It's important to | 2439 #### Make srcdir absolute, if it isn't already. It's important to |
2428 #### avoid running the path through pwd unnecessarily, since pwd can | 2440 #### avoid running the path through pwd unnecessarily, since pwd can |
2429 #### give you automounter prefixes, which can go away. We do all this | 2441 #### give you automounter prefixes, which can go away. We do all this |
2430 #### so Emacs can find its files when run uninstalled. | 2442 #### so Emacs can find its files when run uninstalled. |
2431 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | 2443 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
9121 { $as_echo "$as_me:$LINENO: result: no" >&5 | 9133 { $as_echo "$as_me:$LINENO: result: no" >&5 |
9122 $as_echo "no" >&6; } | 9134 $as_echo "no" >&6; } |
9123 SET_MAKE="MAKE=${MAKE-make}" | 9135 SET_MAKE="MAKE=${MAKE-make}" |
9124 fi | 9136 fi |
9125 | 9137 |
9138 | |
9139 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then | |
9140 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5 | |
9141 $as_echo_n "checking whether we are using GNU Make... " >&6; } | |
9142 HAVE_GNU_MAKE=no | |
9143 testval=`make --version 2>/dev/null | grep 'GNU Make'` | |
9144 if test "x$testval" != x; then | |
9145 HAVE_GNU_MAKE=yes | |
9146 else | |
9147 ac_enable_autodepend=no | |
9148 fi | |
9149 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5 | |
9150 $as_echo "$HAVE_GNU_MAKE" >&6; } | |
9151 if test $HAVE_GNU_MAKE = yes; then | |
9152 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5 | |
9153 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } | |
9154 SAVE_CFLAGS="$CFLAGS" | |
9155 CFLAGS="$CFLAGS -MMD -MF deps.d" | |
9156 cat >conftest.$ac_ext <<_ACEOF | |
9157 /* confdefs.h. */ | |
9158 _ACEOF | |
9159 cat confdefs.h >>conftest.$ac_ext | |
9160 cat >>conftest.$ac_ext <<_ACEOF | |
9161 /* end confdefs.h. */ | |
9162 | |
9163 int | |
9164 main () | |
9165 { | |
9166 | |
9167 ; | |
9168 return 0; | |
9169 } | |
9170 _ACEOF | |
9171 rm -f conftest.$ac_objext | |
9172 if { (ac_try="$ac_compile" | |
9173 case "(($ac_try" in | |
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9175 *) ac_try_echo=$ac_try;; | |
9176 esac | |
9177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9178 $as_echo "$ac_try_echo") >&5 | |
9179 (eval "$ac_compile") 2>conftest.er1 | |
9180 ac_status=$? | |
9181 grep -v '^ *+' conftest.er1 >conftest.err | |
9182 rm -f conftest.er1 | |
9183 cat conftest.err >&5 | |
9184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9185 (exit $ac_status); } && { | |
9186 test -z "$ac_c_werror_flag" || | |
9187 test ! -s conftest.err | |
9188 } && test -s conftest.$ac_objext; then | |
9189 : | |
9190 else | |
9191 $as_echo "$as_me: failed program was:" >&5 | |
9192 sed 's/^/| /' conftest.$ac_ext >&5 | |
9193 | |
9194 ac_enable_autodepend=no | |
9195 fi | |
9196 | |
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9198 CFLAGS="$SAVE_CFLAGS" | |
9199 test -f deps.d || ac_enable_autodepend=no | |
9200 rm -rf deps.d | |
9201 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5 | |
9202 $as_echo "$ac_enable_autodepend" >&6; } | |
9203 fi | |
9204 if test $ac_enable_autodepend = yes; then | |
9205 | |
9206 cat >>confdefs.h <<\_ACEOF | |
9207 #define AUTO_DEPEND 1 | |
9208 _ACEOF | |
9209 | |
9210 fi | |
9211 fi | |
9126 | 9212 |
9127 { $as_echo "$as_me:$LINENO: checking for long file names" >&5 | 9213 { $as_echo "$as_me:$LINENO: checking for long file names" >&5 |
9128 $as_echo_n "checking for long file names... " >&6; } | 9214 $as_echo_n "checking for long file names... " >&6; } |
9129 if test "${ac_cv_sys_long_file_names+set}" = set; then | 9215 if test "${ac_cv_sys_long_file_names+set}" = set; then |
9130 $as_echo_n "(cached) " >&6 | 9216 $as_echo_n "(cached) " >&6 |