configure.ac
branchstable-1.5
changeset 2701 00a6a77face6
parent 2699 ed6b9e0d7c05
child 2702 c67a3647891d
equal deleted inserted replaced
2700:93ef210e9b56 2701:00a6a77face6
   150 AC_MSG_RESULT([$LINUX_SOURCE_DIR (Kernel $linuxversion)])
   150 AC_MSG_RESULT([$LINUX_SOURCE_DIR (Kernel $linuxversion)])
   151 
   151 
   152 fi
   152 fi
   153 
   153 
   154 #------------------------------------------------------------------------------
   154 #------------------------------------------------------------------------------
       
   155 # Linux module installation directory
       
   156 #------------------------------------------------------------------------------
       
   157 
       
   158 AC_ARG_WITH([module-path],
       
   159     AC_HELP_STRING(
       
   160         [--with-module-path=<DIR>],
       
   161         [Linux module installation path. Default: /lib/modules/kernel_version]
       
   162     ),
       
   163     [modpathdefs="INSTALL_MOD_PATH='$withval'"],
       
   164     [modpathdefs=""]
       
   165 )
       
   166 
       
   167 AC_MSG_CHECKING([for Linux modules installation directory])
       
   168 AC_MSG_RESULT([$with_mod_path])
       
   169 
       
   170 #------------------------------------------------------------------------------
   155 # Linux module installation subdirectory
   171 # Linux module installation subdirectory
   156 #------------------------------------------------------------------------------
   172 #------------------------------------------------------------------------------
   157 
   173 
   158 AC_ARG_WITH([module-dir],
   174 AC_ARG_WITH([module-dir],
   159     AC_HELP_STRING(
   175     AC_HELP_STRING(
   160         [--with-module-dir=<DIR>],
   176         [--with-module-dir=<DIR>],
   161         [Linux module installation dir. Default: ethercat]
   177         [Linux module installation subdir. Default: ethercat]
   162     ),
   178     ),
   163     [moddir=[$withval]],
   179     [modpathdefs="$modpathdefs INSTALL_MOD_DIR='$withval'"],
   164     [moddir="ethercat"]
   180     [modpathdefs=""]
   165 )
   181 )
   166 AC_SUBST(INSTALL_MOD_DIR,[$moddir])
   182 
   167 
   183 AC_MSG_CHECKING([for Linux modules installation subdirectory])
   168 AC_MSG_CHECKING([for Linux modules installation directory])
   184 AC_MSG_RESULT([$with_mod_dir])
   169 AC_MSG_RESULT([$INSTALL_MOD_DIR])
   185 
       
   186 AC_SUBST(INSTALL_MOD_PATH_DEFS,[$modpathdefs])
   170 
   187 
   171 #------------------------------------------------------------------------------
   188 #------------------------------------------------------------------------------
   172 # Generic Ethernet driver
   189 # Generic Ethernet driver
   173 #------------------------------------------------------------------------------
   190 #------------------------------------------------------------------------------
   174 
   191