comparison configure.in @ 2063:219cf611ff70

[project @ 1996-04-07 22:15:23 by jwe]
author jwe
date Sun, 07 Apr 1996 22:20:40 +0000
parents 098edb40c89b
children 424b95481a85
comparison
equal deleted inserted replaced
2062:055ffed429b8 2063:219cf611ff70
18 ### 18 ###
19 ### You should have received a copy of the GNU General Public License 19 ### You should have received a copy of the GNU General Public License
20 ### along with Octave; see the file COPYING. If not, write to the Free 20 ### along with Octave; see the file COPYING. If not, write to the Free
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 22
23 AC_REVISION($Revision: 1.186 $) 23 AC_REVISION($Revision: 1.190 $)
24 AC_PREREQ(2.9) 24 AC_PREREQ(2.9)
25 AC_INIT(src/octave.cc) 25 AC_INIT(src/octave.cc)
26 AC_CONFIG_HEADER(config.h) 26 AC_CONFIG_HEADER(config.h)
27 27
28 AC_DEFINE(OCTAVE_SOURCE, 1) 28 AC_DEFINE(OCTAVE_SOURCE, 1)
217 217
218 HOST_CXXFLAGS= 218 HOST_CXXFLAGS=
219 case "$gxx_version" in 219 case "$gxx_version" in
220 2.6.*) 220 2.6.*)
221 case "$canonical_host_type" in 221 case "$canonical_host_type" in
222 rs6000-ibm-aix*) 222 rs6000-ibm-aix* | powerpc-ibm-aix*)
223 HOST_CXXFLAGS="-Wa,-u" 223 HOST_CXXFLAGS="-Wa,-u"
224 AC_MSG_RESULT([defining HOST_CXXFLAGS to be $HOST_CXXFLAGS]) 224 AC_MSG_RESULT([defining HOST_CXXFLAGS to be $HOST_CXXFLAGS])
225 ;; 225 ;;
226 esac 226 esac
227 ;; 227 ;;
676 AC_CHECK_FUNCS(sigaction sigprocmask sigpending sigsuspend) 676 AC_CHECK_FUNCS(sigaction sigprocmask sigpending sigsuspend)
677 677
678 OCTAVE_SMART_PUTENV 678 OCTAVE_SMART_PUTENV
679 OCTAVE_PROGRAM_INVOCATION_NAME 679 OCTAVE_PROGRAM_INVOCATION_NAME
680 680
681 DLFCN_LIB=
682 DLFCN_INCLUDE=
681 if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then 683 if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then
682 AC_CHECK_LIB(dl, dlopen) 684 case "$canonical_host_type" in
683 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose) 685 rs6000-ibm-aix* | powerpc-ibm-aix*)
684 if test "$ac_cv_func_dlopen" = yes \ 686 DLFCN_LIB='$TOPDIR/dlfcn/dlfcn.a'
685 && test "$ac_cv_func_dlsym" = yes \ 687 DLFCN_INCLUDE='-L$top_srcdir/dlfcn -L$TOPDIR/dlfcn'
686 && test "$ac_cv_func_dlerror" = yes \ 688 WITH_DL=true
687 && test "$ac_cv_func_dlclose" = yes; then 689 ;;
688 WITH_DL=true 690 *)
689 else 691 AC_CHECK_LIB(dl, dlopen)
690 if test "$WITH_DL" = yes; then 692 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose)
691 AC_MSG_ERROR([--enable-dl specified, but functions are missing!]) 693 if test "$ac_cv_func_dlopen" = yes \
692 fi 694 && test "$ac_cv_func_dlsym" = yes \
693 WITH_DL=false 695 && test "$ac_cv_func_dlerror" = yes \
694 fi 696 && test "$ac_cv_func_dlclose" = yes; then
697 WITH_DL=true
698 else
699 if test "$WITH_DL" = yes; then
700 AC_MSG_ERROR([--enable-dl specified, but functions are missing!])
701 fi
702 WITH_DL=false
703 fi
704 ;;
705 esac
695 if $WITH_DL; then 706 if $WITH_DL; then
696 AC_DEFINE(WITH_DL, 1) 707 AC_DEFINE(WITH_DL, 1)
697 fi 708 fi
698 else 709 else
699 WITH_DL=false 710 WITH_DL=false
700 fi 711 fi
701 AC_SUBST(WITH_DL) 712 AC_SUBST(WITH_DL)
713 AC_SUBST(DLFCN_LIB)
714 AC_SUBST(DLFCN_INCLUDE)
702 715
703 if test "$WITH_SHL" = yes || test "$WITH_SHL" = maybe; then 716 if test "$WITH_SHL" = yes || test "$WITH_SHL" = maybe; then
704 AC_CHECK_LIB(dld, shl_load) 717 AC_CHECK_LIB(dld, shl_load)
705 AC_CHECK_FUNCS(shl_load shl_findsym) 718 AC_CHECK_FUNCS(shl_load shl_findsym)
706 if test "$ac_cv_func_shl_load" = yes \ 719 if test "$ac_cv_func_shl_load" = yes \