comparison m4/acinclude.m4 @ 15133:f91eac1bc66d

m4/acinclude.m4: Correct typos, use consistent style for describing macros. * m4/acinclude.m4: Correct typos, use consistent style for describing macros.
author Rik <rik@octave.org>
date Wed, 08 Aug 2012 21:51:23 -0700
parents 25200c04bc25
children edae65062740
comparison
equal deleted inserted replaced
15132:3e5b00d964ad 15133:f91eac1bc66d
37 dnl 37 dnl
38 dnl ---------------------------------------------------------------------- 38 dnl ----------------------------------------------------------------------
39 dnl 39 dnl
40 dnl Figure out the hardware-vendor-os info. 40 dnl Figure out the hardware-vendor-os info.
41 dnl 41 dnl
42 dnl OCTAVE_HOST_TYPE
43 AC_DEFUN([OCTAVE_HOST_TYPE], 42 AC_DEFUN([OCTAVE_HOST_TYPE],
44 [AC_CANONICAL_HOST 43 [AC_CANONICAL_HOST
45 if test -z "$host"; then 44 if test -z "$host"; then
46 host=unknown 45 host=unknown
47 fi 46 fi
52 fi 51 fi
53 AC_SUBST(canonical_host_type)]) 52 AC_SUBST(canonical_host_type)])
54 dnl 53 dnl
55 dnl Set default value for a variable and substitute it. 54 dnl Set default value for a variable and substitute it.
56 dnl 55 dnl
57 dnl OCTAVE_SET_DEFAULT
58 AC_DEFUN([OCTAVE_SET_DEFAULT], 56 AC_DEFUN([OCTAVE_SET_DEFAULT],
59 [ifelse($#, 2, [: ${$1=$2} 57 [ifelse($#, 2, [: ${$1=$2}
60 ])dnl 58 ])dnl
61 AC_MSG_RESULT([defining $1 to be $$1]) 59 AC_MSG_RESULT([defining $1 to be $$1])
62 AC_SUBST($1)]) 60 AC_SUBST($1)])
73 ARFLAGS="rc" 71 ARFLAGS="rc"
74 fi 72 fi
75 AC_SUBST(ARFLAGS) 73 AC_SUBST(ARFLAGS)
76 ]) 74 ])
77 dnl 75 dnl
78 dnl See if the compiler supports placement delete 76 dnl Check if the compiler supports placement delete.
79 dnl 77 dnl
80 AC_DEFUN([OCTAVE_PLACEMENT_DELETE], 78 AC_DEFUN([OCTAVE_PLACEMENT_DELETE],
81 [AC_CACHE_CHECK([whether <new> defines placement delete operator], 79 [AC_CACHE_CHECK([whether <new> defines placement delete operator],
82 octave_cv_placement_delete, 80 octave_cv_placement_delete,
83 [AC_LANG_PUSH(C++) 81 [AC_LANG_PUSH(C++)
88 AC_DEFINE(HAVE_PLACEMENT_DELETE,1,[Define to 1 if C++ supports operator delete(void *, void *).]) 86 AC_DEFINE(HAVE_PLACEMENT_DELETE,1,[Define to 1 if C++ supports operator delete(void *, void *).])
89 fi 87 fi
90 AC_LANG_POP(C++) 88 AC_LANG_POP(C++)
91 ]) 89 ])
92 dnl 90 dnl
93 dnl See if the compiler dynamic auto arrays 91 dnl Check if the compiler dynamic auto arrays.
94 dnl 92 dnl
95 AC_DEFUN([OCTAVE_DYNAMIC_AUTO_ARRAYS], 93 AC_DEFUN([OCTAVE_DYNAMIC_AUTO_ARRAYS],
96 [AC_CACHE_CHECK([whether C++ supports dynamic auto arrays], 94 [AC_CACHE_CHECK([whether C++ supports dynamic auto arrays],
97 octave_cv_dynamic_auto_arrays, 95 octave_cv_dynamic_auto_arrays,
98 [AC_LANG_PUSH(C++) 96 [AC_LANG_PUSH(C++)
103 AC_DEFINE(HAVE_DYNAMIC_AUTO_ARRAYS,1,[Define to 1 if C++ supports dynamic auto arrays.]) 101 AC_DEFINE(HAVE_DYNAMIC_AUTO_ARRAYS,1,[Define to 1 if C++ supports dynamic auto arrays.])
104 fi 102 fi
105 AC_LANG_POP(C++) 103 AC_LANG_POP(C++)
106 ]) 104 ])
107 dnl 105 dnl
108 dnl See if the C++ library has the bit_and, bit_or and bit_xor 106 dnl Check if the C++ library has the bit_and, bit_or, and bit_xor
109 dnl templates defined. 107 dnl templates defined.
110 dnl 108 dnl
111 AC_DEFUN([OCTAVE_CXX_BITWISE_OP_TEMPLATES], 109 AC_DEFUN([OCTAVE_CXX_BITWISE_OP_TEMPLATES],
112 [AC_CACHE_CHECK([whether bit_and, bit_or and bit_xor are defined in the c++ library], 110 [AC_CACHE_CHECK([whether bit_and, bit_or, bit_xor are defined in the C++ library],
113 octave_cv_cxx_bitwise_op_templates, 111 octave_cv_cxx_bitwise_op_templates,
114 [AC_LANG_PUSH(C++) 112 [AC_LANG_PUSH(C++)
115 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <functional>]], 113 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <functional>]],
116 [[int x = 0; 114 [[int x = 0;
117 int y = 1; 115 int y = 1;
124 fi 122 fi
125 AC_LANG_POP(C++) 123 AC_LANG_POP(C++)
126 ]) 124 ])
127 125
128 dnl 126 dnl
129 dnl See if the C++ library has functions to set real and imaginary 127 dnl Check if the C++ library has functions to set real and imaginary
130 dnl parts of complex numbers independently. 128 dnl parts of complex numbers independently.
131 dnl 129 dnl
132 AC_DEFUN([OCTAVE_CXX_COMPLEX_SETTERS], 130 AC_DEFUN([OCTAVE_CXX_COMPLEX_SETTERS],
133 [AC_CACHE_CHECK([whether complex class can set components independently], 131 [AC_CACHE_CHECK([whether complex class can set components independently],
134 octave_cv_cxx_complex_setters, 132 octave_cv_cxx_complex_setters,
140 AC_DEFINE(HAVE_CXX_COMPLEX_SETTERS,1,[Define to 1 if C++ complex class has void real (T) and void imag (T) methods.]) 138 AC_DEFINE(HAVE_CXX_COMPLEX_SETTERS,1,[Define to 1 if C++ complex class has void real (T) and void imag (T) methods.])
141 fi 139 fi
142 AC_LANG_POP(C++) 140 AC_LANG_POP(C++)
143 ]) 141 ])
144 dnl 142 dnl
145 dnl See if the C++ library has functions to access real and imaginary 143 dnl Check if the C++ library has functions to access real and imaginary
146 dnl parts of complex numbers independently via references. 144 dnl parts of complex numbers independently via references.
147 dnl 145 dnl
148 AC_DEFUN([OCTAVE_CXX_COMPLEX_REFERENCE_ACCESSORS], 146 AC_DEFUN([OCTAVE_CXX_COMPLEX_REFERENCE_ACCESSORS],
149 [AC_CACHE_CHECK([whether complex class can reference components independently], 147 [AC_CACHE_CHECK([whether complex class can reference components independently],
150 octave_cv_cxx_complex_reference_accessors, 148 octave_cv_cxx_complex_reference_accessors,
156 AC_DEFINE(HAVE_CXX_COMPLEX_REFERENCE_ACCESSORS,1,[Define to 1 if C++ complex class has T& real (void) and T& imag (void) methods.]) 154 AC_DEFINE(HAVE_CXX_COMPLEX_REFERENCE_ACCESSORS,1,[Define to 1 if C++ complex class has T& real (void) and T& imag (void) methods.])
157 fi 155 fi
158 AC_LANG_POP(C++) 156 AC_LANG_POP(C++)
159 ]) 157 ])
160 dnl 158 dnl
161 dnl See if the Carbon Framework defines CGDisplayBitsPerPixel. 159 dnl Check if the Carbon Framework defines CGDisplayBitsPerPixel.
162 dnl 160 dnl
163 AC_DEFUN([OCTAVE_CARBON_CGDISPLAYBITSPERPIXEL], 161 AC_DEFUN([OCTAVE_CARBON_CGDISPLAYBITSPERPIXEL],
164 [AC_CACHE_CHECK([whether CGDisplayBitsPerPixel is defined in the Carbon Framework], 162 [AC_CACHE_CHECK([whether CGDisplayBitsPerPixel is defined in the Carbon Framework],
165 octave_cv_carbon_cgdisplaybitsperpixel, 163 octave_cv_carbon_cgdisplaybitsperpixel,
166 [AC_LANG_PUSH(C++) 164 [AC_LANG_PUSH(C++)
175 AC_DEFINE(HAVE_CARBON_CGDISPLAYBITSPERPIXEL,1,[Define to 1 if Carbon Framework has CGDisplayBitsPerPixel.]) 173 AC_DEFINE(HAVE_CARBON_CGDISPLAYBITSPERPIXEL,1,[Define to 1 if Carbon Framework has CGDisplayBitsPerPixel.])
176 fi 174 fi
177 AC_LANG_POP(C++) 175 AC_LANG_POP(C++)
178 ]) 176 ])
179 dnl 177 dnl
180 dnl The following test is from Karl Berry's Kpathseach library. I'm 178 dnl The following test is from Karl Berry's Kpathsearch library. I'm
181 dnl including it here in case we someday want to make the use of 179 dnl including it here in case we someday want to make the use of
182 dnl kpathsea optional. 180 dnl kpathsea optional.
183 dnl 181 dnl
184 dnl Some BSD putenv's, e.g., FreeBSD, do malloc/free's on the environment. 182 dnl Some BSD putenv's, e.g., FreeBSD, do malloc/free's on the environment.
185 dnl This test program is due to Mike Hibler <mike@cs.utah.edu>. 183 dnl This test program is due to Mike Hibler <mike@cs.utah.edu>.
186 dnl We don't actually need to run this if we don't have putenv, but it 184 dnl We don't actually need to run this if we don't have putenv, but it
187 dnl doesn't hurt. 185 dnl doesn't hurt.
186 dnl
188 AC_DEFUN([OCTAVE_SMART_PUTENV], 187 AC_DEFUN([OCTAVE_SMART_PUTENV],
189 [AC_MSG_CHECKING([whether putenv uses malloc]) 188 [AC_MSG_CHECKING([whether putenv uses malloc])
190 AC_CACHE_VAL(octave_cv_func_putenv_malloc, 189 AC_CACHE_VAL(octave_cv_func_putenv_malloc,
191 [AC_RUN_IFELSE([AC_LANG_SOURCE([[ 190 [AC_RUN_IFELSE([AC_LANG_SOURCE([[
192 #define VAR "YOW_VAR" 191 #define VAR "YOW_VAR"
242 AC_MSG_RESULT([$octave_cv_func_putenv_malloc]) 241 AC_MSG_RESULT([$octave_cv_func_putenv_malloc])
243 if test $octave_cv_func_putenv_malloc = yes; then 242 if test $octave_cv_func_putenv_malloc = yes; then
244 AC_DEFINE(SMART_PUTENV,1,[To quiet autoheader.]) 243 AC_DEFINE(SMART_PUTENV,1,[To quiet autoheader.])
245 fi]) 244 fi])
246 dnl 245 dnl
247 dnl Check to see if C++ compiler needs the new friend template declaration 246 dnl Check if C++ compiler needs the new friend template declaration
248 dnl syntax. 247 dnl syntax.
249 dnl 248 dnl
250 dnl OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL
251 AC_DEFUN([OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL], [ 249 AC_DEFUN([OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL], [
252 AC_REQUIRE([AC_PROG_CXX]) 250 AC_REQUIRE([AC_PROG_CXX])
253 AC_MSG_CHECKING([for C++ support for new friend template declaration]) 251 AC_MSG_CHECKING([for C++ support for new friend template declaration])
254 AC_CACHE_VAL(octave_cv_cxx_new_friend_template_decl, [ 252 AC_CACHE_VAL(octave_cv_cxx_new_friend_template_decl, [
255 AC_LANG_PUSH(C++) 253 AC_LANG_PUSH(C++)
277 if test $octave_cv_cxx_new_friend_template_decl = yes; then 275 if test $octave_cv_cxx_new_friend_template_decl = yes; then
278 AC_DEFINE(CXX_NEW_FRIEND_TEMPLATE_DECL,1,[Define to 1 if your compiler supports `<>' stuff for template friends.]) 276 AC_DEFINE(CXX_NEW_FRIEND_TEMPLATE_DECL,1,[Define to 1 if your compiler supports `<>' stuff for template friends.])
279 fi 277 fi
280 ]) 278 ])
281 dnl 279 dnl
282 dnl Check to see if C compiler handles FLAG command line option. If 280 dnl Check if C compiler handles FLAG command line option. If two
283 dnl two arguments are specified, execute the second arg as shell 281 dnl arguments are specified, execute the second arg as shell commands.
284 dnl commands. Otherwise, add FLAG to CFLAGS if the compiler accepts 282 dnl Otherwise, add FLAG to CFLAGS if the compiler accepts the flag.
285 dnl the flag. 283 dnl
286 dnl
287 dnl OCTAVE_CC_FLAG
288 AC_DEFUN([OCTAVE_CC_FLAG], [ 284 AC_DEFUN([OCTAVE_CC_FLAG], [
289 ac_safe=`echo "$1" | sed 'y% ./+-:=%___p___%'` 285 ac_safe=`echo "$1" | sed 'y% ./+-:=%___p___%'`
290 AC_MSG_CHECKING([whether ${CC-cc} accepts $1]) 286 AC_MSG_CHECKING([whether ${CC-cc} accepts $1])
291 AC_CACHE_VAL(octave_cv_cc_flag_$ac_safe, [ 287 AC_CACHE_VAL(octave_cv_cc_flag_$ac_safe, [
292 AC_LANG_PUSH(C) 288 AC_LANG_PUSH(C)
307 AC_MSG_RESULT(no) 303 AC_MSG_RESULT(no)
308 ifelse([$3], , , [$3]) 304 ifelse([$3], , , [$3])
309 fi 305 fi
310 ]) 306 ])
311 dnl 307 dnl
312 dnl Check to see if C++ compiler handles FLAG command line option. If 308 dnl Check if C++ compiler handles FLAG command line option. If two
313 dnl two arguments are specified, execute the second arg as shell 309 dnl arguments are specified, execute the second arg as shell commands.
314 dnl commands. Otherwise, add FLAG to CXXFLAGS if the compiler accepts 310 dnl Otherwise, add FLAG to CXXFLAGS if the compiler accepts the flag.
315 dnl the flag. 311 dnl
316 dnl
317 dnl OCTAVE_CXX_FLAG
318 AC_DEFUN([OCTAVE_CXX_FLAG], [ 312 AC_DEFUN([OCTAVE_CXX_FLAG], [
319 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'` 313 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'`
320 AC_MSG_CHECKING([whether ${CXX-g++} accepts $1]) 314 AC_MSG_CHECKING([whether ${CXX-g++} accepts $1])
321 AC_CACHE_VAL(octave_cv_cxx_flag_$ac_safe, [ 315 AC_CACHE_VAL(octave_cv_cxx_flag_$ac_safe, [
322 AC_LANG_PUSH(C++) 316 AC_LANG_PUSH(C++)
337 AC_MSG_RESULT(no) 331 AC_MSG_RESULT(no)
338 ifelse([$3], , , [$3]) 332 ifelse([$3], , , [$3])
339 fi 333 fi
340 ]) 334 ])
341 dnl 335 dnl
342 dnl Check to see if Fortran compiler handles FLAG command line option. If 336 dnl Check if Fortran compiler handles FLAG command line option. If
343 dnl two arguments are specified, execute the second arg as shell 337 dnl two arguments are specified, execute the second arg as shell
344 dnl commands. Otherwise, add FLAG to FFLAGS if the compiler accepts 338 dnl commands. Otherwise, add FLAG to FFLAGS if the compiler accepts
345 dnl the flag. 339 dnl the flag.
346 dnl 340 dnl
347 dnl OCTAVE_F77_FLAG
348 AC_DEFUN([OCTAVE_F77_FLAG], [ 341 AC_DEFUN([OCTAVE_F77_FLAG], [
349 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'` 342 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'`
350 AC_MSG_CHECKING([whether ${F77-g77} accepts $1]) 343 AC_MSG_CHECKING([whether ${F77-g77} accepts $1])
351 AC_CACHE_VAL(octave_cv_f77_flag_$ac_safe, [ 344 AC_CACHE_VAL(octave_cv_f77_flag_$ac_safe, [
352 AC_LANG_PUSH(Fortran 77) 345 AC_LANG_PUSH(Fortran 77)
367 AC_MSG_RESULT(no) 360 AC_MSG_RESULT(no)
368 ifelse([$3], , , [$3]) 361 ifelse([$3], , , [$3])
369 fi 362 fi
370 ]) 363 ])
371 dnl 364 dnl
372 dnl Check to see whether Fortran compiler has the intrinsic function ISNAN. 365 dnl Check if Fortran compiler has the intrinsic function ISNAN.
373 dnl 366 dnl
374 AC_DEFUN([OCTAVE_CHECK_FORTRAN_HAVE_ISNAN], [ 367 AC_DEFUN([OCTAVE_CHECK_FORTRAN_HAVE_ISNAN], [
375 AC_LANG_PUSH(Fortran 77) 368 AC_LANG_PUSH(Fortran 77)
376 AC_CACHE_CHECK([whether $F77 has the intrinsic function ISNAN], 369 AC_CACHE_CHECK([whether $F77 has the intrinsic function ISNAN],
377 [octave_cv_fortran_have_isnan], 370 [octave_cv_fortran_have_isnan],
389 end program], [octave_cv_fortran_have_isnan=yes], [octave_cv_fortran_have_isnan=no] 382 end program], [octave_cv_fortran_have_isnan=yes], [octave_cv_fortran_have_isnan=no]
390 )]) 383 )])
391 AC_LANG_POP(Fortran 77) 384 AC_LANG_POP(Fortran 77)
392 ]) 385 ])
393 dnl 386 dnl
394 dnl Check to see whether the default Fortran INTEGER is 64 bits wide. 387 dnl Check if the default Fortran INTEGER is 64 bits wide.
395 dnl 388 dnl
396 AC_DEFUN([OCTAVE_CHECK_FORTRAN_INTEGER_SIZE], [ 389 AC_DEFUN([OCTAVE_CHECK_FORTRAN_INTEGER_SIZE], [
397 octave_fintsize_save_FFLAGS="$FFLAGS" 390 octave_fintsize_save_FFLAGS="$FFLAGS"
398 FFLAGS="$FFLAGS $F77_INTEGER_8_FLAG" 391 FFLAGS="$FFLAGS $F77_INTEGER_8_FLAG"
399 AC_LANG_PUSH(Fortran 77) 392 AC_LANG_PUSH(Fortran 77)
443 octave_cv_fortran_integer_size=no])]) 436 octave_cv_fortran_integer_size=no])])
444 AC_LANG_POP(Fortran 77) 437 AC_LANG_POP(Fortran 77)
445 FFLAGS="$octave_fintsize_save_FFLAGS" 438 FFLAGS="$octave_fintsize_save_FFLAGS"
446 ]) 439 ])
447 dnl 440 dnl
448 dnl 441 dnl Add warning to final summary.
449 dnl Adds warnings to final summary
450 dnl 442 dnl
451 AC_DEFUN([OCTAVE_CONFIGURE_WARNING], [ 443 AC_DEFUN([OCTAVE_CONFIGURE_WARNING], [
452 AC_MSG_WARN([$][$1]) 444 AC_MSG_WARN([$][$1])
453 m4_set_add([summary_warning_list], [$1]) 445 m4_set_add([summary_warning_list], [$1])
454 ]) 446 ])
455 dnl 447 dnl
456 dnl 448 dnl Print final summary.
457 dnl Prints final summary
458 dnl 449 dnl
459 AC_DEFUN([OCTAVE_CONFIGURE_WARNING_SUMMARY], [ 450 AC_DEFUN([OCTAVE_CONFIGURE_WARNING_SUMMARY], [
460 m4_set_foreach([summary_warning_list], [elt], [ 451 m4_set_foreach([summary_warning_list], [elt], [
461 if test -n "[$]elt"; then 452 if test -n "[$]elt"; then
462 AC_MSG_WARN([$]elt) 453 AC_MSG_WARN([$]elt)
463 warn_msg_printed=true 454 warn_msg_printed=true
464 fi]) 455 fi])
465 ]) 456 ])
466 dnl 457 dnl
467 dnl
468 dnl
469 dnl OCTAVE_CHECK_LIBRARY(LIBRARY, DOC-NAME, WARN-MSG, HEADER, FUNC, 458 dnl OCTAVE_CHECK_LIBRARY(LIBRARY, DOC-NAME, WARN-MSG, HEADER, FUNC,
470 dnl LANG, DOC-STRING, EXTRA-CHECK) 459 dnl LANG, DOC-STRING, EXTRA-CHECK)
460 dnl
471 AC_DEFUN([OCTAVE_CHECK_LIBRARY], [ 461 AC_DEFUN([OCTAVE_CHECK_LIBRARY], [
472 AC_ARG_WITH([$1-includedir], 462 AC_ARG_WITH([$1-includedir],
473 [AS_HELP_STRING([--with-$1-includedir=DIR], 463 [AS_HELP_STRING([--with-$1-includedir=DIR],
474 [look for $2 include files in DIR])], 464 [look for $2 include files in DIR])],
475 [m4_toupper([$1])_CPPFLAGS="-I$withval"]) 465 [m4_toupper([$1])_CPPFLAGS="-I$withval"])
543 AC_MSG_WARN([$warn_$1]) 533 AC_MSG_WARN([$warn_$1])
544 m4_toupper([$1])_LIBS= 534 m4_toupper([$1])_LIBS=
545 fi 535 fi
546 ]) 536 ])
547 dnl 537 dnl
548 dnl Check for flex 538 dnl Check for flex.
549 dnl 539 dnl
550 AC_DEFUN([OCTAVE_PROG_FLEX], [ 540 AC_DEFUN([OCTAVE_PROG_FLEX], [
551 ### For now, don't define LEXLIB to be -lfl -- we don't use anything in 541 ### For now, don't define LEXLIB to be -lfl -- we don't use anything in
552 ### it, and it might not be installed. 542 ### it, and it might not be installed.
553 ### 543 ###
571 ;; 561 ;;
572 esac 562 esac
573 AC_SUBST(LFLAGS) 563 AC_SUBST(LFLAGS)
574 ]) 564 ])
575 dnl 565 dnl
576 dnl Check for bison 566 dnl Check for bison.
577 dnl 567 dnl
578 AC_DEFUN([OCTAVE_PROG_BISON], [ 568 AC_DEFUN([OCTAVE_PROG_BISON], [
579 AC_PROG_YACC 569 AC_PROG_YACC
580 case "$YACC" in 570 case "$YACC" in
581 bison*) 571 bison*)
615 OCTAVE_CONFIGURE_WARNING([warn_less]) 605 OCTAVE_CONFIGURE_WARNING([warn_less])
616 fi 606 fi
617 fi 607 fi
618 ]) 608 ])
619 dnl 609 dnl
620 dnl Does gnuplot exist? 610 dnl Check for gnuplot.
621 dnl 611 dnl
622 AC_DEFUN([OCTAVE_PROG_GNUPLOT], [ 612 AC_DEFUN([OCTAVE_PROG_GNUPLOT], [
623 gp_names="gnuplot" 613 gp_names="gnuplot"
624 gp_default="gnuplot" 614 gp_default="gnuplot"
625 if test "$cross_compiling" = yes; then 615 if test "$cross_compiling" = yes; then
629 AC_CHECK_PROGS(GNUPLOT, [$gp_names]) 619 AC_CHECK_PROGS(GNUPLOT, [$gp_names])
630 if test -z "$GNUPLOT"; then 620 if test -z "$GNUPLOT"; then
631 GNUPLOT="$gp_default" 621 GNUPLOT="$gp_default"
632 warn_gnuplot=" 622 warn_gnuplot="
633 623
634 gnuplot not found. It isn't necessary to have gnuplot installed, but 624 gnuplot not found. It isn't necessary to have gnuplot installed, but
635 without native graphics or gnuplot you won't be able to use any of 625 without native graphics or gnuplot you won't be able to use any of
636 Octave's plotting commands. 626 Octave's plotting commands.
637 " 627 "
638 OCTAVE_CONFIGURE_WARNING([warn_gnuplot]) 628 OCTAVE_CONFIGURE_WARNING([warn_gnuplot])
639 fi 629 fi
640 fi 630 fi
641 AC_SUBST(GNUPLOT) 631 AC_SUBST(GNUPLOT)
642 ]) 632 ])
643 dnl 633 dnl
644 dnl Is gperf installed? 634 dnl Check for gperf.
645 dnl 635 dnl
646 dnl OCTAVE_PROG_GPERF
647 AC_DEFUN([OCTAVE_PROG_GPERF], [ 636 AC_DEFUN([OCTAVE_PROG_GPERF], [
648 AC_CHECK_PROG(GPERF, gperf, gperf, []) 637 AC_CHECK_PROG(GPERF, gperf, gperf, [])
649 if test -z "$GPERF"; then 638 if test -z "$GPERF"; then
650 GPERF='$(top_srcdir)/build-aux/missing gperf' 639 GPERF='$(top_srcdir)/build-aux/missing gperf'
651 warn_gperf=" 640 warn_gperf="
656 OCTAVE_CONFIGURE_WARNING([warn_gperf]) 645 OCTAVE_CONFIGURE_WARNING([warn_gperf])
657 fi 646 fi
658 AC_SUBST(GPERF) 647 AC_SUBST(GPERF)
659 ]) 648 ])
660 dnl 649 dnl
661 dnl Is ghostscript installed? 650 dnl Check for ghostscript.
662 dnl 651 dnl
663 dnl OCTAVE_PROG_GHOSTSCRIPT
664 AC_DEFUN([OCTAVE_PROG_GHOSTSCRIPT], [ 652 AC_DEFUN([OCTAVE_PROG_GHOSTSCRIPT], [
665 case "$canonical_host_type" in 653 case "$canonical_host_type" in
666 *-*-mingw* | *-*-msdosmsvc) 654 *-*-mingw* | *-*-msdosmsvc)
667 gs_names="gswin32c gs mgs" 655 gs_names="gswin32c gs mgs"
668 ;; 656 ;;
683 OCTAVE_CONFIGURE_WARNING([warn_ghostscript]) 671 OCTAVE_CONFIGURE_WARNING([warn_ghostscript])
684 fi 672 fi
685 AC_SUBST(GHOSTSCRIPT) 673 AC_SUBST(GHOSTSCRIPT)
686 ]) 674 ])
687 dnl 675 dnl
688 dnl Find makeinfo required for reading documentation 676 dnl Check for makeinfo.
689 dnl 677 dnl
690 dnl OCTAVE_PROG_MAKEINFO
691 AC_DEFUN([OCTAVE_PROG_MAKEINFO], 678 AC_DEFUN([OCTAVE_PROG_MAKEINFO],
692 dnl use MKINFO, not MAKEINFO, for variable name because Automake automatically 679 dnl use MKINFO, not MAKEINFO, for variable name because Automake automatically
693 dnl defines a value for MAKEINFO even when it does not exist which will then 680 dnl defines a value for MAKEINFO even when it does not exist which will then
694 dnl fool the 'test -z' line. 681 dnl fool the 'test -z' line.
695 [AC_CHECK_PROG(MKINFO, makeinfo, makeinfo, []) 682 [AC_CHECK_PROG(MKINFO, makeinfo, makeinfo, [])
696 if test -z "$MKINFO"; then 683 if test -z "$MKINFO"; then
697 AC_MSG_ERROR([makeinfo program required for reading documentation]) 684 AC_MSG_ERROR([makeinfo program required for reading documentation])
698 fi 685 fi
699 ]) 686 ])
700 dnl 687 dnl
701 dnl Is texi2dvi installed? 688 dnl Check for texi2dvi.
702 dnl 689 dnl
703 dnl OCTAVE_PROG_TEXI2DVI
704 AC_DEFUN([OCTAVE_PROG_TEXI2DVI], [ 690 AC_DEFUN([OCTAVE_PROG_TEXI2DVI], [
705 AC_CHECK_PROG(TEXI2DVI, texi2dvi, texi2dvi, []) 691 AC_CHECK_PROG(TEXI2DVI, texi2dvi, texi2dvi, [])
706 if test -z "$TEXI2DVI"; then 692 if test -z "$TEXI2DVI"; then
707 TEXI2DVI='$(top_srcdir)/build-aux/missing texi2dvi' 693 TEXI2DVI='$(top_srcdir)/build-aux/missing texi2dvi'
708 warn_texi2dvi=" 694 warn_texi2dvi="
713 OCTAVE_CONFIGURE_WARNING([warn_texi2dvi]) 699 OCTAVE_CONFIGURE_WARNING([warn_texi2dvi])
714 fi 700 fi
715 AC_SUBST(TEXI2DVI) 701 AC_SUBST(TEXI2DVI)
716 ]) 702 ])
717 dnl 703 dnl
718 dnl Is texi2pdf installed? 704 dnl Check for texi2pdf.
719 dnl 705 dnl
720 dnl OCTAVE_PROG_TEXI2PDF
721 AC_DEFUN([OCTAVE_PROG_TEXI2PDF], [ 706 AC_DEFUN([OCTAVE_PROG_TEXI2PDF], [
722 AC_REQUIRE([OCTAVE_PROG_TEXI2DVI]) 707 AC_REQUIRE([OCTAVE_PROG_TEXI2DVI])
723 AC_CHECK_PROG(TEXI2PDF, texi2pdf, texi2pdf, []) 708 AC_CHECK_PROG(TEXI2PDF, texi2pdf, texi2pdf, [])
724 if test -z "$TEXI2PDF"; then 709 if test -z "$TEXI2PDF"; then
725 missing=true; 710 missing=true;
740 OCTAVE_CONFIGURE_WARNING([warn_texi2pdf]) 725 OCTAVE_CONFIGURE_WARNING([warn_texi2pdf])
741 fi 726 fi
742 AC_SUBST(TEXI2PDF) 727 AC_SUBST(TEXI2PDF)
743 ]) 728 ])
744 dnl 729 dnl
745 dnl See if the C++ library is ISO compliant. 730 dnl Check if the C++ library is ISO compliant.
746 dnl FIXME: This is obviously very simplistic, and trivially fooled. 731 dnl FIXME: This is obviously very simplistic, and trivially fooled.
747 dnl 732 dnl
748 dnl OCTAVE_CXX_ISO_COMPLIANT_LIBRARY
749 AC_DEFUN([OCTAVE_CXX_ISO_COMPLIANT_LIBRARY], [ 733 AC_DEFUN([OCTAVE_CXX_ISO_COMPLIANT_LIBRARY], [
750 AC_REQUIRE([AC_PROG_CXX]) 734 AC_REQUIRE([AC_PROG_CXX])
751 AC_MSG_CHECKING([if C++ library is ISO compliant]) 735 AC_MSG_CHECKING([if C++ library is ISO compliant])
752 AC_CACHE_VAL(octave_cv_cxx_iso_compliant_library, [ 736 AC_CACHE_VAL(octave_cv_cxx_iso_compliant_library, [
753 AC_LANG_PUSH(C++) 737 AC_LANG_PUSH(C++)
804 LIBS="$save_LIBS" 788 LIBS="$save_LIBS"
805 fi 789 fi
806 AC_SUBST(READLINE_LIBS) 790 AC_SUBST(READLINE_LIBS)
807 ]) 791 ])
808 dnl 792 dnl
809 dnl Check to see if C++ reintrepret cast works for function pointers. 793 dnl Check if C++ reinterpret cast works for function pointers.
810 dnl
811 dnl OCTAVE_CXX_BROKEN_REINTERPRET_CAST
812 dnl 794 dnl
813 AC_DEFUN([OCTAVE_CXX_BROKEN_REINTERPRET_CAST], [ 795 AC_DEFUN([OCTAVE_CXX_BROKEN_REINTERPRET_CAST], [
814 AC_REQUIRE([AC_PROG_CXX]) 796 AC_REQUIRE([AC_PROG_CXX])
815 AC_LANG_PUSH(C++) 797 AC_LANG_PUSH(C++)
816 AC_CACHE_CHECK([for broken C++ reinterpret_cast], 798 AC_CACHE_CHECK([for broken C++ reinterpret_cast],
825 if test $octave_cv_cxx_broken_reinterpret_cast = yes ; then 807 if test $octave_cv_cxx_broken_reinterpret_cast = yes ; then
826 AC_DEFINE(CXX_BROKEN_REINTERPRET_CAST, 1, [Define to 1 if C++ reinterpret_cast fails for function pointers.]) 808 AC_DEFINE(CXX_BROKEN_REINTERPRET_CAST, 1, [Define to 1 if C++ reinterpret_cast fails for function pointers.])
827 fi 809 fi
828 AC_LANG_POP(C++)]) 810 AC_LANG_POP(C++)])
829 dnl 811 dnl
830 dnl Find find. 812 dnl Find find program.
831 dnl 813 dnl
832 # Prefer GNU find if found. 814 # Prefer GNU find if found.
833 AN_MAKEVAR([FIND], [OCTAVE_PROG_FIND]) 815 AN_MAKEVAR([FIND], [OCTAVE_PROG_FIND])
834 AN_PROGRAM([gfind], [OCTAVE_PROG_FIND]) 816 AN_PROGRAM([gfind], [OCTAVE_PROG_FIND])
835 AN_PROGRAM([find], [OCTAVE_PROG_FIND]) 817 AN_PROGRAM([find], [OCTAVE_PROG_FIND])
836 AC_DEFUN([OCTAVE_PROG_FIND], 818 AC_DEFUN([OCTAVE_PROG_FIND],
837 [AC_CHECK_PROGS(FIND, gfind find, )]) 819 [AC_CHECK_PROGS(FIND, gfind find, )])
838 dnl 820 dnl
839 dnl Find sed. 821 dnl Find sed program.
840 dnl 822 dnl
841 # Check for a fully-functional sed program, that truncates 823 # Check for a fully-functional sed program, that truncates
842 # as few characters as possible and that supports "\(X\|Y\)" 824 # as few characters as possible and that supports "\(X\|Y\)"
843 # style regular expression alternation. Prefer GNU sed if found. 825 # style regular expression alternation. Prefer GNU sed if found.
844 AC_DEFUN([OCTAVE_PROG_SED], 826 AC_DEFUN([OCTAVE_PROG_SED],
900 fi 882 fi
901 AC_SUBST(SED) 883 AC_SUBST(SED)
902 AC_MSG_RESULT([$SED]) 884 AC_MSG_RESULT([$SED])
903 ]) 885 ])
904 dnl 886 dnl
905 dnl Find Perl. 887 dnl Find Perl program.
906 dnl 888 dnl
907 dnl OCTAVE_PROG_PERL
908 AC_DEFUN([OCTAVE_PROG_PERL], 889 AC_DEFUN([OCTAVE_PROG_PERL],
909 [AC_CHECK_PROG(PERL, perl, perl, []) 890 [AC_CHECK_PROG(PERL, perl, perl, [])
910 AC_SUBST(PERL) 891 AC_SUBST(PERL)
911 ]) 892 ])
912 dnl 893 dnl
913 dnl Find Python. 894 dnl Find Python program.
914 dnl 895 dnl
915 dnl OCTAVE_PROG_PYTHON
916 AC_DEFUN([OCTAVE_PROG_PYTHON], 896 AC_DEFUN([OCTAVE_PROG_PYTHON],
917 [AC_CHECK_PROG(PYTHON, python, python, []) 897 [AC_CHECK_PROG(PYTHON, python, python, [])
918 AC_SUBST(PYTHON) 898 AC_SUBST(PYTHON)
919 ]) 899 ])
920 dnl 900 dnl
921 dnl Find desktop-file-install. 901 dnl Find desktop-file-install program.
922 dnl 902 dnl
923 dnl OCTAVE_PROG_DESKTOP_FILE_INSTALL
924 AC_DEFUN([OCTAVE_PROG_DESKTOP_FILE_INSTALL], 903 AC_DEFUN([OCTAVE_PROG_DESKTOP_FILE_INSTALL],
925 [AC_CHECK_PROG(DESKTOP_FILE_INSTALL, desktop-file-install, desktop-file-install, []) 904 [AC_CHECK_PROG(DESKTOP_FILE_INSTALL, desktop-file-install, desktop-file-install, [])
926 AC_SUBST(DESKTOP_FILE_INSTALL) 905 AC_SUBST(DESKTOP_FILE_INSTALL)
927 ]) 906 ])
928 dnl 907 dnl
960 ## the one in the octave_ieee_init function in liboctave/lo-ieee.cc. 939 ## the one in the octave_ieee_init function in liboctave/lo-ieee.cc.
961 AC_MSG_ERROR([IEEE 754 data format required for building Octave]) 940 AC_MSG_ERROR([IEEE 754 data format required for building Octave])
962 fi 941 fi
963 ]) 942 ])
964 dnl 943 dnl
965 dnl Check for UMFPACK seperately split complex matrix and RHS. Note 944 dnl Check for UMFPACK separately split complex matrix and RHS. Note
966 dnl that as umfpack.h can be in three different places, rather than 945 dnl that as umfpack.h can be in three different places, rather than
967 dnl include it, just declare the functions needed. 946 dnl include it, just declare the functions needed.
968 dnl 947 dnl
969 dnl Assumes that the check for umfpack has already been performed. 948 dnl Assumes that the check for umfpack has already been performed.
970 dnl 949 dnl
1016 if test "$octave_cv_umfpack_seperate_split" = yes; then 995 if test "$octave_cv_umfpack_seperate_split" = yes; then
1017 AC_DEFINE(UMFPACK_SEPARATE_SPLIT, 1, [Define to 1 if the UMFPACK Complex solver allow matrix and RHS to be split independently.]) 996 AC_DEFINE(UMFPACK_SEPARATE_SPLIT, 1, [Define to 1 if the UMFPACK Complex solver allow matrix and RHS to be split independently.])
1018 fi 997 fi
1019 ]) 998 ])
1020 dnl 999 dnl
1021 dnl Check whether using HDF5 DLL under Windows. This is done by 1000 dnl Check whether using HDF5 DLL under Windows. This is done by
1022 dnl testing for a data symbol in the HDF5 library, which would 1001 dnl testing for a data symbol in the HDF5 library, which would
1023 dnl requires the definition of _HDF5USEDL_ under MSVC compiler. 1002 dnl require the definition of _HDF5USEDL_ under MSVC compiler.
1024 dnl 1003 dnl
1025 AC_DEFUN([OCTAVE_HDF5_DLL], [ 1004 AC_DEFUN([OCTAVE_HDF5_DLL], [
1026 AC_CACHE_CHECK([if _HDF5USEDLL_ needs to be defined],octave_cv_hdf5_dll, [ 1005 AC_CACHE_CHECK([if _HDF5USEDLL_ needs to be defined],octave_cv_hdf5_dll, [
1027 AC_TRY_LINK([#include <hdf5.h>], [hid_t x = H5T_NATIVE_DOUBLE; return x], 1006 AC_TRY_LINK([#include <hdf5.h>], [hid_t x = H5T_NATIVE_DOUBLE; return x],
1028 octave_cv_hdf5_dll=no, [ 1007 octave_cv_hdf5_dll=no, [
1096 AC_DEFINE(NEED_QHULL_VERSION, 1, 1075 AC_DEFINE(NEED_QHULL_VERSION, 1,
1097 [Define to 1 if the Qhull library needs a qh_version variable defined.]) 1076 [Define to 1 if the Qhull library needs a qh_version variable defined.])
1098 fi 1077 fi
1099 ]) 1078 ])
1100 dnl 1079 dnl
1101 dnl Check whether Qhull works (does not crash) 1080 dnl Check whether Qhull works (does not crash).
1102 dnl 1081 dnl
1103 AC_DEFUN([OCTAVE_CHECK_QHULL_OK], 1082 AC_DEFUN([OCTAVE_CHECK_QHULL_OK],
1104 [AC_CACHE_CHECK([whether the qhull library works], 1083 [AC_CACHE_CHECK([whether the qhull library works],
1105 octave_cv_lib_qhull_ok, [ 1084 octave_cv_lib_qhull_ok, [
1106 AC_RUN_IFELSE([AC_LANG_PROGRAM([[ 1085 AC_RUN_IFELSE([AC_LANG_PROGRAM([[
1150 else 1129 else
1151 $2 1130 $2
1152 fi 1131 fi
1153 ]) 1132 ])
1154 dnl 1133 dnl
1155 dnl Check whether ARPACK works (does not crash) 1134 dnl Check whether ARPACK works (does not crash).
1156 dnl 1135 dnl
1157 dnl Using a pure Fortran program doesn't seem to crash when linked 1136 dnl Using a pure Fortran program doesn't seem to crash when linked
1158 dnl with the buggy ARPACK library but the C++ program does. Maybe 1137 dnl with the buggy ARPACK library but the C++ program does. Maybe it
1159 dnl it is the memory allocation that exposes the bug and using statically 1138 dnl is the memory allocation that exposes the bug and using statically
1160 dnl allocated arrays in Fortran does not? 1139 dnl allocated arrays in Fortran does not?
1161 dnl 1140 dnl
1162 AC_DEFUN([OCTAVE_CHECK_ARPACK_OK], [ 1141 AC_DEFUN([OCTAVE_CHECK_ARPACK_OK], [
1163 AC_LANG_PUSH(C++) 1142 AC_LANG_PUSH(C++)
1164 AC_CACHE_CHECK([whether the arpack library works], 1143 AC_CACHE_CHECK([whether the arpack library works],
1300 else 1279 else
1301 $2 1280 $2
1302 fi 1281 fi
1303 ]) 1282 ])
1304 dnl 1283 dnl
1305 dnl Check for OpenGL. If found, define OPENGL_LIBS 1284 dnl Check for OpenGL. If found, define OPENGL_LIBS.
1306 dnl 1285 dnl
1307 dnl FIXME: The following tests should probably check for the 1286 dnl FIXME: The following tests should probably check for the
1308 dnl libraries separately. 1287 dnl libraries separately.
1309 dnl 1288 dnl
1310 dnl FIXME: Should we allow a way to specify a directory for OpenGL 1289 dnl FIXME: Should we allow a way to specify a directory for OpenGL
1375 fi 1354 fi
1376 fi 1355 fi
1377 AC_SUBST(OPENGL_LIBS) 1356 AC_SUBST(OPENGL_LIBS)
1378 ]) 1357 ])
1379 dnl 1358 dnl
1380 dnl See if function gluTessCallback is called with "(...)" 1359 dnl Check if function gluTessCallback is called with "(...)".
1381 dnl 1360 dnl
1382 dnl OCTAVE_GLUTESSCALLBACK_THREEDOTS
1383 AC_DEFUN([OCTAVE_GLUTESSCALLBACK_THREEDOTS], 1361 AC_DEFUN([OCTAVE_GLUTESSCALLBACK_THREEDOTS],
1384 [AC_CACHE_CHECK([whether gluTessCallback is called with "(...)"], 1362 [AC_CACHE_CHECK([whether gluTessCallback is called with "(...)"],
1385 octave_cv_glutesscallback_threedots, 1363 octave_cv_glutesscallback_threedots,
1386 [AC_LANG_PUSH(C++) 1364 [AC_LANG_PUSH(C++)
1387 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 1365 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1397 AC_DEFINE(HAVE_GLUTESSCALLBACK_THREEDOTS, 1, 1375 AC_DEFINE(HAVE_GLUTESSCALLBACK_THREEDOTS, 1,
1398 [Define to 1 if gluTessCallback is called with (...).]) 1376 [Define to 1 if gluTessCallback is called with (...).])
1399 fi 1377 fi
1400 ]) 1378 ])
1401 dnl 1379 dnl
1402 dnl Check for support of OpenMP with a given compiler flag. If 1380 dnl Check for support of OpenMP with a given compiler flag.
1403 dnl found define HAVE_OPENMP and add the compile flag to CFLAGS 1381 dnl If found define HAVE_OPENMP and add the compile flag
1404 dnl and CXXFLAGS. 1382 dnl to CFLAGS and CXXFLAGS.
1405 dnl 1383 dnl
1406 AC_DEFUN([OCTAVE_CHECK_OPENMP], 1384 AC_DEFUN([OCTAVE_CHECK_OPENMP],
1407 [AC_MSG_CHECKING([for support of OpenMP]) 1385 [AC_MSG_CHECKING([for support of OpenMP])
1408 XCFLAGS="$CFLAGS" 1386 XCFLAGS="$CFLAGS"
1409 CFLAGS="$CFLAGS $1" 1387 CFLAGS="$CFLAGS $1"
1620 1598
1621 AC_SUBST([FT2_CFLAGS]) 1599 AC_SUBST([FT2_CFLAGS])
1622 AC_SUBST([FT2_LIBS])]) 1600 AC_SUBST([FT2_LIBS])])
1623 dnl end of freetype2.m4 1601 dnl end of freetype2.m4
1624 1602
1603 dnl
1625 dnl Check whether a math mapper function is available in <cmath>. 1604 dnl Check whether a math mapper function is available in <cmath>.
1626 dnl Will define HAVE_CMATH_FUNC if there is a double variant and 1605 dnl Will define HAVE_CMATH_FUNC if there is a double variant and
1627 dnl HAVE_CMATH_FUNCF if there is a float variant. 1606 dnl HAVE_CMATH_FUNCF if there is a float variant.
1628 dnl Currently capable of checking for functions with single 1607 dnl Currently capable of checking for functions with single
1629 dnl argument and returning bool/int/real. 1608 dnl argument and returning bool/int/real.
1609 dnl
1630 AC_DEFUN([OCTAVE_CMATH_FUNC],[ 1610 AC_DEFUN([OCTAVE_CMATH_FUNC],[
1631 AC_MSG_CHECKING([for std::$1 in <cmath>]) 1611 AC_MSG_CHECKING([for std::$1 in <cmath>])
1632 AC_LANG_PUSH(C++) 1612 AC_LANG_PUSH(C++)
1633 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 1613 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1634 #include <cmath> 1614 #include <cmath>
1656 AC_DEFINE(HAVE_CMATH_[]AS_TR_CPP($1)F,1,[Define to 1 if <cmath> provides float variant of $1.])], 1636 AC_DEFINE(HAVE_CMATH_[]AS_TR_CPP($1)F,1,[Define to 1 if <cmath> provides float variant of $1.])],
1657 [AC_MSG_RESULT([no])]) 1637 [AC_MSG_RESULT([no])])
1658 AC_LANG_POP(C++) 1638 AC_LANG_POP(C++)
1659 ]) 1639 ])
1660 1640
1641 dnl
1661 dnl Check whether fast signed integer arithmetics using bit tricks 1642 dnl Check whether fast signed integer arithmetics using bit tricks
1662 dnl can be used in oct-inttypes.h. Defines HAVE_FAST_INT_OPS if 1643 dnl can be used in oct-inttypes.h. Defines HAVE_FAST_INT_OPS if
1663 dnl the following conditions hold: 1644 dnl the following conditions hold:
1664 dnl 1. Signed numbers are represented by twos complement 1645 dnl 1. Signed numbers are represented by twos complement
1665 dnl (see <http://en.wikipedia.org/wiki/Two%27s_complement>) 1646 dnl (see <http://en.wikipedia.org/wiki/Two%27s_complement>)
1667 dnl the signed bit pattern as unsigned (and is thus zero-cost). 1648 dnl the signed bit pattern as unsigned (and is thus zero-cost).
1668 dnl 3. Signed addition and subtraction yield the same bit results as unsigned. 1649 dnl 3. Signed addition and subtraction yield the same bit results as unsigned.
1669 dnl (We use casts to prevent optimization interference, so there is no 1650 dnl (We use casts to prevent optimization interference, so there is no
1670 dnl need for things like -ftrapv). 1651 dnl need for things like -ftrapv).
1671 dnl 4. Bit operations on signed integers work like on unsigned integers, 1652 dnl 4. Bit operations on signed integers work like on unsigned integers,
1672 dnl except for the shifts. Shifts are arithmetic. 1653 dnl except for the shifts. Shifts are arithmetic.
1673 dnl 1654 dnl
1674 AC_DEFUN([OCTAVE_FAST_INT_OPS], 1655 AC_DEFUN([OCTAVE_FAST_INT_OPS],
1675 [AC_CACHE_CHECK([whether fast integer arithmetics is usable], 1656 [AC_CACHE_CHECK([whether fast integer arithmetics is usable],
1676 octave_cv_fast_int_ops, 1657 octave_cv_fast_int_ops,
1677 [AC_LANG_PUSH(C++) 1658 [AC_LANG_PUSH(C++)
1733 dnl a source file. Arguments 2 and 3 optionally can also be empty. 1714 dnl a source file. Arguments 2 and 3 optionally can also be empty.
1734 dnl Add options (lower case letters $1) "--with-framework-$1" and 1715 dnl Add options (lower case letters $1) "--with-framework-$1" and
1735 dnl "--without-framework-$1". If this test is successful then perform 1716 dnl "--without-framework-$1". If this test is successful then perform
1736 dnl $4, otherwise do $5. 1717 dnl $4, otherwise do $5.
1737 dnl 1718 dnl
1738 dnl OCTAVE_HAVE_FRAMEWORK
1739 AC_DEFUN([OCTAVE_HAVE_FRAMEWORK], [ 1719 AC_DEFUN([OCTAVE_HAVE_FRAMEWORK], [
1740 AC_MSG_CHECKING([whether ${LD-ld} accepts -framework $1]) 1720 AC_MSG_CHECKING([whether ${LD-ld} accepts -framework $1])
1741 AC_CACHE_VAL(octave_cv_framework_$1, [ 1721 AC_CACHE_VAL(octave_cv_framework_$1, [
1742 XLDFLAGS="$LDFLAGS" 1722 XLDFLAGS="$LDFLAGS"
1743 LDFLAGS="$LDFLAGS -framework $1" 1723 LDFLAGS="$LDFLAGS -framework $1"
1926 ifelse([$3], , :, [$3]) 1906 ifelse([$3], , :, [$3])
1927 fi[]dnl 1907 fi[]dnl
1928 ])# PKG_CHECK_MODULES 1908 ])# PKG_CHECK_MODULES
1929 1909
1930 dnl 1910 dnl
1931 dnl External macros. 1911 dnl Include external macros.
1932 dnl 1912 dnl
1933 1913
1934 m4_include([m4/ax_pthread.m4]) 1914 m4_include([m4/ax_pthread.m4])
1935 m4_include([m4/ax_blas.m4]) 1915 m4_include([m4/ax_blas.m4])
1936 m4_include([m4/ax_blas_f77_func.m4]) 1916 m4_include([m4/ax_blas_f77_func.m4])