diff options
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.in | 24 |
2 files changed, 21 insertions, 7 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-09-24 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.in (CRT_DIR): Fix netbsd/openbsd handling. | ||
| 4 | |||
| 1 | 2011-09-19 Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | 2011-09-19 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * .dir-locals.el: Change the debbugs regexp to allow having the | 7 | * .dir-locals.el: Change the debbugs regexp to allow having the |
diff --git a/configure.in b/configure.in index 63b80e40466..3d92093bedd 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -985,6 +985,7 @@ LIB_MATH=-lm | |||
| 985 | LIB_STANDARD= | 985 | LIB_STANDARD= |
| 986 | START_FILES= | 986 | START_FILES= |
| 987 | 987 | ||
| 988 | dnl NB do not use CRT_DIR unquoted here, since it might not be set yet. | ||
| 988 | case $opsys in | 989 | case $opsys in |
| 989 | cygwin ) | 990 | cygwin ) |
| 990 | LIB_MATH= | 991 | LIB_MATH= |
| @@ -1007,14 +1008,10 @@ case $opsys in | |||
| 1007 | LIB_STANDARD=-lc | 1008 | LIB_STANDARD=-lc |
| 1008 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o' | 1009 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o' |
| 1009 | ;; | 1010 | ;; |
| 1011 | dnl NB this may be adjusted below. | ||
| 1010 | netbsd | openbsd ) | 1012 | netbsd | openbsd ) |
| 1011 | if test -f $CRT_DIR/crti.o; then | 1013 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o' |
| 1012 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' | 1014 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o' |
| 1013 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' | ||
| 1014 | else | ||
| 1015 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o' | ||
| 1016 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o' | ||
| 1017 | fi | ||
| 1018 | ;; | 1015 | ;; |
| 1019 | esac | 1016 | esac |
| 1020 | 1017 | ||
| @@ -1094,6 +1091,19 @@ fi # crt_files != "" | |||
| 1094 | 1091 | ||
| 1095 | AC_SUBST(CRT_DIR) | 1092 | AC_SUBST(CRT_DIR) |
| 1096 | 1093 | ||
| 1094 | case $opsys in | ||
| 1095 | netbsd | openbsd ) | ||
| 1096 | if test -f $CRT_DIR/crti.o; then | ||
| 1097 | |||
| 1098 | test -f $CRT_DIR/crtn.o || \ | ||
| 1099 | AC_MSG_ERROR([Required file not found: crtn.o]) | ||
| 1100 | |||
| 1101 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' | ||
| 1102 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' | ||
| 1103 | fi | ||
| 1104 | ;; | ||
| 1105 | esac | ||
| 1106 | |||
| 1097 | 1107 | ||
| 1098 | dnl This function definition taken from Gnome 2.0 | 1108 | dnl This function definition taken from Gnome 2.0 |
| 1099 | dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) | 1109 | dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) |