@@ -194,6 +194,12 @@ AC_ARG_ENABLE([model-uwlinca],
194194 [ enable_model_uwlinca=yes] ,
195195 [ enable_model_uwlinca=no] )
196196
197+ AC_ARG_ENABLE ( [ model-uwpkfcvm] ,
198+ [ AS_HELP_STRING ( [ --enable-model-uwpkfcvm] ,
199+ [ enable model SCEC UWLINCA] ) ] ,
200+ [ enable_model_uwpkfcvm=yes] ,
201+ [ enable_model_uwpkfcvm=no] )
202+
197203AC_ARG_ENABLE ( [ model-uwsfbcvm] ,
198204 [ AS_HELP_STRING ( [ --enable-model-uwsfbcvm] ,
199205 [ enable model SCEC UWSFBCVM] ) ] ,
@@ -735,6 +741,23 @@ AC_ARG_WITH([uwlinca-model-path],
735741 [ UWLINCA_MODEL="/usr/uwlinca/src"] )
736742fi
737743
744+ # Get SCEC UWPKFCVM library and include locations
745+ if test "x$enable_model_uwpkfcvm" = xyes; then
746+ AC_ARG_WITH ( [ uwpkfcvm-include-path] ,
747+ [ AS_HELP_STRING ( [ --with-uwpkfcvm-include-path] ,
748+ [ location of the SCEC UWPKFCVM headers] ) ] ,
749+ [ UWLINCA_INCL="-I$withval"] ,
750+ [ UWLINCA_INCL="/usr/include/uwpkfcvm"] )
751+ AC_ARG_WITH ( [ uwpkfcvm-lib-path] ,
752+ [ AS_HELP_STRING ( [ --with-uwpkfcvm-lib-path] , [ location of the SCEC UWPKFCVM libraries] ) ] ,
753+ [ UWLINCA_LIB="-L$withval -luwpkfcvm"] ,
754+ [ UWLINCA_LIB="-luwpkfcvm"] )
755+ AC_ARG_WITH ( [ uwpkfcvm-model-path] ,
756+ [ AS_HELP_STRING ( [ --with-uwpkfcvm-model-path] , [ location of the UWPKFCVM model files] ) ] ,
757+ [ UWLINCA_MODEL="$withval"] ,
758+ [ UWLINCA_MODEL="/usr/uwpkfcvm/src"] )
759+ fi
760+
738761# Get SCEC CANVAS library and include locations
739762if test "x$enable_model_canvas" = xyes; then
740763AC_ARG_WITH ( [ canvas-include-path] ,
@@ -1368,6 +1391,23 @@ else
13681391 AM_CONDITIONAL(UCVM_AM_ENABLE_UWLINCA, [ test x"$enable_model_uwlinca" = xyes] )
13691392fi
13701393
1394+ if test "x$enable_static" = xyes; then
1395+ # Check optional SCEC UWPKFCVM installation
1396+ if test "x$enable_model_uwpkfcvm" = xyes; then
1397+ # Setup compiler/linker flags
1398+ CFLAGS="$UWPKFCVM_INCL $CFLAGS"
1399+ LDFLAGS="$UWPKFCVM_LIB $LDFLAGS"
1400+
1401+ echo "Checking for SCEC UWPKFCVM"
1402+ AC_CHECK_HEADER ( uwpkfcvm.h ,[ ] ,[ AC_MSG_ERROR ( [ "SCEC UWPKFCVM header not found; use --with-uwpkfcvm-include-path"] ) ] ,[ AC_INCLUDES_DEFAULT ] )
1403+ else
1404+ AM_CONDITIONAL(UCVM_AM_ENABLE_UWPKFCVM, false)
1405+ fi
1406+ else
1407+ AM_CONDITIONAL(UCVM_AM_ENABLE_UWPKFCVM, [ test x"$enable_model_uwpkfcvm" = xyes] )
1408+ fi
1409+
1410+
13711411if test "x$enable_static" = xyes; then
13721412# Check optional SCEC CANVAS installation
13731413if test "x$enable_model_canvas" = xyes; then
0 commit comments