mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 11:14:05 +02:00
Use libtool to determine shared library suffix. (#357245)
2006-12-26 Behdad Esfahbod <behdad@gnome.org> * configure.in: Use libtool to determine shared library suffix. (#357245)
This commit is contained in:
committed by
Behdad Esfahbod
parent
ca7dc0e94c
commit
992a0c5ed5
@@ -1,3 +1,8 @@
|
|||||||
|
2006-12-26 Behdad Esfahbod <behdad@gnome.org>
|
||||||
|
|
||||||
|
* configure.in: Use libtool to determine shared library suffix.
|
||||||
|
(#357245)
|
||||||
|
|
||||||
2006-12-24 Matthias Clasen <mclasen@redhat.com>
|
2006-12-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* tests/run-collate-tests.sh:
|
* tests/run-collate-tests.sh:
|
||||||
|
30
configure.in
30
configure.in
@@ -1312,28 +1312,16 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(for the suffix of shared libraries)
|
AC_MSG_CHECKING(for the suffix of shared libraries)
|
||||||
case "$host_os" in
|
shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
|
||||||
hpux9* | hpux10* | hpux11*) # taken from ltconfig
|
eval $shrext_cmds
|
||||||
case "$host_cpu" in
|
module=yes eval std_shrext=$shrext_cmds
|
||||||
hppa*)
|
# chop the initial dot
|
||||||
glib_gmodule_suffix='sl'
|
glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'`
|
||||||
;;
|
|
||||||
ia64*)
|
|
||||||
glib_gmodule_suffix='so'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
cygwin* | mingw*)
|
|
||||||
glib_gmodule_suffix='dll'
|
|
||||||
;;
|
|
||||||
aix*)
|
|
||||||
glib_gmodule_suffix='a'
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
glib_gmodule_suffix='so'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
AC_MSG_RESULT(.$glib_gmodule_suffix)
|
AC_MSG_RESULT(.$glib_gmodule_suffix)
|
||||||
|
# any reason it may fail?
|
||||||
|
if test "x$glib_gmodule_suffix" = x; then
|
||||||
|
AC_MSG_ERROR(Cannot determine shared library suffix from libtool)
|
||||||
|
fi
|
||||||
|
|
||||||
AC_SUBST(G_MODULE_SUPPORTED)
|
AC_SUBST(G_MODULE_SUPPORTED)
|
||||||
AC_SUBST(G_MODULE_IMPL)
|
AC_SUBST(G_MODULE_IMPL)
|
||||||
|
Reference in New Issue
Block a user