@@ -128,11 +128,11 @@ AC_ARG_ENABLE([model-cs248],
128128 [ enable_model_cs248=yes] ,
129129 [ enable_model_cs248=no] )
130130
131- AC_ARG_ENABLE ( [ model-cs242 ] ,
132- [ AS_HELP_STRING ( [ --enable-model-cs242 ] ,
133- [ enable model SCEC CS242 ] ) ] ,
134- [ enable_model_cs242 =yes] ,
135- [ enable_model_cs242 =no] )
131+ AC_ARG_ENABLE ( [ model-mscal ] ,
132+ [ AS_HELP_STRING ( [ --enable-model-mscal ] ,
133+ [ enable model SCEC MSCAL ] ) ] ,
134+ [ enable_model_mscal =yes] ,
135+ [ enable_model_mscal =no] )
136136
137137AC_ARG_ENABLE ( [ model-cvmhlabn] ,
138138 [ AS_HELP_STRING ( [ --enable-model-cvmhlabn] ,
@@ -544,25 +544,25 @@ if test "x$enable_model_cs248" = xyes; then
544544AC_ARG_WITH ( [ cs248-include-path] ,
545545 [ AS_HELP_STRING ( [ --with-cs248-include-path] ,
546546 [ location of the SCEC CS248 headers] ) ] ,
547- [ CS242_INCL ="-I$withval"] ,
548- [ CS242_INCL ="/usr/include/cs248"] )
547+ [ CS248_INCL ="-I$withval"] ,
548+ [ CS248_INCL ="/usr/include/cs248"] )
549549AC_ARG_WITH ( [ cs248-lib-path] ,
550550 [ AS_HELP_STRING ( [ --with-cs248-lib-path] , [ location of the SCEC CS248 libraries] ) ] ,
551- [ CS242_LIB ="-L$withval -lcs248 -lproj -letree"] ,
552- [ CS242_LIB ="-lcs248 -lproj -letree"] )
551+ [ CS248_LIB ="-L$withval -lcs248 -lproj -letree"] ,
552+ [ CS248_LIB ="-lcs248 -lproj -letree"] )
553553fi
554554
555- # Get SCEC CS242 library and include locations
556- if test "x$enable_model_cs242 " = xyes; then
557- AC_ARG_WITH ( [ cs242 -include-path] ,
558- [ AS_HELP_STRING ( [ --with-cs242 -include-path] ,
559- [ location of the SCEC CS242 headers] ) ] ,
560- [ CS242_INCL ="-I$withval"] ,
561- [ CS242_INCL ="/usr/include/cs242 "] )
562- AC_ARG_WITH ( [ cs242 -lib-path] ,
563- [ AS_HELP_STRING ( [ --with-cs242 -lib-path] , [ location of the SCEC CS242 libraries] ) ] ,
564- [ CS242_LIB ="-L$withval -lcs242 -lproj -letree"] ,
565- [ CS242_LIB ="-lcs242 -lproj -letree"] )
555+ # Get SCEC MSCAL library and include locations
556+ if test "x$enable_model_mscal " = xyes; then
557+ AC_ARG_WITH ( [ mscal -include-path] ,
558+ [ AS_HELP_STRING ( [ --with-mscal -include-path] ,
559+ [ location of the SCEC MSCAL headers] ) ] ,
560+ [ MSCAL_INCL ="-I$withval"] ,
561+ [ MSCAL_INCL ="/usr/include/mscal "] )
562+ AC_ARG_WITH ( [ mscal -lib-path] ,
563+ [ AS_HELP_STRING ( [ --with-mscal -lib-path] , [ location of the SCEC MSCAL libraries] ) ] ,
564+ [ MSCAL_LIB ="-L$withval -lmscal -lproj -letree"] ,
565+ [ MSCAL_LIB ="-lmscal -lproj -letree"] )
566566fi
567567
568568# Get SCEC CVMHLABN library and include locations
@@ -1193,19 +1193,19 @@ else
11931193fi
11941194
11951195if test "x$enable_static" = xyes; then
1196- # Check optional SCEC CS242 installation
1197- if test "x$enable_model_cs242 " = xyes; then
1196+ # Check optional SCEC MSCAL installation
1197+ if test "x$enable_model_mscal " = xyes; then
11981198 # Setup compiler/linker flags
1199- CFLAGS="$CS242_INCL $CFLAGS"
1200- LDFLAGS="$CS242_LIB $LDFLAGS"
1199+ CFLAGS="$MSCAL_INCL $CFLAGS"
1200+ LDFLAGS="$MSCAL_LIB $LDFLAGS"
12011201
1202- echo "Checking for SCEC CS242 "
1203- AC_CHECK_HEADER ( cs242 .h ,[ ] ,[ AC_MSG_ERROR ( [ "SCEC CS242 header not found; use --with-cs242 -include-path"] ) ] ,[ AC_INCLUDES_DEFAULT ] )
1202+ echo "Checking for SCEC MSCAL "
1203+ AC_CHECK_HEADER ( mscal .h ,[ ] ,[ AC_MSG_ERROR ( [ "SCEC MSCAL header not found; use --with-mscal -include-path"] ) ] ,[ AC_INCLUDES_DEFAULT ] )
12041204else
1205- AM_CONDITIONAL(UCVM_AM_ENABLE_CS242 , false)
1205+ AM_CONDITIONAL(UCVM_AM_ENABLE_MSCAL , false)
12061206fi
12071207else
1208- AM_CONDITIONAL(UCVM_AM_ENABLE_CS242 , [ test x"$enable_model_cs242 " = xyes] )
1208+ AM_CONDITIONAL(UCVM_AM_ENABLE_MSCAL , [ test x"$enable_model_mscal " = xyes] )
12091209fi
12101210
12111211if test "x$enable_static" = xyes; then
0 commit comments