From b51afc628f65e22d0e9ddf63d94ebf9bfbe9948d Mon Sep 17 00:00:00 2001 From: Nakidai Date: Mon, 30 Oct 2023 03:15:24 +0300 Subject: [PATCH] Autocreate config dir attempt 2 --- configure | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b3249d6..d49594e 100755 --- a/configure +++ b/configure @@ -1,7 +1,5 @@ #!/bin/sh -mkdir config - CC=${CC:-cc} RM=${RM:-rm -f} CFLAGS=${CFLAGS:-} @@ -23,6 +21,13 @@ echo "Size: $SIZE" echo "Start x: $DEFX" echo "Start y: $DEFY" +if [ ! test -d config ]; then + if [ test-f config ]; then + rm config + fi + mkdir config +fi + echo "CC = $CC RM = $RM CFLAGS = $CFLAGS