| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | dnl  CPLINT | 
					
						
							|  |  |  | dnl | 
					
						
							|  |  |  | dnl CPLINT_LIBS=  | 
					
						
							|  |  |  | dnl CPLINT_LDFLAGS=  | 
					
						
							|  |  |  | dnl CPLINT_SHLIB_LD=  | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  | dnl CPLINT_CPPFLAGS= | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | dnl | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  | found_cplint=false | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  | AC_ARG_WITH(cplint, | 
					
						
							|  |  |  |     [ --with-cplint[=DIR]      with the cplint library using the CUDD library in DIR/lib], | 
					
						
							|  |  |  |     yap_cv_cplint=$withval, yap_cv_cplint=no) | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  | if test x"$yap_cv_cplint"  = "xno" | 
					
						
							|  |  |  | then | 
					
						
							|  |  |  |     PKG_CPLINT="" | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |     if test  x"$yap_cv_cplint" != "xyes" | 
					
						
							|  |  |  |     then | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  | 	CPLINT_LIBS+=" -L${yap_cv_cplint}/cudd -L${yap_cv_cplint}/mtr -L${yap_cv_cplint}/st -L${yap_cv_cplint}/util -L${yap_cv_cplint}/epd " | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  | 	#typical of user-compiled cudd	fi | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  |   	CPLINT_CPPFLAGS+=" -I${yap_cv_cplint}/include" | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  |   	found_cplint=true | 
					
						
							|  |  |  |     fi | 
					
						
							|  |  |  |     # cudd has been probably just tested, so why try again? | 
					
						
							|  |  |  |     # cudd is available on fedora, and maybe other linux distributions | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  |     if test x"$CUDD_LIBS" != x -a x"$CPLINT_CPPFLAGS" = x | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  |     then | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  | 	CPLINT_CPPFLAGS="$CUDD_CPPFLAGS" | 
					
						
							|  |  |  | 	CPLINT_LIBS="$CUDD_LIBS" | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  |   	found_cplint=true | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  |     elif test -d "/usr/include/cudd" -a x"$CPLINT_CPPFLAGS" = x | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  |     then | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  | 	CPLINT_CPPFLAGS=" -I/usr/include/cudd" | 
					
						
							|  |  |  | 	CPLINT_LIBS+="-lcudd  -lmtr -lcuddst -lepd -lcuddutil -lm" | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  |   	found_cplint=true | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  |     elif test -d "/usr/local/include/cudd" -a x"$CPLINT_CPPFLAGS" = x | 
					
						
							|  |  |  |     then | 
					
						
							|  |  |  |   	found_cplint=true | 
					
						
							|  |  |  | 	CPLINT_CPPFLAGS+=" -I/usr/local/include/cudd" | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  | 	CPLINT_LIBS+=" -L/usr/local/lib" | 
					
						
							|  |  |  |     fi | 
					
						
							|  |  |  |     if test "$found_cplint" = true | 
					
						
							|  |  |  |     then | 
					
						
							|  |  |  | 	if test x"$CPLINT_LIBS" = x | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | 	then | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  | 	    CPLINT_LIBS="-lcudd  -lmtr -lst -lepd -lutil -lm $LIBS" | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | 	fi | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  |      	if test "$target_os" = "cygwin" -o "$target_os" = "mingw32" | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | 	then | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  | 	    CPLINT_SHLIB_LD="gcc -shared ../../yap.dll" | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | 	else | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  | 	    CPLINT_SHLIB_LD="$SHLIB_LD" | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | 	fi | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  | 	PKG_CPLINT="packages/cplint/approx/simplecuddLPADs packages/cplint" | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  |  	CPLINT_LDFLAGS="$LDFLAGS" | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | 	AC_SUBST(CPLINT_LIBS) | 
					
						
							|  |  |  | 	AC_SUBST(CPLINT_LDFLAGS) | 
					
						
							| 
									
										
										
										
											2014-10-26 17:39:52 +00:00
										 |  |  | 	AC_SUBST(CPLINT_CPPFLAGS) | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | 	AC_SUBST(CPLINT_SHLIB_LD) | 
					
						
							| 
									
										
										
										
											2014-10-22 10:11:20 +01:00
										 |  |  |     else | 
					
						
							|  |  |  |         PKG_CPLINT=""  | 
					
						
							|  |  |  |     fi | 
					
						
							| 
									
										
										
										
											2013-11-04 13:16:14 +00:00
										 |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-05-04 23:15:39 +01:00
										 |  |  | AC_SUBST(PKG_CPLINT) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-10 23:30:21 +00:00
										 |  |  | mkdir -p  packages/cplint | 
					
						
							|  |  |  | mkdir -p  packages/cplint/approx | 
					
						
							|  |  |  | mkdir -p  packages/cplint/approx/simplecuddLPADs | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | AC_CONFIG_FILES([packages/cplint/Makefile]) | 
					
						
							|  |  |  | AC_CONFIG_FILES([packages/cplint/approx/simplecuddLPADs/Makefile]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 |