ext/extconf.rb
changeset 7 4460fc10c6a3
parent 5 41a1542b3b10
equal deleted inserted replaced
6:2d52adc4adcc 7:4460fc10c6a3
    20 	$stderr.puts( *messages )
    20 	$stderr.puts( *messages )
    21 	exit( 1 )
    21 	exit( 1 )
    22 end
    22 end
    23 
    23 
    24 
    24 
    25 dir_config( 'bsdjail' )
    25 dir_config( 'bsd/jail' )
    26 
    26 
    27 have_header( 'stdio.h' ) 		or fail "Can't find the stdio.h header."
    27 have_header( 'stdio.h' )      or fail "Can't find the stdio.h header."
    28 have_header( 'sys/param.h' ) 	or fail "Can't find the sys/param.h header."
    28 have_header( 'sys/param.h' )  or fail "Can't find the sys/param.h header."
    29 have_header( 'sys/jail.h' ) 	or fail "Can't find the sys/jail.h header."
    29 have_header( 'sys/jail.h' )   or fail "Can't find the sys/jail.h header."
    30 have_header( 'sys/types.h' ) 	or fail "Can't find the sys/types.h header."
    30 have_header( 'sys/types.h' )  or fail "Can't find the sys/types.h header."
    31 have_header( 'unistd.h' ) 		or fail "Can't find the unistd.h header."
    31 have_header( 'sys/sysctl.h' ) or fail "Can't find the sys/sysctl.h header."
       
    32 have_header( 'unistd.h' )     or fail "Can't find the unistd.h header."
       
    33 have_header( 'arpa/inet.h' )  or fail "Can't find the arpa/inet.h header."
       
    34 have_header( 'errno.h' )      or fail "Can't find the errno.h header."
    32 
    35 
    33 have_func( "jail_attach" )		or fail "Can't find jail_attach in the stdlib."
    36 have_func( "jail_attach" ) or fail "Can't find jail_attach in the stdlib."
    34 
    37 
    35 create_makefile( 'bsdjail' )
    38 create_makefile( 'bsd/jail' )
    36 
    39