mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
Make things work with autoconf-2.71
This commit is contained in:
parent
33e5b72a97
commit
58c4bbcaab
7 changed files with 159 additions and 83 deletions
|
@ -21,15 +21,17 @@ AC_DEFUN(OBJC_CON_AUTOLOAD,
|
|||
AC_MSG_CHECKING(loading of constructor functions)
|
||||
AC_CACHE_VAL(objc_cv_con_autoload,
|
||||
[dnl
|
||||
AC_TRY_RUN([static int loaded = 0;
|
||||
AC_RUN_IFELSE(
|
||||
[AC_LANG_SOURCE([[static int loaded = 0;
|
||||
void cons_functions() __attribute__ ((constructor));
|
||||
void cons_functions() { loaded = 1; }
|
||||
int main()
|
||||
{
|
||||
return ( (loaded == 1) ? 0 : 1);
|
||||
}],
|
||||
objc_cv_con_autoload=yes, objc_cv_con_autoload=no,
|
||||
objc_cv_con_autoload=no)
|
||||
}]])],
|
||||
[objc_cv_con_autoload=yes],
|
||||
[objc_cv_con_autoload=no],
|
||||
[objc_cv_con_autoload=no])
|
||||
case "$target_os" in
|
||||
cygwin*) objc_cv_con_autoload=yes;;
|
||||
mingw*) objc_cv_con_autoload=yes;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue