comparison aclocal.m4 @ 3908:90dc5c9a9a21

[project @ 2002-04-24 19:53:35 by jwe]
author jwe
date Wed, 24 Apr 2002 19:53:35 +0000
parents 56db014d8980
children a10df4059532
comparison
equal deleted inserted replaced
3907:437884fae441 3908:90dc5c9a9a21
298 dnl commands. Otherwise, add FLAG to CFLAGS if the compiler accepts 298 dnl commands. Otherwise, add FLAG to CFLAGS if the compiler accepts
299 dnl the flag. 299 dnl the flag.
300 dnl 300 dnl
301 dnl OCTAVE_CC_FLAG 301 dnl OCTAVE_CC_FLAG
302 AC_DEFUN(OCTAVE_CC_FLAG, [ 302 AC_DEFUN(OCTAVE_CC_FLAG, [
303 ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` 303 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'`
304 AC_MSG_CHECKING(whether ${CC-cc} accepts $1) 304 AC_MSG_CHECKING(whether ${CC-cc} accepts $1)
305 AC_CACHE_VAL(octave_cv_cc_flag_$ac_safe, [ 305 AC_CACHE_VAL(octave_cv_cc_flag_$ac_safe, [
306 AC_LANG_PUSH(C) 306 AC_LANG_PUSH(C)
307 XCFLAGS="$CFLAGS" 307 XCFLAGS="$CFLAGS"
308 CFLAGS="$CFLAGS $1" 308 CFLAGS="$CFLAGS $1"
328 dnl commands. Otherwise, add FLAG to CXXFLAGS if the compiler accepts 328 dnl commands. Otherwise, add FLAG to CXXFLAGS if the compiler accepts
329 dnl the flag. 329 dnl the flag.
330 dnl 330 dnl
331 dnl OCTAVE_CXX_FLAG 331 dnl OCTAVE_CXX_FLAG
332 AC_DEFUN(OCTAVE_CXX_FLAG, [ 332 AC_DEFUN(OCTAVE_CXX_FLAG, [
333 ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` 333 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'`
334 AC_MSG_CHECKING(whether ${CXX-g++} accepts $1) 334 AC_MSG_CHECKING(whether ${CXX-g++} accepts $1)
335 AC_CACHE_VAL(octave_cv_cxx_flag_$ac_safe, [ 335 AC_CACHE_VAL(octave_cv_cxx_flag_$ac_safe, [
336 AC_LANG_PUSH(C++) 336 AC_LANG_PUSH(C++)
337 XCXXFLAGS="$CXXFLAGS" 337 XCXXFLAGS="$CXXFLAGS"
338 CXXFLAGS="$CXXFLAGS $1" 338 CXXFLAGS="$CXXFLAGS $1"