mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	Add configure warning to check for bison version >= 1.875.
This commit is contained in:
		
							parent
							
								
									df1f5d6d7d
								
							
						
					
					
						commit
						fee9b7ca9b
					
				
							
								
								
									
										13
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								configure
									
									
									
									
										vendored
									
									
								
							| @ -4424,6 +4424,19 @@ fi | |||||||
|   test -n "$YACC" && break |   test -n "$YACC" && break | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | if test "$YACC"; then | ||||||
|  |   if bison --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then | ||||||
|  |     { echo "$as_me:$LINENO: WARNING: | ||||||
|  | *** The installed version of Bison is too old.  PostgreSQL needs | ||||||
|  | *** Bison version 1.875 or later." >&5 | ||||||
|  | echo "$as_me: WARNING: | ||||||
|  | *** The installed version of Bison is too old.  PostgreSQL needs | ||||||
|  | *** Bison version 1.875 or later." >&2;} | ||||||
|  |     unset YACC | ||||||
|  |   fi | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| if test -z "$YACC"; then | if test -z "$YACC"; then | ||||||
|   { echo "$as_me:$LINENO: WARNING: |   { echo "$as_me:$LINENO: WARNING: | ||||||
| *** Without Bison you will not be able to build PostgreSQL from CVS or | *** Without Bison you will not be able to build PostgreSQL from CVS or | ||||||
|  | |||||||
							
								
								
									
										12
									
								
								configure.in
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								configure.in
									
									
									
									
									
								
							| @ -1,5 +1,5 @@ | |||||||
| dnl Process this file with autoconf to produce a configure script. | dnl Process this file with autoconf to produce a configure script. | ||||||
| dnl $Header: /cvsroot/pgsql/configure.in,v 1.254 2003/05/27 16:36:50 momjian Exp $ | dnl $Header: /cvsroot/pgsql/configure.in,v 1.255 2003/06/06 19:11:55 momjian Exp $ | ||||||
| dnl | dnl | ||||||
| dnl Developers, please strive to achieve this order: | dnl Developers, please strive to achieve this order: | ||||||
| dnl | dnl | ||||||
| @ -585,6 +585,16 @@ AC_PATH_PROG(TAR, tar) | |||||||
| PGAC_CHECK_STRIP | PGAC_CHECK_STRIP | ||||||
| 
 | 
 | ||||||
| AC_CHECK_PROGS(YACC, ['bison -y']) | AC_CHECK_PROGS(YACC, ['bison -y']) | ||||||
|  | 
 | ||||||
|  | if test "$YACC"; then | ||||||
|  |   if bison --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then | ||||||
|  |     AC_MSG_WARN([ | ||||||
|  | *** The installed version of Bison is too old.  PostgreSQL needs | ||||||
|  | *** Bison version 1.875 or later.]) | ||||||
|  |     unset YACC | ||||||
|  |   fi | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| if test -z "$YACC"; then | if test -z "$YACC"; then | ||||||
|   AC_MSG_WARN([ |   AC_MSG_WARN([ | ||||||
| *** Without Bison you will not be able to build PostgreSQL from CVS or | *** Without Bison you will not be able to build PostgreSQL from CVS or | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user