| 
									
										
										
										
											2006-04-24 17:11:45 +00:00
										 |  |  | #!/bin/sh
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | check_for_app() { | 
					
						
							|  |  |  | 	$1 --version 2>&1 >/dev/null | 
					
						
							|  |  |  | 	if [ $? != 0 ] | 
					
						
							|  |  |  | 	then | 
					
						
							|  |  |  | 		echo "Please install $1 and run bootstrap.sh again!" | 
					
						
							|  |  |  | 		exit 1 | 
					
						
							|  |  |  | 	fi | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-27 03:01:56 -05:00
										 |  |  | # OpenBSD: pkg_add autoconf%2.69 automake%1.16 metaauto | 
					
						
							|  |  |  | test -n "$AUTOCONF_VERSION" || export AUTOCONF_VERSION=2.69 | 
					
						
							|  |  |  | test -n "$AUTOMAKE_VERSION" || export AUTOMAKE_VERSION=1.16 | 
					
						
							| 
									
										
										
										
											2006-10-03 15:41:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-20 20:24:53 +02:00
										 |  |  | check_for_app autoconf | 
					
						
							|  |  |  | check_for_app autoheader | 
					
						
							|  |  |  | check_for_app automake | 
					
						
							|  |  |  | check_for_app aclocal | 
					
						
							| 
									
										
										
										
											2006-10-03 15:41:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-16 18:58:35 -05:00
										 |  |  | gen_configure() { | 
					
						
							|  |  |  | 	echo "Generating the configure script for $1 ..." | 
					
						
							|  |  |  | 	shift | 
					
						
							| 
									
										
										
										
											2006-10-03 15:41:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-20 20:24:53 +02:00
										 |  |  | 	aclocal -I "$@" | 
					
						
							|  |  |  | 	autoconf | 
					
						
							|  |  |  | 	autoheader | 
					
						
							|  |  |  | 	automake --add-missing --copy 2>/dev/null | 
					
						
							| 
									
										
										
										
											2018-02-16 18:58:35 -05:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-20 20:24:53 +02:00
										 |  |  | gen_configure "Asterisk" autoconf `find third-party -path '*/*/*' -prune -o -type d -print | xargs -I {} echo -I {}` | 
					
						
							| 
									
										
										
										
											2018-02-16 18:58:35 -05:00
										 |  |  | cd menuselect | 
					
						
							|  |  |  | gen_configure "menuselect" ../autoconf | 
					
						
							| 
									
										
										
										
											2006-10-03 15:41:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-24 17:34:35 +00:00
										 |  |  | exit 0 |