mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r80330 | qwell | 2007-08-22 13:53:18 -0500 (Wed, 22 Aug 2007) | 7 lines Fix a few build issues in Solaris (and likely others). Use GREP and ID variables from autoconf. Reported to me in #asterisk-dev I forgot who reported this - sorry. :( ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80331 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			23 lines
		
	
	
		
			495 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			495 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| cat << END
 | |
| /*
 | |
|  * buildopts.h 
 | |
|  * Automatically generated
 | |
|  */
 | |
| 
 | |
| END
 | |
| TMP=`${GREP} MENUSELECT_CFLAGS menuselect.makeopts | sed 's/MENUSELECT_CFLAGS\=//g' | sed 's/-D//g'`
 | |
| for x in ${TMP}; do
 | |
| 	echo "#define ${x} 1"
 | |
| done
 | |
| TMP=`${GREP} MENUSELECT_BUILD_DEPS menuselect.makeopts | sed 's/MENUSELECT_BUILD_DEPS\=//g'`
 | |
| for x in ${TMP}; do
 | |
| 	x2=`echo ${x} | tr a-z A-Z`
 | |
| 	echo "#define AST_MODULE_${x2} 1"
 | |
| done
 | |
| if ${GREP} AST_DEVMODE makeopts | ${GREP} -q yes
 | |
| then
 | |
| 	echo "#define AST_DEVMODE 1"
 | |
| fi
 |