1
# Convenience macros SIM_AC_DEBACKSLASH and SIM_AC_DOBACKSLASH for
2
# converting to and from MSWin/MS-DOS style paths.
6
# SIM_AC_DEBACKSLASH(my_ac_reversed, "C:\\mydir\\bin")
8
# will give a shell variable $my_ac_reversed with the value "C:/mydir/bin").
9
# Vice versa for SIM_AC_DOBACKSLASH.
11
# Author: Marius Bugge Monsen <mariusbu@sim.no>
12
# Lars J�rgen Aas <larsa@sim.no>
13
# Morten Eriksen <mortene@sim.no>
15
AC_DEFUN([SIM_AC_DEBACKSLASH], [
16
eval "$1=\"`echo $2 | sed -e 's%\\\\%\\/%g'`\""
19
AC_DEFUN([SIM_AC_DOBACKSLASH], [
20
eval "$1=\"`echo $2 | sed -e 's%\\/%\\\\%g'`\""
23
AC_DEFUN([SIM_AC_DODOUBLEBACKSLASH], [
24
eval "$1=\"`echo $2 | sed -e 's%\\/%\\\\\\\\\\\\\\\\%g'`\""